Skip to main content
Glama

memory_check_record_tool

Record observed verification checks—command, exit code, output hash, commit, and timestamp—against a memory item to preserve test evidence and support staleness detection.

Instructions

Record an observed check (command, exit code, output hash) for a memory.

Args: id: The memory item the check supports name: Short check name, e.g. "pytest tests/test_auth.py" command: The command that was run cwd: Working directory the command ran in exit_code: Observed exit code (0 is a pass) output: Optional captured output (hashed, not stored verbatim) output_hash: Pre-computed SHA256 of the output evidence_hash: Evidence digest the check ran against (defaults to now) commit: Git commit the check ran at (defaults to HEAD) ran_at: ISO timestamp of the run project: Optional project root path. Auto-detected from git root if omitted.

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": {
      "id": "<id>",
      "name": "<name>"
    },
    "name": "memory_check_record_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
cwdNo
nameYes
commitNo
outputNo
ran_atNo
commandNo
projectNo
exit_codeNo
output_hashNo
evidence_hashNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are present, so the description carries the full behavioral burden. It helpfully discloses that output is hashed rather than stored verbatim and that evidence_hash and commit have defaults, but it does not explain write side effects, permissions, idempotency, or error behavior.

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?

The description is front-loaded with a one-line summary followed by a structured Args list. Given the 11 parameters, the size is appropriate and every entry adds useful information without obvious waste.

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?

The description covers all parameters and some behavioral defaults, which is important for an 11-parameter tool with no annotations. However, it lacks usage guidance, sibling differentiation, and mutation-side-effect details; the output schema does reduce the need to explain return values.

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 description coverage is 0%, so the description must compensate. It explains all 11 parameters, including defaults and auto-detection behavior for project, though some fields like output_hash and evidence_hash could use more format or validation detail.

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 states a specific verb and resource: "Record an observed check" tied to a memory. It is clear what the tool does, but it does not distinguish itself from sibling tools such as memory_commands_tool or memory_audit_tool.

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?

No when-to-use guidance is provided, and no alternatives are named. The usage is only implied by the tool name and the phrase "for a memory," leaving the agent to infer when this should be used instead of related memory tools.

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