Skip to main content
Glama

Detect silent state drift in a transcript

detect_state_drift
Read-onlyIdempotent

Checks a conversation transcript for recall, contradiction, or omission of a planted fact, then classifies silent state drift across five modes.

Instructions

Given a planted fact {key, expected_value, planted_turn} and a transcript of turns, check deterministic recall / contradiction / omission and classify the session against the five-mode silent state drift taxonomy (F1 silent state loss, F2 session non-persistence, F3 gating censoring, F4 transient service degradation, F5 platform delisting) from doi:10.5281/zenodo.24549412.

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": {
      "fact": "<fact>",
      "transcript": "<transcript>"
    },
    "name": "detect_state_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
factYes
min_gapNoMinimum turns after planting before a session counts as probed (default 2).
delistedNoSet true when the platform was delisted (forces F5).
probe_turnNoTurn at which recall is probed (default: last turn).
transcriptYesConversation turns, oldest first.

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile needs no restatement. The description adds that the checks are deterministic and that classification follows a named published taxonomy, but does not explain how ambiguous sessions are resolved or what confidence/evidence the classifier emits.

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?

One long, heavily parenthesized sentence front-loads the action, which is good, but the embedded five-mode list with F1–F5 labels and a DOI makes it a dense run-on. The citation supports the taxonomy but costs readability without telling the agent anything operational.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the input contract is largely covered by the 80% schema. What remains thin is the interpretive layer — how F1–F5 differ in practice and what the agent should do with a classification — though for a deterministic single-call classifier this is close to sufficient.

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 80%, so the schema already documents fact.key, expected_value, planted_turn, min_gap, probe_turn and delisted. The description only restates the fact triple {key, expected_value, planted_turn} and says nothing about aliases, wrong_values, contradiction_mode or the effect of min_gap, adding little beyond the schema.

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 gives a specific verb chain (check recall/contradiction/omission, then classify) and a concrete resource (session transcript against a planted fact), and enumerates the five taxonomy labels it emits. It is clear what the tool does and clearly distinct from story-state siblings, though it never names them explicitly.

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?

Usage is implied by the required inputs: you need a planted fact and a transcript of turns. There is no explicit when-to-use/when-not guidance and no routing to alternatives such as step_story_state or validate_story_graph, so an agent must infer that this is for post-hoc drift auditing rather than graph validation.

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