Skip to main content
Glama

check_sequential_ids

Check whether consecutive numeric IDs resolve to distinct resources, revealing guessable sequences that let anyone enumerate the collection from one known ID.

Instructions

Check that consecutive numeric ids do not resolve to distinct resources. Guessable sequential ids let anyone walk the whole collection from a single known 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_sequential_ids"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_urlYes
path_templateNo/items/{id}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It explains the security concept but not the operation: whether it issues live requests to base_url, how many ids it walks, whether it is read-only against the target, or how results are reported. No output schema exists to fill that gap.

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?

Two tight sentences: the check is front-loaded and the second sentence justifies it without padding. Slightly awkward line-wrapping but no wasted words.

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?

For a security-probe tool with no annotations, no output schema and undocumented parameters, the definition explains what is being checked but omits operational scope and return expectations. It is enough to understand intent, marginal for calling correctly.

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

Parameters2/5

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

Two parameters with 0% schema description coverage, and the description never mentions base_url or path_template. The agent must infer that path_template's {id} placeholder is the substitution point from the default value alone, with no guidance on formatting or accepted template syntax.

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?

The description names a specific check — verifying that consecutive numeric ids do not resolve to distinct resources — plus a concrete rationale (enumeration from one known id). That is far more specific than the tool name alone, though it never contrasts itself with the sibling check_* tools that an agent must choose between.

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?

Usage is implied rather than stated: an agent can infer this belongs in a security audit of an id-addressable endpoint. There is no explicit when-to-use, when-not-to-use, prerequisite (e.g. authorization to probe the target), or linkage to sibling checks such as check_404_neutrality.

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