Skip to main content
Glama

promote_failure_to_rule

Turn a verified failure into a reusable rule after the user approves and confirms, preventing similar issues from recurring.

Instructions

Turn a VERIFIED failure into a rule. Only call with confirm=true after the user has approved it.

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": {
      "failure_id": "<failure_id>",
      "statement": "<statement>",
      "rationale": "<rationale>"
    },
    "name": "promote_failure_to_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
severityNoshould
rationaleYes
statementYes
failure_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the key gating behavior: a confirm flag plus prior user approval. It does not say what happens if confirm is false or omitted (error, no-op, or dry run), whether the resulting rule is persistent or reversible, or what the 'verified' precondition actually requires.

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?

Two short sentences, front-loaded with the action and followed by the safety gate. No wasted wording or redundant restatement of the name.

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?

For a mutation tool with no annotations, no output schema, and zero parameter documentation, the definition is thin. It covers the confirmation gate but leaves the payload parameters and the post-call effect unexplained, which an agent needs in order to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, and the description only adds meaning for confirm. failure_id, statement, rationale, and especially severity (default 'should', likely an enum-like scale) are left entirely undefined in both schema and prose.

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 resource: turn a VERIFIED failure into a rule. The emphasis on VERIFIED implicitly distinguishes it from the sibling record_failure, which presumably logs unverified failures. It is clear but does not explicitly name the alternative or define what makes a failure 'verified'.

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 states an explicit precondition: call only with confirm=true and only after the user has approved. That is a real when-to-use gate rather than vague guidance. It stops short of naming when not to use it or which sibling to use instead for unverified or rejected failures.

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