verify_tool_descriptor
Verifies MCP tool descriptors by hashing and comparing against an approved baseline, alerting on any change to prevent post-approval drift attacks.
Instructions
Capability 1 + 2: hash an MCP tool descriptor (Q3 semantics — full descriptor INCLUDING protocolVersion) and compare against the user-approved baseline. Returns the current hash and a change_detected flag. Hosts SHOULD call this before forwarding a tool call to detect post-approval descriptor drift (tool poisoning / rug pull defense per arXiv:2512.06556).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"descriptor": "<descriptor>"
},
"name": "verify_tool_descriptor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| descriptor | Yes | ||
| baseline_hash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||