mispick-action
GitHub Action: measure which MCP tools a model mixes up, and comment the confusion matrix on the PR.
An AI assistant picks a tool by reading each tool's short description. When two descriptions sound alike, it quietly picks the wrong one. This Action runs mispick on every pull request: - It asks a real model to choose a tool for realistic test requests. - It posts a confusion matrix as a PR comment, showing which tools get mistaken for which. - It can compare against the base branch, so a description change that makes things worse is caught in review. It never runs a tool. It only reads the tool list (initialize and tools/list), so it is safe against a server that deletes things.
Summary extracted from the README.
mispick GitHub Action
Catch tool mix-ups in your MCP server before your users do.
An AI assistant picks a tool by reading each tool's short description. When two descriptions sound alike, it quietly picks the wrong one. This Action runs mispick on every pull request:
- It asks a real model to choose a tool for realistic test requests.
- It posts a confusion matrix as a PR comment, showing which tools get mistaken for which.
- It can compare against the base branch, so a description change that makes things worse is caught in review.
It never runs a tool. It only reads the tool list (initialize and tools/list), so it is safe
against a server that deletes things.
Usage
on: pull_request
permissions:
contents: read
pull-requests: write # for the PR comment
jobs:
mispick:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: msc35/mispick-action@v1
with:
snapshot: tools.json # a committed tools/list capture
model: gemini/gemini-3.5-flash-lite
fail-under: '80' # optional: fail below this score
compare-base: 'true' # optional: show the change against the base branch
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
Capture the snapshot once and commit it:
uvx mispick snapshot --cmd "python -m my_server" -o tools.json
The PR comment reads like 84 → 91 (▲7) and names the confusions that appeared or disappeared.
Without a model key, the Action skips with an explanation instead of failing.
Inputs
| Input | Default | Meaning |
|---|---|---|
snapshot / cmd / url / config |
Where the tools come from. snapshot suits CI best. |
|
model |
provider/model, e.g. gemini/..., openai/..., anthropic/.... Empty means skip. |
|
queries |
8 |
Test requests generated per tool (N). |
runs |
3 |
Times each request is asked (K). |
fail-under |
Fail the job below this 0–100 score. | |
compare-base |
false |
Also measure the base branch and report the change. |
comment |
true |
Post the report as a sticky PR comment. |
badge |
Path to write an SVG score badge. | |
queries-file |
.mispick |
Commit this directory so CI measures a stable test set. |
version |
mispick |
mispick version for uv, e.g. mispick==0.1.0. |
Outputs are score, accuracy, report (the JSON report path) and skipped.
More
Everything else lives in the main repository, msc35/mispick: the CLI, how scores are computed, fix mode, and the limitations worth reading before quoting a number. The Action is kept here, on its own, because the GitHub Marketplace lists only repositories that contain an action and no workflows.
MIT licensed.