Skip to main content
Glama

guard_intent

Read-onlyIdempotent

Retrieves owner wants, needs, preferences, and corrections from the journal so agents can answer what the owner wants without keyword guessing. Returns tagged rows with provenance and counts.

Instructions

Owner wants, needs, preferences, and corrections from the journal.

Use it to answer "what does the owner want" without guessing keywords: every row whose text expresses an owner want, need, or preference, or an explicit "you are wrong" correction, plus rows already carrying the tags owner-want, owner-need, owner-preference, or owner-correction. Rows written before those tags existed are classified from their text, so nothing is lost. Each line is <kind> · <ts> · <text> [<provenance>], where provenance owner is a trusted row and agent is model-recorded and still unverified. limit is an int, default 5, clamped to 0–20. It returns PC intent · N of M owner statements, per-kind counts, and a Nudge. Side effects: none. It does not create .agent-guard/, does not append, and does not promote agent rows to trusted memory.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many owner statements to return. Integer. Default 5. Clamped to 0–20; 0 returns the header, counts and nudge only.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.1

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses the trust model: provenance `owner` is trusted, `agent` is model-recorded and unverified, and agent rows are not promoted to trusted memory. It also declares zero side effects, no directory creation, no appends, and the `limit` clamp behavior — exactly the behavioral context an agent needs before relying on the output.

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?

It front-loads the resource definition, then selection rule, then output format, then constraints — a sensible order. The closing "Side effects: none" sentence partially repeats the negation clause that follows it, a small redundancy in an otherwise dense and purposeful block.

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 one-parameter, read-only retrieval tool, everything needed to call and interpret it is present: what qualifies as a row, the line format with provenance markers, the header and per-kind counts, and the nudge. Output schema exists, and the description still gives enough of the return shape to set expectations without duplicating it wholesale.

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% and the single `limit` parameter already documents type, default 5, the 0–20 clamp, and the zero-value behavior. The description restates the same facts without adding syntax or semantics beyond the schema, so the baseline of 3 applies.

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 names the exact resource — owner wants, needs, preferences, and corrections from the journal — and specifies the selection rule (text-expressed intent plus rows carrying `owner-want`/`owner-need`/`owner-preference`/`owner-correction`). An agent knows precisely what comes back. It stops short of naming a sibling such as `guard_journal` or `guard_recall`, so the differentiation from the raw-journal tool is only implied.

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?

"Use it to answer 'what does the owner want' without guessing keywords" gives a concrete triggering question and the condition that favors this tool over free-text searching. It also states what the tool will not do (create `.agent-guard/`, append, promote agent rows), which implicitly fences off the write-side siblings. No sibling is named as an alternative, so the routing is contextual rather than explicit.

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