Skip to main content
Glama

guard_note

Record agent-authored decisions, corrections, risks, and notes as journal entries that persist across sessions and compactions; use guard_verify instead for command-pass claims.

Instructions

Append one agent-authored journal entry.

Use it when a decision, correction, risk, or note should survive the session and the next compaction. Do not use it for a claim that a command passed; that belongs in guard_verify. type is a required string: decision, correction, risk, or note. text is a required string. tags is an optional list of strings, default None. The tag agent is always stored, so the entry stays unverified: it does not enter the trusted decisions or corrections the brief treats as owner input. Tag lesson to make a precedent the brief can re-inject. check is optional and applies to a correction only: it names the command that proves the rule still holds, which the brief runs (bounded, timed out) and labels. It returns logged <type> #N, the stored tags, any normalization notes, and a Nudge. Side effects: appends one JSON line to .agent-guard/journal.jsonl and creates the store if needed. It does not change the contract or the evidence ledger.

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": {
      "type": "<type>",
      "text": "<text>"
    },
    "name": "guard_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional tags. List of strings, default None (no caller tags). Cleaned, de-duplicated, and capped at 8 tags of 40 characters. The tag "agent" is always appended and cannot be crowded out. Add "lesson" to make a precedent. On a correction, "satisfied" or "dissatisfied" records the owner's reaction; a one-edit typo of those two words is normalized.
textYesThe entry body. Required string. Blank or whitespace-only text is rejected. Stored as one line, capped at 500 characters.
typeYesJournal type. Required string: decision, correction, risk, or note. Any other value returns an error line and writes nothing.
checkNoCorrection only, optional. One-line shell command that proves the correction still holds; the brief runs it at session start and reports HONORED / VIOLATED / TIMEOUT. Rejected on any type other than correction. Capped at 200 characters.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.3.1
    • addedInput schema / properties / check
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Correction only, optional. One-line shell command that proves the correction still holds; the brief runs it at session start and reports HONORED / VIOLATED / TIMEOUT. Rejected on any type other than correction. Capped at 200 characters."
      +}
    • addedInput schema / properties / tags / description
      Added value: +"Optional tags. List of strings, default None (no caller tags). Cleaned, de-duplicated, and capped at 8 tags of 40 characters. The tag \"agent\" is always appended and cannot be crowded out. Add \"lesson\" to make a precedent. On a correction, \"satisfied\" or \"dissatisfied\" records the owner's reaction; a one-edit typo of those two words is normalized."
    • addedInput schema / properties / text / description
      Added value: +"The entry body. Required string. Blank or whitespace-only text is rejected. Stored as one line, capped at 500 characters."
    • addedInput schema / properties / type / description
      Added value: +"Journal type. Required string: decision, correction, risk, or note. Any other value returns an error line and writes nothing."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses the return shape ('logged <type> #N', tags, normalization notes, Nudge), the concrete side effect (appends one JSON line to .agent-guard/journal.jsonl, creating the store if needed), and the boundary that it does not alter the contract or evidence ledger. It also explains the trust consequence of the implicit 'agent' tag. Minor gap: it does not say whether appends are atomic under concurrent writers.

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?

Front-loaded with the action and the routing rule, then parameters, then returns, then side effects — a logical order with no wasted sentences. It runs long and repeats a few schema details, which keeps it just short of a 5.

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 write tool with annotations and an output schema, this covers trigger, exclusion, per-parameter semantics, return shape, and filesystem side effects. Nothing an agent needs in order to call it correctly and interpret the result is missing.

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 framing the schema does not: the 'agent' tag is always stored specifically so the entry stays unverified and outside owner-trusted input, and 'lesson' makes the brief re-inject a precedent. These are consequences, not restatements. Some redundancy remains (type enum, check's HONORED/VIOLATED/TIMEOUT labels are already in the schema).

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?

Opens with a specific verb+resource ('Append one agent-authored journal entry') and immediately distinguishes itself from guard_verify for the one case that would otherwise be confused with it. An agent knows exactly what this writes and what it does not.

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 positive trigger ('when a decision, correction, risk, or note should survive the session and the next compaction') and an explicit exclusion naming the alternative tool ('Do not use it for a claim that a command passed; that belongs in guard_verify'). No inference is required.

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