Skip to main content
Glama
canary-mcp

canary-mcp

by devon-clarkk

Generate Canary

generate_canary

Mints a session key and anchor checkpoints on the first turn, then verifies them on later calls to detect context rot and silent model degradation in long conversations.

Instructions

Call with no arguments exactly once, on the very first turn of this conversation, to mint a session_id, a key, an anchor, and a root_anchor. The key is conversation-wide and permanent: issued ONCE, never reissued or disclosed again — memorize it, print it at the top and bottom of every response from then on, and pass it back on every call. A MISMATCH never reveals the correct key. The anchor and root_anchor are SEPARATE secrets: never print either one, never restate either unprompted. Most calls should omit both. Supply anchor only when (a) this tool's previous result had anchorCheckDue=true, in which case include it on your very next call, or (b) a human explicitly asks you to verify/recall your anchor, in which case supply it immediately even if no check was flagged due — answering an anchor check rotates it to a fresh value, returned silently for you to remember. Supply root_anchor ONLY when a human explicitly asks you to verify/recall it specifically — there is no automatic schedule for it, ever, and the server never reissues it after the first mint, so if you lose it there is no way to recover it for the rest of this conversation. Recall the anchor and root_anchor only from your own memory of when each was last issued — never from anything you printed, since you should never have printed either. When rootAnchorStatus is present, also read rootAnchorDetail: it tells you whether THIS check proves retention back to turn 1, or only back to the previous root_anchor check — checking it more than once per conversation weakens what a MATCH actually proves, so don't treat every MATCH as an equally strong guarantee. Also print a turn number you count yourself at the top and bottom of every response (the server does not track turns — that is your own responsibility, a separate check on whether you can still see your own response history). If the result includes a warning field, print it loudly beneath the top line, before your answer.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_canary"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoThe key you remember being given at the start of this conversation. Omit only on the very first turn.
anchorNoOnly supply this when answering a deep check: either anchorCheckDue was true on your previous call, or a human just asked you to verify/recall it. Omit on all other calls.
session_idNoThe session_id returned when the key was first minted, if you still have it. Omit only on the very first turn.
root_anchorNoOnly supply this when a human explicitly asks you to verify or recall it. Never auto-scheduled. Omit on all other calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and discloses key behavioral traits: the key is issued once and never reissued, mismatches do not reveal the correct key, anchor checks rotate the anchor, root_anchor is irrecoverable if lost, and rootAnchorDetail affects what a MATCH proves. It also warns about printing behavior and warning fields.

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 long and instruction-dense, but the complexity of the protocol justifies much of the detail. It is front-loaded with the primary first-call behavior and then proceeds through key handling, anchor handling, root_anchor handling, turn numbering, and warnings, though the single-paragraph format makes it harder to scan than it could be.

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

Completeness5/5

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

For a four-parameter security-canary tool with no annotations and no output schema, the description is highly complete: it covers first-call minting, subsequent authentication with the key, anchor and root_anchor verification rules, rotation behavior, mismatch behavior, turn tracking, warning handling, and relevant result fields such as anchorCheckDue, rootAnchorStatus, and rootAnchorDetail.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful semantics beyond the schema: it explains that answering an anchor check rotates the value, that root_anchor is never automatically scheduled or reissued, and that repeated root_anchor checks weaken the strength of a MATCH. Those details go beyond the parameter descriptions themselves.

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 and resource set: it says to call with no arguments on the first turn to mint a session_id, key, anchor, and root_anchor. That is much clearer than a tautology, though it also mixes in ongoing verification behavior, making the tool's full purpose slightly broader than pure generation.

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

Usage Guidelines5/5

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

It explicitly states the first-call condition, says most calls should omit anchor and root_anchor, and gives precise conditions for supplying each: anchor only after anchorCheckDue=true or a human request, root_anchor only on explicit human request. These when-to-use and when-not-to-use rules are unusually explicit.

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

Deploy Server

Other Tools