REQ-MCP-008: Plugin tools are argument-validated on the same terms as built-ins¶
What it requires
- Given a registered server whose tool declares an input schema, When get_tool_schema() is called with the qualified name, Then the schema JSON is returned; for an unknown tool an empty string is returned; for a plugin tool the schema comes from the plugin's own descriptor list.
- tier
- NOT_RUN
How it is met
Implemented by
check_schemasrc/mcp/tool_executor.cpp:873get_tool_schemasrc/mcp/server_manager.cpp:558get_tools_jsonsrc/mcp/tool_registry.cpp:70list_toolssrc/mcp/plugin_server.cpp:303plugin_tool_schemasrc/mcp/server_manager.cpp:590
Tests (63)
Reached through calls
63 tests: 63 absent
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
get_tool_schema returns empty for unknown tool | absent | inferred | 2 of 5: get_tool_schema, plugin_tool_schema | 1 |
get_tool_schema returns the registered tool's schema | absent | inferred | 2 of 5: get_tool_schema, plugin_tool_schema | 1 |
get_tools_json returns definitions | absent | inferred | 1 of 5: get_tools_json | 1 |
Delegate tool enum excludes source tiers | absent | inferred | 1 of 5: get_tools_json | 2 |
Server registers tools | absent | inferred | 1 of 5: get_tools_json | 2 |
A call that fails identically is refused rather than retried | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Anti-spiral hard block stops dispatch and emits | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Anti-spiral hard block uses derived default when sentinel set | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Auto approve skips callback | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Chained POST_TOOL_CALL hooks: last write wins | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Circuit breaker at three | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Duplicate counter resets | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Duplicate detection skips | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Error result not cached for dedup | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Headless mode denies without callback | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Max tool calls per turn | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Multiple tool calls in batch | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
POST_TOOL_CALL fires on duplicate rejection with kind | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
POST_TOOL_CALL fires on schema rejection with kind | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
POST_TOOL_CALL hook transforms duplicate-rejection content | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
POST_TOOL_CALL hook transforms schema-rejection content | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
POST_TOOL_CALL hook transforms successful tool result content | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
POST_TOOL_CALL with *modified_json == NULL leaves content untouched | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
PRE/POST_TOOL_CALL fire for successful calls | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
PRE_TOOL_CALL cancel short-circuits dispatch and still fires POST | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Permission denied returns feedback | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Process single tool call | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Schema validation rejects invalid enum value | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Schema validation rejects missing required field | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Tool call history records successful executions | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Tool emits directives → ToolExecutor extracts + dispatches them | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
Tool executor processes calls via ServerManager | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
effective_max_tool_calls_per_turn overrides global limit | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#111: POST_TOOL_CALL hook returning malformed UTF-8 is | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#143: an argument-free call serialises as an object | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#143: an argument-free call to a no-required-fields tool | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#143: dispatch converts a throwing tool into a tool error | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#168: a rewritten payload carrying bad UTF-8 is sanitized, | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#168: the rewrite is visible to the dup cache and POST hook | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#190: a structured JSON error counts as a failure everywhere | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#211: a tier that declares an EMPTY allowlist may call nothing | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#83: allowlisted tool dispatches normally | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#83: empty locked_tier bypasses enforcement | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#83: no map wired = pass-through (pre-v2.5.2 behavior) | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#83: off-allowlist tool is rejected_unauthorized at dispatch | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#83: tier with no allowlist entry is unrestricted | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
mcp.bash.timeout_seconds reaches the dispatched bash server | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
process_single_call completes with locked_tier set | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
v2.14.0: schema validation enforces declared minimum and maximum | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
v2.14.6: a headless host still dispatches engine directives | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 4 |
gh#158: a delegated child's read satisfies its parent's write — | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#158: a session's tool call never resolves inside another | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#158: repeated sandbox swaps race nothing a concurrent | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#158: two sessions reading and writing through ONE filesystem | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#158: two sessions writing todos through ONE entropic server | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#168: a PRE_TOOL_CALL hook's modified args reach the tool | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#168: a malformed modification is refused, not half-applied | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#168: a modification that renames the tool is refused | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#168: a non-zero return still cancels, modification or not | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 5 |
gh#158: clearing the default conversation releases the default | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 6 |
gh#158: each session's todo list is its own | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 6 |
gh#158: ending a session's conversation releases its read | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 6 |
gh#158: read-before-write is judged per session — another | absent | inferred | 3 of 5: check_schema, get_tool_schema, plugin_tool_schema | 6 |