Skip to main content
Glama

Look Up Diagnostics

lookup_diagnostics
Read-onlyIdempotent

Look up a diagnostic code for its explanation and recovery action. Pass code for one exact entry, or omit it for the full catalogue.

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": "lookup_diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoExact diagnostic code from the tool response, such as feature.invalid-args.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / code
      Added value: +{
      +  "description": "Exact diagnostic code from the tool response, such as feature.invalid-args.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • removedOutput schema / properties
      Removed value: -{
      -  "codes": {
      -    "description": "The diagnostic-code catalogue with hint templates.",
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "codes"
      -]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "codes": {
      +      "description": "The diagnostic-code catalogue with hint templates.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "codes"
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered structurally. The description adds only that results include an explanation plus recovery action and that omitting the code returns everything; it says nothing about response size or cost of the whole-catalogue call. Credit is limited because the structured fields do most of the work.

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 sentences, front-loaded with the purpose, then the parameter behavior. No filler, no redundancy with the title.

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, annotations covering safety, and a single fully documented parameter, the description supplies everything needed to call the tool correctly. The only omission is a caution that the no-code mode returns the entire catalogue.

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% and already defines code with an example, so the baseline is 3. The description adds real meaning beyond the schema by explaining the consequence of omitting the parameter (full catalogue) and that the value must be an exact code taken from a prior tool response.

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 verb and resource ('look up a diagnostic code') and what it returns ('explanation and recovery action'). It does not explicitly contrast itself with the sibling lookup_* tools, but the resource is concrete enough that an agent can distinguish it from lookup_api or lookup_cookbook.

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?

Gives clear conditional usage: pass code for one exact entry, omit it for the full catalogue. This resolves the main selection ambiguity for an optional parameter, though it names no alternative tool for related lookups.

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.