Skip to main content
Glama

transcript-validator

Check tool-call / tool-result pairing and ordering in an LLM transcript (Anthropic, OpenAI Chat, OpenAI Responses) — Validates a message list before it is sent to Anthropic Messages, OpenAI Chat Completions or OpenAI Responses: every tool call paired with its result, results in the right place and role, ids present and unique. Built for an agent that edits, truncates or replays its own history and would otherwise get a 400. Only rules stated in the providers' documentation fail the check; anything else suspiciou

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "provider": "<provider>",
      "messages": "<messages>"
    },
    "name": "transcript-validator"
  }
}

Input Schema

NameRequiredDescriptionDefault
messagesYes
providerYes
expectCompleteNoDefault true: a trailing tool call without a result is a defect. Set false when the transcript is mid-loop and results are still pending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description must carry the behavioral burden, and it does substantial work: it discloses the strictness policy (only rules stated in provider documentation cause failure), the intended pre-flight position in the pipeline, and the failure mode being prevented (HTTP 400). It stops short of describing the result shape or severity levels, and the text is truncated mid-word ("anything else suspiciou"), leaving a disclosed behavior unfinished.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the check list are front-loaded and each sentence carries information. However, the provider list is repeated verbatim across two sentences, and the description terminates mid-word, which reads as an unfinished edit rather than a deliberate ending.

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 pre-flight validator with no output schema and no annotations, an agent still needs to know what comes back — a boolean, a list of defects with locations, a thrown error — and the description does not say. Combined with the truncated final clause and the unexplained message shape, the definition is useful but leaves real gaps before invocation.

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 33%, so the description needs to compensate for undocumented parameters. It names the three provider values that map to the `provider` enum, but says nothing about what a valid entry in `messages` must contain (roles, tool_use_id, tool_call_id, content blocks) — the most error-prone input for a validator. `expectComplete` is only documented in the schema, not the description.

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 first sentence names a specific verb (check/validate) and a precise resource (tool-call / tool-result pairing and ordering in an LLM transcript), and enumerates the three provider dialects it covers. It also scopes the checks performed (pairing, placement, role, id presence and uniqueness), so an agent knows exactly what class of tool this is.

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 states the triggering situation clearly: use it before sending a message list, specifically when the agent edits, truncates or replays its own history and would otherwise get a 400. It also implies a when-not by scoping failures to documented provider rules. No named alternative tool is offered, which is the only thing separating this from a 5.

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.

Resources