Skip to main content
Glama

Diagnose a proxy error

diagnose_proxy_error
Read-onlyIdempotent

Diagnose proxy failures from structured client, phase, status, or exception data; identify likely causes, next checks, uncertainty, and retry boundaries without sending raw logs, URLs, or credentials.

Instructions

Use structured client/version, phase, status or exception observations to identify possible causes and the next check. Returns uncertainty and retry boundaries. Do not send raw logs, URLs or credentials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
phaseYes
clientYes
methodNounknown
statusNoObserved HTTP status; identify its responding layer separately.
versionYes
exceptionNoNormalized category, not raw exception text. HTTPX ConnectError alone does not establish a TLS error.
responseSourceNoUse target/proxy only when established by response provenance, not merely the status code.unknown
retryAfterSecondsNoParsed bounded Retry-After delay, if actually observed. Never submit the raw header.
requestMayHaveBeenSentNoWhether this target request may already have reached the application. Omit when unknown.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
retryYes
clientYes
sourcesYes
summaryYes
versionYes
evidenceYes
candidatesYes
uncertaintyYes
rulesRevisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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, non-destructive, closed-world), so the bar is lower. The description still adds real value by disclosing the output character ('returns uncertainty and retry boundaries') and an input-hygiene constraint that annotations cannot express.

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?

Three short sentences, each earning its place: what to supply, what comes back, and what not to supply. Front-loaded with the actionable instruction and free of padding.

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?

An output schema exists, so return values need not be enumerated, and the description still signals the uncertainty/retry-boundary framing. Combined with annotation coverage and reasonably documented enum fields, an agent has enough to invoke it correctly, though the exclusion from sibling tools remains unstated.

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 coverage is 56%, and the description names only four of nine inputs (client, version, phase, status/exception) without adding format or interpretation detail. The schema's own field descriptions (normalized exception category, response provenance, bounded Retry-After) do the heavy lifting, so this is adequate but not compensatory.

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 (identify possible causes and the next check) on a specific resource (proxy errors) using named inputs. It is clearly distinguishable from doc-search and config-generation siblings, though it never names them explicitly.

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?

Gives strong input guidance ('use structured client/version, phase, status or exception observations') and a negative constraint ('do not send raw logs, URLs or credentials'), which effectively tells the agent when this tool is inappropriate. However, it never contrasts with search_proxy_docs, get_proxy_doc, or generate_proxy_config, so the routing decision is left implicit.

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