Know Your Tool, spec 0.1
An agent that connects to an MCP server runs its tool descriptions as instructions. Know Your Tool fixes what to check before that, and how to notice when a server changes its tools later. Open under CC BY 4.0; Factline's /v1/mcp/check is one implementation.
Input
The server's URL (streamable HTTP), and optionally the tools hash from an earlier check.
What is checked
- The server answers
initializeandtools/listas MCP. - Tool descriptions: instructions to ignore earlier messages, to hide things from the user, to run before or instead of other tools, to read secrets or key files; hidden characters and instruction tags.
- Powers: tools that can pay, transfer, delete, send mail or run code, and whether they are marked as destructive.
- Who runs it: domain age, the publisher (supplier.json, registry entries, a company behind it).
- tools_sha256: a hash over the sorted tool names, descriptions and input schemas. A different hash on a later check means the tools changed since the user approved them (a "rug pull"): answer review until a person looks.
Answer shape (both specs)
{
"decision": "allow" | "review" | "deny",
"reasons": ["short, plain sentences, the strongest first"],
"summary": "one line a person can read",
"evidence": [{ "source": "register or list name", "retrieved_at": "ISO 8601", "url": "where to check it" }],
"receipt": { "id": "...", "verify_url": "https://...", "signature": "ed25519 over the answer hash" }
}
- allow: nothing found against going ahead. review: ask the user or a human first. deny: do not go ahead.
- A checker must say what it did not check (for example: who holds a bank account), so an allow is never read as more than it is.
- The receipt is optional at level 1 and required at level 2: it lets the agent's owner prove later what was known when the decision was made.
- Field names may carry more detail; these five keep their meaning.
Levels
- Level 1: decision, reasons and summary, with evidence for every fact used.
- Level 2: level 1 plus a signed receipt that a third party can verify without calling the checker.
When to call it
When a server is added, then on each session start compare the hash; a full check again after a change. Cache an allow for the same hash for at most 24 hours.
Version 0.1, 2 Nov 2026. Comments: hello@factline.dev. See also Know Your Payee.