Skip to main content
Glama

End rule

purch_end_rule
Destructive

Stop a standing rule. Its suggestions go away; rows already reviewed keep what the person confirmed. End a rule when the person says it no longer holds, or when it was recorded wrong (then add the right one). Ending never changes a reviewed row. Effects: rule ended; its suggestions removed from unreviewed rows.

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": {
      "rule_id": "<rule_id>",
      "reason": "<reason>"
    },
    "name": "purch_end_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy it ends.
rule_idYesThe rule, e.g. RL-0001.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes beyond the destructiveHint annotation by specifying exactly what is destroyed (suggestions on unreviewed rows) and what is preserved (rows already reviewed keep confirmed values). It also explicitly states 'Ending never changes a reviewed row,' giving the agent confidence about the blast radius of a destructive operation.

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-loads the core action and effects, and every major point is useful. There is some redundancy: 'Its suggestions go away' is repeated in the Effects line, and 'rows already reviewed keep what the person confirmed' is repeated as 'Ending never changes a reviewed row.'

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

Completeness5/5

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

For a two-parameter destructive mutation with no output schema, the description covers purpose, trigger conditions, side effects, and preservation guarantees. Nothing an agent needs in order to call it safely and correctly is missing.

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 100%, so both rule_id and reason are fully documented in the schema. The description does not add format or semantic detail beyond what is already provided, so the baseline 3 is appropriate.

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?

States a specific verb and resource ('Stop a standing rule') and immediately clarifies what that means in practice. An agent can distinguish it from purch_add_rule and purch_get_rule without opening the schema.

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?

Gives explicit when-to-use conditions: the person says the rule no longer holds, or it was recorded wrong. It also names the corrective alternative ('then add the right one'), which routes the agent to purch_add_rule in the second case.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.