Skip to main content
Glama

compare_endpoints

Compare two live LLM API endpoints to detect model and fingerprint changes, finish-reason drift, TTFT differences, and protocol breaches before deployment.

Instructions

Compare two live targets for observed model and fingerprint changes, finish-reason drift, TTFT, and protocol breaches.

Input Schema

NameRequiredDescriptionDefault
modelNoRequested model ID. Omit to let inferdiff discover a model from the endpoint.
url_aYesHTTP(S) endpoint base URL or full streaming route, for example /v1/chat/completions.
url_bYesHTTP(S) endpoint base URL or full streaming route, for example /v1/chat/completions.
api_keyNoExplicit API key as a compatibility fallback. Prefer api_key_env to keep it out of client context.
model_aNoRequested model ID. Omit to let inferdiff discover a model from the endpoint.
model_bNoRequested model ID. Omit to let inferdiff discover a model from the endpoint.
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_aNoExplicit API key as a compatibility fallback. Prefer api_key_env to keep it out of client context.
api_key_bNoExplicit API key as a compatibility fallback. Prefer api_key_env to keep it out of client context.
api_key_envNoName of the server environment variable containing the API key. Prefer this over api_key.
api_key_env_aNoName of the server environment variable containing the API key. Prefer this over api_key.
api_key_env_bNoName of the server environment variable containing the API key. Prefer this over api_key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose that the tool hits live endpoints and reports drift, latency, and protocol violations. It says nothing about authentication needs, request volume/cost, rate limits, or whether results are comparative or per-side.

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?

A single front-loaded sentence listing the compared dimensions, with no filler. Slightly list-like but every clause maps to something the tool actually checks.

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

Completeness3/5

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

For a 13-parameter live-probing tool with no annotations and no output schema, the description omits what the comparison result looks like and how differences are reported. The schema covers inputs well, but behavioral and output expectations remain 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 13 parameters, including profile enums and model-discovery behavior, are already documented in structured data. The description adds no parameter-level meaning beyond the schema, which is the baseline expectation here.

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?

Specific verb and resource: "Compare two live targets" for four named signals (model/fingerprint changes, finish-reason drift, TTFT, protocol breaches). This clearly differs from siblings like rank_endpoints or audit_trace_file, though the description doesn't explicitly name an alternative.

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 phrase "live targets" implies the tool probes real endpoints rather than offline traces or bundles, which weakly distinguishes it from replay_trace_bundle and audit_trace_file. There is no explicit when-to-use statement, no prerequisites, and no guidance on choosing between this and doctor_endpoint or rank_endpoints.

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