Skip to main content
Glama

Look up an HTTP status code

iana_lookup_http_status
Read-onlyIdempotent

Look up an HTTP status code in the IANA registry, or search reason phrases. Pass exactly one of code (100–599) or keyword (e.g. "too many"). Returns the registered phrase, its class, defining reference with section, and whether it is temporary, obsoleted, or unused; an unassigned code returns found: false with the unassigned range it falls in.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoStatus code to look up, 100–599 (a digit string such as "429" also works). Pass this or keyword, not both.
limitNoMaximum number of results to return, 1–100. Default 25.
offsetNoNumber of keyword matches to skip; pass the next_offset of the previous response to get the next page. Default 0.
keywordNoWords matched as whole tokens against registered reason phrases, e.g. "too many" or "gateway". Pass this or code, not both.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
capNoThe limit applied.
modeNoWhich lookup ran.
errorNoPresent when the call failed. Absent on success.
foundNoTrue when a registered status matched.
shownNoResults returned.
noticeNoGuidance on a miss, a cut list, or another condition.
sourceNoProvenance and freshness of the answer.
statusesNoMatching status codes: exact phrase hits first, then registry order.
truncatedNoTrue when more matches exist than were returned.
totalCountNoMatches before the limit was applied.
next_offsetNoPass as offset for the next page; absent on the last.
unassigned_rangeNoFor an unassigned code, the registry range it falls in, e.g. "432-450".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), so the bar is lower. The description still adds real behavior beyond them: the specific fields returned (phrase, class, reference with section, temporary/obsoleted/unused flags) and the important edge case that an unassigned code returns found: false with its unassigned range.

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

Conciseness5/5

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

Two tightly packed sentences, front-loaded with the primary purpose, with zero filler. Every clause carries information: lookup mode, search mode, exclusivity constraint, and the return/edge-case behavior.

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 an output schema present, the description need not enumerate return values, yet it still adds the useful unassigned-code edge case. The only gap is that it doesn't position itself relative to the many sibling lookup tools, which matters in a family of nine similarly named tools.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters are already documented with ranges, defaults, and the mutual-exclusion note. The description restates the code/keyword exclusivity but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb (look up / search) and resource (HTTP status code in the IANA registry), plus the secondary mode of searching reason phrases. An agent can distinguish it from iana_lookup_http_field or iana_get_rfc_status purely from the text.

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

Usage Guidelines4/5

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

Explicitly states the code-vs-keyword selection rule ('Pass exactly one of'), which tells the agent how to invoke it correctly. It does not, however, contrast this tool against siblings like iana_search_registries or iana_lookup_http_field, so there is no explicit alternative routing.

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.