Skip to main content
Glama

nreki_guard

Manages persistent session memory for AI coding agents: pin standing rules, save plans and notes across compaction, attach symbol notes, report token use, and reset or audit the circuit breaker.

Instructions

Session memory. pin/unpin (index): standing rules. set_plan (text = plan file). memorize (text): notes that survive context compaction. engram (path, symbol, text): note on a symbol. status/report: token use. reset: clear the circuit breaker. audit.

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": {
      "action": "<action>"
    },
    "name": "nreki_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
textNo
indexNo
actionYes
symbolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.1.2

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden for nine actions, several of which mutate state (pin, set_plan, reset). It does disclose two useful traits — notes surviving context compaction, and reset clearing the circuit breaker — but says nothing about reversibility, permissions, persistence across sessions, or what reset actually discards.

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 fragment style is dense with no filler, and the memory-related actions are front-loaded ahead of status/audit. The compression is aggressive enough that some entries become cryptic, but there is essentially no wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A nine-action dispatcher with no annotations, no output schema, and no parameter documentation needs more than telegraphic fragments. Return behavior for status/report/audit is unspecified, and the absence of exclusions or side-effect warnings leaves the definition short of what calling it correctly requires.

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 0%, so the description must compensate, and it partially does by binding parameters to actions: index for pin/unpin, text for set_plan and memorize, path+symbol+text for engram. However 'set_plan (text = plan file)' is ambiguous about whether text is a path or the plan body, and status/report/reset/audit params go unexplained.

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

Purpose3/5

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

The opening 'Session memory' is a noun phrase rather than a verb+resource statement, and the tool bundles memory operations with token reporting, a circuit-breaker reset, and audit. The per-action fragments (pin/unpin, set_plan, memorize, engram) do name specific verbs and resources, but the overall scope stays fuzzy and nothing distinguishes this from nreki_code or nreki_navigate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'memorize (text): notes that survive context compaction' gives a faint cue about when to prefer it, but there is no explicit when-to-use, when-not, or alternative routing for any of the nine actions. An agent must guess whether to use set_plan vs memorize, or when reset is appropriate versus dangerous.

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

Deploy Server

Other Tools