Skip to main content
Glama

HTTP Status Code Explain

http_status_explain
Read-onlyIdempotent

Explain an HTTP status code. Send code, a number from 100 to 599, and optionally method (GET, POST ...). Get back the official name, its class (1xx to 5xx), what it means, which RFC and section define it, whether to retry and how (follow the Location, fix the request first, wait and resend, or never), whether a cache may reuse it by default, and the headers to look at. Covers every code in the IANA HTTP Status Code Registry; unassigned codes are reported as such and treated like the x00 code of their class, as RFC 9110 says. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/http-status-explain). Not legal, tax or financial advice.

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": {
      "code": "<code>"
    },
    "name": "http_status_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe three-digit HTTP status code, 100 to 599.
methodNoOptional: the request method that got this status, to tailor the retry advice (RFC 9110 9.2.2: PUT, DELETE and the safe methods are idempotent).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the bar is lower; the description still adds a lot: free, no model, no network, nothing stored, answers signed with a key that can be verified, an hourly rate limit, and the exact error shape (ok false with reason: bad input, too large, hourly limit). It also discloses the edge-case rule for unassigned codes. Slightly short of 5 only because it does not say what the 'too large' error means in practice or where the limit threshold sits.

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

Conciseness3/5

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

Front-loaded correctly and no sentence is pure filler, but it is written as a single dense run-on that chains output fields and error modes together, and the trailing 'Not legal, tax or financial advice' disclaimer is boilerplate irrelevant to a status-code lookup.

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

Completeness4/5

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

With no output schema, listing the answer fields (ok, verdict, result, rule, does_not, sources, observation, signature, verify) is genuinely load-bearing, and errors plus rate-limit behavior are covered. The only gap is that the fields are named but not described, so an agent cannot tell what 'rule' or 'does_not' actually contain.

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 coverage is 100%, so the baseline is 3; the description earns a 4 by explaining the effect of method beyond the schema's own note – that retry advice is tailored using RFC 9110 9.2.2 idempotency rules. The code range is already in the schema, so that part is repeated.

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

Purpose5/5

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

Specific verb and resource ('Explain an HTTP status code'), with scope stated precisely (100–599, every code in the IANA registry, unassigned codes reported as such). An agent knows exactly what it gets back: name, class, meaning, RFC and section, retry advice, cacheability, headers.

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?

Clear invocation context (you have a status code and want its meaning), and it says method is optional and tailors retry advice. But it never says when to prefer a sibling such as http_cache_freshness, nor any when-not condition; usage is implied rather than routed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources