Status: accepted
How is "destructive" classified? The obvious answer — read, write, destructive — has a hole in it.
Tools declare impact in a versioned registry. Two additional properties, reversible and
external_side_effect, promote a declared write to destructive for budgeting.
Unregistered tools are denied.
"Destructive" usually means "delete", and that is the wrong axis. Sending an external email and
publishing to a partner knowledge base delete nothing and cannot be taken back. A control that only
counts deletions misses exactly the actions with the widest blast radius. In the shipped registry,
wiki/publish_page and mail/send_external are both declared writes and both promoted.
Names cannot be trusted to classify. wiki/publish_page and mail/send_external contain no
dangerous word; tickets/search_deleted contains one and is a read. Heuristics fail in both
directions, and both failure modes are bad.
Unknown means unknown, not harmless. A tool the registry has never been told about has unknown blast radius. Denying it makes registration — a change to the registry file — the path of least resistance.
Infer from the MCP tool schema. Attractive, since MCP tools carry JSON schemas, but the schema describes shape, not consequence. Useful as a hint to flag unregistered tools for review.
Let the model classify its own calls. Rejected outright. The model is the component an attacker manipulates through indirect prompt injection. It never gets to decide what it is allowed to do.
Trust the MCP server's own declaration. Fine for servers you operate; not for third-party ones, which is the case that matters.
The registry is a maintained artefact with an owner. Adding a tool is a reviewed change to it, approved by someone who knows what the tool does and someone accountable for the control.
Its version is recorded in every judgement, so a decision made months ago can be explained with the classification in force at the time rather than today's.
tests/test_classification.py asserts the shipped registry never declassifies a dangerous tool, so
a careless edit fails CI rather than production.
If the tool count grows past what a human can review, add schema-based proposal — automatically suggest a classification, still requiring human approval to merge. Automated classification without review would defeat the purpose.