Skip to main content
Glama

guard_status

Idempotent

Shows guardrail session state: diff stats, loop streaks, evidence, contract size, and last verify so you can check status at turn start, after compaction, or before declaring work done.

Instructions

Session dashboard: diff, loops, evidence, contract size, and the last verify.

Use it at the start of a turn, after a compaction, or before claiming the work is done, when you need the current guardrail state in one block. It takes no parameters. It returns text beginning with PC status: the session name (PC_SESSION_ID, or default), git head, diff stats and verdict, up to three loop streaks, the evidence count and last run, the merged constraint count, discovered conventions files, and a final Nudge line. Side effects: if .agent-guard/ is missing it is created, config.json is seeded with the frozen defaults when that file is absent, and the first contract read writes the twelve seed constraints to contract.json. It also runs git for the diff. It does not append the journal or the evidence ledger.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With readOnlyHint=false in the annotations, a 'status' tool could easily look contradictory; the description pre-empts that by disclosing exactly which writes occur: creating `.agent-guard/`, seeding `config.json` from frozen defaults, and writing twelve seed constraints to `contract.json` on first contract read, plus shelling out to git. It also states the negative case ('does not append the journal or the evidence ledger') and the return prefix and sections.

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?

Dense but front-loaded: what it is, when to call it, then behavior and side effects. The return-value enumeration is long but each listed item maps to a distinct output section; the hyphenated multi-line phrasing is slightly harder to scan than a tighter sentence would be.

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?

Covers purpose, invocation timing, no-parameter contract, output prefix and contents, filesystem side effects, and explicit non-actions. Even though an output schema exists, the rendered sections and the `PC status` prefix are part of the calling contract, so including them is justified.

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?

Zero parameters, so the baseline applies; the description reinforces this with 'It takes no parameters,' removing any doubt about passing session or scope arguments.

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 concrete framing ('Session dashboard') and enumerates exactly what is aggregated: diff, loops, evidence, contract size, last verify. This clearly separates it from narrower siblings like guard_diff_audit, guard_evidence, and guard_contract, which each report one slice.

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 concrete trigger points: start of a turn, after compaction, and before claiming work is done. The phrase 'in one block' implies it is a substitute for issuing several narrower status calls, though no sibling is named as an explicit alternative and no when-not condition is stated.

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