mcp-tool-change
Skill0 starsChanged 3 months agoMITView on GitHub
How to add or change tools of the MCP server (adapters/task_assistant_mcp.py) — naming and docstring conventions, actionable errors, integration tests, and the mandatory evaluation process in evals/. Use this BEFORE touching any task_assistant_* tool, adding a new MCP capability, editing tool descriptions, or when an agent reports the MCP tools are confusing or failing.
- Reads credentials
12 other projects use a version of this.
Adopted by
Most recently taken up by
- Data-Unix/MCP-MALTEGOtheir own version, first seen Nov 8, 2026
- berntpopp/clingen-linktheir own version, first seen Jul 12, 2026
- berntpopp/gencc-linktheir own version, first seen Jul 12, 2026
- berntpopp/gnomad-linktheir own version, first seen Jul 12, 2026
- berntpopp/gtex-linktheir own version, first seen Jul 12, 2026
- berntpopp/hgnc-linktheir own version, first seen Jul 12, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- berntpopp/hpo-link★ 1same name
- berntpopp/mgi-link★ 1same name
- berntpopp/stringdb-link★ 1same name
- Data-Unix/MCP-MALTEGO★ 1same name
- berntpopp/clingen-link★ 0same name
- berntpopp/gencc-link★ 0same name
- berntpopp/gnomad-link★ 0same name
- berntpopp/gtex-link★ 0same name
- berntpopp/hgnc-link★ 0same name
- berntpopp/mondo-link★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- daily-task-ritualSkill
- db-schema-changeSkill
- ship-releaseSkill
- task-board-workerSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 56
When tool descriptions or formats changed materially, also run the LLM harness (evals/evaluation.py, needs ANTHROPIC_API_KEY.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Changing the MCP tool surface
The MCP server is how agents operate the board with no code access and no docs — so the quality bar is not "the code works" but "an agent given only these tools succeeds". That is measured by the evaluation process, which is a required step here, not an optional extra.
Conventions (match the existing nine tools)
- Names:
task_assistant_<verb>_<noun>, snake_case. - One Pydantic input model per tool (
extra="forbid", constrained Fields with example-bearing descriptions). No manual validation in the body. - Decorator annotations set honestly:
readOnlyHint,destructiveHint,idempotentHint,openWorldHint. - Docstring is the tool's contract: one-line summary, when to use it AND when to use a neighboring tool instead, Args, Returns with the exact shape.
- List-returning tools support
response_formatmarkdown (default) | json; mutations return compact JSON of the resulting task. - Errors go through
_error_textand must tell the agent what to do next (start the tracker, fix the key, use another tool) — never a stack trace. - The server stays a pure HTTP client of the JSON API: no imports from
app/, config only viaTASK_TRACKER_URL/TASK_TRACKER_API_KEY.
Required updates for any surface change
- Tests —
tests/test_mcp_server.py: add the tool toEXPECTED_TOOLS, and write an integration test that calls it against the real FastAPI app (thewire_mcp_to_appfixture routes the server's HTTP client throughASGITransport— no network, no mocks of your own). - Verifier —
evals/verify_answers.py: bumpEXPECTED_TOOL_COUNT. - Docs — the tool table in
docs/MCP.md. - Eval questions — if the tool adds a read-only capability, consider a
new question in
evals/evaluation.xml. Rules: read-only, independent, stable answer (the seeded board is frozen June-2026 data — keep all deadlines in the past), single string-comparable answer, not solvable by keyword search. If you touch the board or the questions, updatecompute_answersin the verifier to derive the same answer.
The evaluation gate (run before shipping)
.venv/bin/python evals/seed_eval_board.py
DATABASE_URL=sqlite:///evals/eval_board.db TASK_TRACKER_API_KEY=eval-key \
SESSION_SECRET_KEY=eval-secret-0123456789012345678901234567890 \
.venv/bin/uvicorn app.main:app --port 8877 &
.venv/bin/python evals/verify_answers.py --write-loop
.venv/bin/python evals/seed_eval_board.py # re-seed after the write loopThe verifier must report all answers OK and the claim -> finish loop passing.
When tool descriptions or formats changed materially, also run the LLM
harness (evals/evaluation.py, needs ANTHROPIC_API_KEY; see
evals/README.md) and read the agent feedback in the report — low accuracy
means the descriptions need work, not that the model is weak.
Ship via the ship-release skill; describe new tools in the changelog by
name so agents can find them in history.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

