Skip to main content
Glama

afr_verify_cassette

Read-onlyIdempotent

Verifies Lamport logical clocks, SHA-256 hash chain, and Merkle root in a JSONL flight cassette to confirm integrity and detect tampering.

Instructions

Verify Lamport logical clocks, SHA-256 hash chain, and Merkle root of a JSONL flight cassette.

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>"
    },
    "name": "afr_verify_cassette"
  }
}

Input Schema

NameRequiredDescriptionDefault
cassette_jsonlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds value by enumerating exactly which integrity properties are validated, but it says nothing about what a failed verification looks like, whether verification is total or short-circuits, or how results are reported.

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?

One sentence, front-loaded with the verb and the concrete checks; every clause carries information and nothing is padding.

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 single-parameter verification tool with no output schema, the description conveys enough to call it, but a verify tool's usefulness depends on interpreting the outcome, and nothing is said about result shape or failure signaling. The omission is tolerable given no output schema exists, but it leaves a real gap for an agent acting on the result.

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 0% — the single parameter is only typed as 'string'. The description partially compensates by revealing that the string is JSONL-formatted cassette content, which is meaningful beyond the schema. It does not clarify size limits, encoding expectations, or whether a raw string vs. file path is accepted beyond the word 'cassette_jsonl'.

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 ('Verify') plus three concrete checked artifacts (Lamport logical clocks, SHA-256 hash chain, Merkle root) against a named input ('JSONL flight cassette'), which is clearly distinct from the sibling names (audit, replay_diff, scrub_opsec). It stops short of explicitly contrasting itself with those siblings, but the operation is unambiguous.

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 says what is checked but never when to call it — no mention of pre/post-replay workflows, whether it should precede afr_replay_diff, or what condition warrants verification. The agent must infer usage entirely from the tool name and purpose sentence.

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