Skip to main content
Glama

check_404_neutrality

Test a route to ensure nonexistent, invalid, and malformed resource IDs return byte-identical 404 responses, preventing existence leaks.

Instructions

Check that nonexistent, invalid and malformed resource ids return a byte-identical 404. Differences leak an existence oracle that enables enumerating other users' resources.

Args: base_url: Origin of the app under test, e.g. "http://127.0.0.1:5000". path_template: Route with an {id} placeholder, e.g. "/notes/{id}".

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": {
      "base_url": "<base_url>"
    },
    "name": "check_404_neutrality"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_urlYes
path_templateNo/items/{id}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries the full behavioral burden. It discloses the comparison mechanism (byte-identical 404 responses) but says nothing about whether the target must be running or authenticated, how many requests are issued, whether probes are destructive, or how pass/fail is reported. For an active multi-request probe with zero annotation coverage, these are material omissions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose, followed by the threat rationale, then a compact Args block. Every sentence adds information; nothing is padded. Only minor inefficiency is restating parameter details in prose rather than a table.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, no annotations, and no return-value description, the definition leaves the agent guessing what a result looks like (per-id verdicts? diff bytes? boolean?) and what preconditions matter. It is adequate to understand intent and parameters but incomplete for correct invocation and interpretation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: base_url is explained as the origin of the app under test with a concrete example, and path_template as a route containing an {id} placeholder with an example. It omits the documented default of "/items/{id}" and what happens if the placeholder is missing, so not fully complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific check with a precise success criterion: nonexistent, invalid and malformed ids must return a byte-identical 404. The resource under test (route with an {id}) is named, so an agent knows exactly what is validated. It does not explicitly differentiate itself from siblings like check_sequential_ids, which also concerns resource-id leakage.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The security rationale (existence oracle enabling enumeration of other users' resources) gives strong implied context for when this tool matters, but there is no explicit when-to-use, when-not, or named alternative among the check_* siblings. The agent must infer that this belongs to a security audit pass.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.