Skip to main content
Glama

brain_governance

Run a read-only lifecycle scan to flag superseded, duplicate, or uncited notes and broken supersedes links; retire explicitly with brain_forget when answers look outdated.

Instructions

Read-only lifecycle scan of the configured sources. Reports notes whose frontmatter marks them superseded but which are still indexed, duplicate active notes sharing one title, supersedes: links pointing at missing notes, and old notes that were never cited. Nothing is changed; retire explicitly with brain_forget. Run this when answers look plausible but outdated.

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": "brain_governance"
  }
}

Input Schema

NameRequiredDescriptionDefault
stale_daysNoage threshold (default [governance] stale_days = 180)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.10.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it declares the operation read-only and non-mutating ("Nothing is changed"), lists the specific conditions it inspects, and warns that the findings require a separate explicit action. It omits any statement about output shape or cost on large corpora, which keeps it short of a 5.

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 scan scope is front-loaded before the enumerated findings, the remediation note follows, and the usage trigger comes last. Every sentence contributes information; there is no filler or restatement of the tool name.

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 no-annotation, no-output-schema, single-optional-parameter read tool, this covers scope, the four report categories, safety (no mutation), and the follow-up action. The only gap is how the report is returned, which matters somewhat given there is no output schema.

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 description coverage is 100% for the single optional `stale_days` parameter, including its default and config source, so the baseline of 3 applies. The description only indirectly gestures at it via "old notes that were never cited" and adds no format or tuning detail beyond 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?

The description gives a specific verb+resource ("read-only lifecycle scan of the configured sources") and then enumerates the four exact findings it surfaces: superseded-but-indexed notes, duplicate active titles, dangling `supersedes:` links, and never-cited old notes. An agent can tell this apart from mutation siblings like brain_forget from the text alone.

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?

It gives a concrete trigger ("Run this when answers look plausible but outdated") and routes remediation to a named alternative ("retire explicitly with brain_forget"), which cleanly separates the diagnostic from the fix. It does not address when to prefer this over other diagnostic siblings such as brain_memory_health, brain_quality, or brain_stats, so the guidance is clear but not exhaustive.

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