Skip to main content
Glama

propose_rule

Propose a durable standing rule or cross-project lesson from the user's verbatim statement; it remains inactive until the user approves it in the terminal.

Instructions

Propose a standing rule (or a cross-project lesson with trigger strings) the user stated or approved, quoting the user verbatim. It stays inactive until the user approves it in a terminal (pm1-rule approve). Use only for durable decisions ("from now on use X for Y"), not for one-off requests.

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": {
      "text": "<text>",
      "episode_id": "<episode_id>",
      "quote": "<quote>"
    },
    "name": "propose_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNorule
textYesthe rule, one sentence
quoteYesverbatim words from that turn (or from the approved proposal)
projectsNodefault: the project of that turn; [] for every project
triggersNolesson only: exact strings that make it speak up (e.g. a model or package name)
episode_idYesthe user's turn (search_sessions / open_record id): the one that says it, or the one that approved your proposal

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden, and it does disclose the key lifecycle behavior: the call creates an inactive proposal that requires out-of-band terminal approval (pm1-rule approve). It does not say what the call returns, whether a non-verbatim quote is rejected, or what happens when a proposal is declined, leaving the immediate response shape and failure modes undisclosed.

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?

Three sentences, each carrying distinct load: the action, the approval lifecycle, and the durability gate. The inclusion and exclusion are front-loaded with the governing phrase ('from now on use X for Y'), so the agent learns the selection rule before it reaches the end.

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 six-parameter, three-required mutation with no annotations and no output schema, the description supplies the two things structured data cannot: the approval lifecycle and the durability criterion. It never states the return value or what the agent should do after proposing (for example, tell the user to run the approve command), which is the main remaining gap.

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 83%, so the schema already documents most parameters, and the baseline holds. The description adds useful nuance beyond the schema: 'verbatim' constrains how quote must be populated, 'cross-project lesson with trigger strings' explains when triggers is relevant, and 'durable' constrains the content of text. It does not explain projects defaults or the episode_id reference conventions, so it adds meaning without fully compensating for the remaining gap.

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 gives a specific verb and object ('Propose a standing rule') and identifies the two variants it covers (standing rule, or cross-project lesson with trigger strings). It also makes the source material explicit ('the user stated or approved, quoting the user verbatim'). It does not name or distinguish itself from adjacent siblings such as save_note or rules, so an agent must infer which one holds a durable rule versus a note.

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

Usage Guidelines5/5

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

It gives an explicit inclusion test with a concrete exemplar ("from now on use X for Y") and an explicit exclusion ('not for one-off requests'), plus a precondition the agent would otherwise miss: the proposal stays inactive until the user approves it in a terminal. That defines when the tool applies and when it does not, and warns that calling it alone does not change behavior.

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