Skip to main content
Glama
claude-continuity-mcp

claude-continuity-mcp

router_rules

Manage permanent project rules with provenance: add, list, remove, or promote checkpoint decisions, and optionally sync them to CLAUDE.md.

Instructions

Reglas PERMANENTES del proyecto ("nunca usar Redux"), distintas del estado de tarea de un checkpoint. Cada una con procedencia: quién, cuándo, y de qué checkpoint nació. Viven en .claude-continuity-rules.json en la raíz del proyecto — git-friendly, editable a mano, viaja con el repo.

No hace falta llamar para LEERLAS: se inyectan solas como project_rules en smart_read y resume de archivos del proyecto.

add: nueva regla (texto literal, sin síntesis). Dedup automático. promote: convierte una decisión de un checkpoint en regla permanente. sync_to_claudemd=true: además mantiene una sección delimitada en el CLAUDE.md del proyecto (alimenta la memoria nativa de Claude Code).

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": {
      "params": "<params>"
    },
    "name": "router_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only say it is a non-read-only, non-open-world, non-idempotent, non-destructive tool; the description adds real substance on top: the on-disk location, that the file is git-friendly and hand-editable, that add performs automatic deduplication, and that sync_to_claudemd maintains a delimited section in CLAUDE.md. The one gap is that the remove path (deleting a rule by id) is never described here even though annotations mark the tool non-destructive.

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 what the tool is and where its data lives, followed by the no-call-needed caveat and then per-action notes. Dense but every line carries information; the only waste is some repetition between the opening concept and the later action notes.

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?

With an output schema present, return values need no explanation, and the description covers storage, provenance, the read-bypass, and the CLAUDE.md side effect. What is missing is the remove/list lifecycle and any note on what happens when project_dir lacks an existing rules file — minor for a four-action admin tool with annotations.

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?

Reported schema coverage is 0% at the top level (a single `params` wrapper), so the description has to carry meaning, and it does explain the text field's literal/no-synthesis requirement, dedup on add, promote semantics, and the CLAUDE.md sync side effect. However, the list and remove actions plus rule_id and decision_index get no treatment in the description, leaving part of the input surface undocumented by the prose (the nested $defs descriptions do partially cover it).

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?

States the resource precisely: permanent project rules with provenance (who, when, originating checkpoint), explicitly contrasted with checkpoint task state. It also locates them in .claude-continuity-rules.json and notes they surface as `project_rules` via smart_read/resume, which separates it from the read-path siblings. It never names a sibling outright, and the two action verbs (add/promote) are buried mid-paragraph rather than stated up front, so it stops short of a 5.

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 an explicit when-NOT-to-call: reading rules requires no call because they are auto-injected into smart_read and resume. It also distinguishes add (new rule) from promote (convert a checkpoint decision), which is the key routing decision between the two write paths. It is silent on when to use the list and remove actions, which the reader must infer from the enum.

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