Skip to main content
Glama

afr_replay_diff

Read-onlyIdempotent

Aligns recorded tool-session cassettes against candidate invocations with deterministic dynamic programming to compare replay runs and identify call differences.

Instructions

Deterministically align a recorded cassette against candidate tool invocations via Wagner-Fischer DP.

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": {
      "cassette_jsonl": "<cassette_jsonl>",
      "candidate_calls": "<candidate_calls>"
    },
    "name": "afr_replay_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
cassette_jsonlYes
candidate_callsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds that alignment is deterministic and uses Wagner-Fischer DP, but it omits output format, matching semantics, error behavior, and what the cassette_jsonl format entails.

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?

The description is a single front-loaded sentence with no filler. The technical terms are dense, but each phrase carries meaning and the core operation is stated first.

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 two-parameter tool with 0% schema coverage and no output schema, the description is too sparse. It leaves input format, return shape, and alignment/result semantics unspecified, so an agent cannot reliably construct inputs or interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning. It vaguely alludes to 'recorded cassette' and 'candidate tool invocations,' but it never explains the JSONL structure of cassette_jsonl or the object shape expected in candidate_calls.

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?

The description uses a specific verb, 'align,' and names the resources: a recorded cassette and candidate tool invocations. It also states the algorithm, Wagner-Fischer DP. However, it does not distinguish this tool from siblings such as afr_verify_cassette.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use guidance, no when-not-to-use guidance, and no alternative tool. It never references the sibling tools or the conditions that would select this alignment/diff operation over verification or auditing.

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