Skip to main content
Glama

guard_recall

Read-onlyIdempotent

Find past journal entries and evidence by keyword, tag, type, or evidence id when caps hid the entry you remember. Returns ranked trusted and agent hits; no network access.

Instructions

Search the retained journal and evidence window. No embeddings and no network.

Use it when you remember a word, tag, evidence id, or command but not which entry it was, including after the brief's caps hid it. Filters combine with AND. query is a string, default empty. type is an optional string (decision, correction, risk, note, or evidence), default None. tags is an optional list of strings, default None. limit is an int, default 5, clamped to 0–20. evidence_id and cmd are optional strings, default None. With a query, past bash commands from the retained events window are also eligible as reuse hints. It returns ranked lines labelled trusted or agent, then a Nudge. Rows rotated past the third ledger segment are already gone. Side effects: none. It does not create .agent-guard/ and does not write the journal or the evidence ledger. Agent hits stay unverified.

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": "guard_recall"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmdNoCommand fingerprint, or a substring of one, matched against verify runs only. String or omitted. Default None. Fingerprint matching is case-sensitive.
tagsNoTags that must all be present (AND). List of strings, or omitted. Default None. Matching is exact and case-insensitive. Evidence rows have no tags, so any tag filter excludes them.
typeNoOptional row type. String or omitted. One of decision, correction, risk, note, evidence. Default None (every type). Any other string returns an error line.
limitNoMaximum hits to return. Integer. Default 5. Clamped to 0–20. A non-integer returns an error line.
queryNoKeywords to find, as one string. Default empty, which does not keyword-filter. Case-insensitive; every keyword must match journal text, a verify command, or a digest. A keyword that is itself ev-NNNN also matches that evidence id. Capped at 500 characters and 12 keywords. Stopwords are dropped.
evidence_idNoExact evidence id to require, such as ev-0007. String or omitted. Default None. ev-7 and ev-0007 match the same id. A value that is not an evidence id returns an error line.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.3.1
    • addedInput schema / properties / cmd / description
      Added value: +"Command fingerprint, or a substring of one, matched against verify runs only. String or omitted. Default None. Fingerprint matching is case-sensitive."
    • addedInput schema / properties / evidence_id / description
      Added value: +"Exact evidence id to require, such as ev-0007. String or omitted. Default None. ev-7 and ev-0007 match the same id. A value that is not an evidence id returns an error line."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum hits to return. Integer. Default 5. Clamped to 0–20. A non-integer returns an error line."
    • addedInput schema / properties / query / description
      Added value: +"Keywords to find, as one string. Default empty, which does not keyword-filter. Case-insensitive; every keyword must match journal text, a verify command, or a digest. A keyword that is itself ev-NNNN also matches that evidence id. Capped at 500 characters and 12 keywords. Stopwords are dropped."
    • addedInput schema / properties / tags / description
      Added value: +"Tags that must all be present (AND). List of strings, or omitted. Default None. Matching is exact and case-insensitive. Evidence rows have no tags, so any tag filter excludes them."
    • addedInput schema / properties / type / description
      Added value: +"Optional row type. String or omitted. One of decision, correction, risk, note, evidence. Default None (every type). Any other string returns an error line."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, and the description still adds material facts: no `.agent-guard/` creation, no journal or ledger writes, retained rows rotated past the third segment are gone, agent hits stay unverified, and results come back ranked with trust labels. That is exactly the extra context an agent needs beyond the safety hints.

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?

Well front-loaded: purpose first, then when-to-use, then parameters, returns, and side effects. The per-parameter default and type recitation is partly wasted given full schema coverage, but the overall ordering is easy to scan.

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?

Covers retention loss, side effects, trust labeling, and offline behavior, which is ample for a six-parameter read-only search with an output schema. The main omission is routing guidance versus the sibling tools that browse the same journal and evidence stores.

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 100%, so the baseline is 3, and most of the parameter text restates what the schema already says (type enum, defaults, limit clamp). The one genuine addition is that a query also makes past bash commands from the retained events window eligible as reuse hints, which the schema does not state.

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?

Names a specific verb and resource: searching the retained journal and evidence window, plus the mechanism constraint 'No embeddings and no network'. That distinguishes it from a passive log reader like guard_journal, though no sibling is named explicitly.

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?

Gives a concrete triggering condition: use it when you remember a word, tag, evidence id, or command but not which entry it was, including after the brief's caps hid it. It lacks explicit when-not guidance or a pointer to the sibling to use for plain chronological listing.

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