Skip to main content
Glama

guard_journal

Read-onlyIdempotent

Read recent journal entries after a compaction or capped brief to recover older decisions, corrections, risks, or notes that the brief left out.

Instructions

Read recent journal entries back after a compaction or a capped brief.

Use it when the brief hid older decisions, corrections, risks, or the agent's own notes and you need the stored line, not a search. For a keyword, tag, or evidence-id search, use guard_recall instead. limit is an int, default 5, clamped to 0–20. type is an optional string, default None; when set it must be decision, correction, risk, or note. It returns PC journal · last N of TOTAL (or PC journal <type> when filtered), one line per entry (timestamp · type · text [tags]), and a Nudge. Side effects: none. It does not create .agent-guard/, does not append, and does not promote an agent tag to trusted.

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_journal"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOptional type filter. String or omitted. One of decision, correction, risk, note. Default None, which returns every type. Any other string returns an error line.
limitNoHow many newest journal entries to return. Integer. Default 5. Clamped to 0–20; 0 returns the header and nudge only.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.3.1
    • addedInput schema / properties / limit / description
      Added value: +"How many newest journal entries to return. Integer. Default 5. Clamped to 0–20; 0 returns the header and nudge only."
    • addedInput schema / properties / type / description
      Added value: +"Optional type filter. String or omitted. One of decision, correction, risk, note. Default None, which returns every type. Any other string returns an error line."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses the exact return shape, that there are no side effects, that it does not create .agent-guard/, does not append, and does not promote an agent tag to trusted. Those negative guarantees are exactly the behavior an agent cannot infer from annotations.

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 trigger condition is front-loaded and the sibling routing is compact. It loses a little to duplication of limit/type defaults and ranges already stated in the schema, but nothing is padding at the sentence level.

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?

For a simple two-optional-parameter read tool with annotations and an output schema, the description covers routing, scope, and side effects. The return-format sentence is partly redundant with the output schema, but completeness is not in doubt.

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 both parameters are already documented with defaults and allowed values. The description repeats the default, the 0–20 clamp, and the four valid type strings, adding no meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (read journal entries) plus the triggering situation (after a compaction or capped brief), and explicitly separates itself from guard_recall. An agent can distinguish it from the search sibling without opening either schema.

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?

Gives an explicit when-to-use condition (the brief hid older decisions, corrections, risks, or the agent's own notes and you need the stored line, not a search) and names the alternative, guard_recall, with the condition that selects it (keyword, tag, or evidence-id search).

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