Skip to main content
Glama

doctor_endpoint

Run live streaming contract canaries against an LLM endpoint to verify API behavior and return a Wire Health Grade, P0 breaches, checks, and timing.

Instructions

Run inferdiff's live streaming contract canaries. Return the Wire Health Grade, P0 breaches, checks, and timing.

Input Schema

NameRequiredDescriptionDefault
urlYesHTTP(S) endpoint base URL or full streaming route, for example /v1/chat/completions.
modelNoRequested model ID. Omit to let inferdiff discover a model from the endpoint.
api_keyNoExplicit API key as a compatibility fallback. Prefer api_key_env to keep it out of client context.
profileNoCanary profile. quick runs the core checks, full runs all standard checks, relay targets relay behavior.quick
protocolNoStreaming protocol. Anthropic runs C9 and Gemini runs C10 with an inferdiff build that supports them.openai
api_key_envNoName of the server environment variable containing the API key. Prefer this over api_key.
report_pathNoOptional destination for a redacted HTML report, ending in .html.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure. It says the tool issues live streaming calls and describes the returned sections, but says nothing about whether those calls consume tokens or incur cost, what load it places on the target endpoint, whether changes are made, or that report_path writes a redacted HTML artifact (that fact only appears in the schema). For a network-probing tool with zero annotation coverage, this is a notable gap.

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, verb-first, zero filler. The second sentence carries real information about outcomes, which is valuable given no output schema exists.

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

Completeness2/5

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

For a seven-parameter tool that makes live network calls, selects from three canary profiles, and can write a report file, two sentences leave major gaps: no explanation of what the canary profiles mean in practice, no safety or cost disclosure, and no indication of what a Wire Health Grade looks like or how P0 breaches should be acted on. The return-section names partially compensate for the missing output schema, but the operational context is thin.

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 seven parameters (url, model, api_key, api_key_env, profile, protocol, report_path) are documented with meaningful guidance in the schema. The description adds no parameter-level meaning beyond that, which is the expected baseline when the schema does the work.

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?

"Run inferdiff's live streaming contract canaries" states a specific verb and resource, and the second sentence names the artifacts produced (Wire Health Grade, P0 breaches, checks, timing), so an agent can tell this is an active live-testing tool rather than an offline file auditor like audit_sse_text. The jargon "contract canaries" and "Wire Health Grade" are inferdiff-specific but remain interpretable from context. It stops short of explicitly contrasting itself with the offline audit siblings.

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?

The word "live" implicitly signals use against a reachable endpoint rather than a captured trace, which is the main usage distinction an agent needs. However, there is no explicit when-to-use or when-not-to-use statement, and no direction to the sibling tools that share this space.

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