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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "iana_lookup_http_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoStatus code to look up, 100–599 (a digit string such as "429" also works). Pass this or keyword, not both.
limitNoRequested maximum results as a positive safe integer. Values above 100 are clamped to 100 and disclosed as requested_limit and effective_limit. 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

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.
effective_limitNoThe response limit after clamping, present when clamped.
requested_limitNoThe requested limit, present when clamped.
unassigned_rangeNoFor an unassigned code, the registry range it falls in, e.g. "432-450".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / code / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^\\s*(?:\\d{1,15}\\s*)?$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / code / type
      Removed value: -"integer"
    • removedInput schema / properties / keyword / maxLength
      Removed value: -100
    • removedInput schema / properties / keyword / minLength
      Removed value: -2
    • addedInput schema / properties / keyword / pattern
      Added value: +"^\\s*(?:\\S[\\s\\S]{0,98}\\S\\s*)?$"
    • addedInput schema / properties / limit / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^\\s*(?:\\d{1,16}\\s*)?$",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / limit / description
      Previous value: -"Requested maximum results, 1–1,000,000; values above 100 are clamped to 100 and disclosed as requested_limit and effective_limit. Default 25."New value: +"Requested maximum results as a positive safe integer. Values above 100 are clamped to 100 and disclosed as requested_limit and effective_limit. Default 25."
    • removedInput schema / properties / limit / maximum
      Removed value: -1000000
    • removedInput schema / properties / limit / type
      Removed value: -"integer"
    • addedInput schema / properties / offset / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^\\s*(?:\\d{1,15}\\s*)?$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / offset / type
      Removed value: -"integer"
  2. Changed4 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return, 1–100. Default 25."New value: +"Requested maximum results, 1–1,000,000; values above 100 are clamped to 100 and disclosed as requested_limit and effective_limit. Default 25."
    • changedInput schema / properties / limit / maximum
      Previous value: -100New value: +1000000
    • addedOutput schema / properties / effective_limit
      Added value: +{
      +  "description": "The response limit after clamping, present when clamped.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / requested_limit
      Added value: +{
      +  "description": "The requested limit, present when clamped.",
      +  "type": "number"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and openWorld, so safety is covered. The description adds genuinely behavioral context the annotations lack: what the response contains and, importantly, that an unassigned code returns found: false with the unassigned range rather than an error. Some of this overlaps the output schema, which keeps it from a 5.

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?

Three tight sentences with the purpose and mode selection front-loaded. The final sentence on return fields is lengthy and partly redundant with the output schema, but it is the only place the not-found behavior is described.

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 needn't enumerate return values, and it still covers both modes, parameter exclusivity, and not-found handling. The remaining gap is that it never points the agent to a broader registry-search alternative.

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 code, keyword, limit, and offset are already documented with ranges, defaults, and pagination semantics. The description restates the mutual-exclusion rule and the 100–599 bound but adds no syntax or meaning 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?

The description names a specific verb and resource ("Look up an HTTP status code in the IANA registry") and adds a second mode ("search reason phrases"). This is clearly distinct from siblings like iana_lookup_http_field or iana_lookup_language_tag, which target other registries.

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?

It gives concrete invocation guidance: "Pass exactly one of `code` (100–599) or `keyword`" with an example, which tells the agent how to choose between the two modes. It stops short of stating when to prefer this over a broader search sibling such as iana_search_registries.

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.