Skip to main content
Glama

Update rule

update_rule
Idempotent

Update a rule by id. Only the fields you pass are changed.

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": {
      "id": "<id>"
    },
    "name": "update_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesrule id
nameNoname
activeNoactive
rule_typeNorule_type
action_textNoaction_text
condition_textNocondition_text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description's one behavioral contribution is the partial-update contract ("Only the fields you pass are changed"), which genuinely clarifies that omitted fields are preserved rather than cleared. It says nothing about permissions, validation errors, or whether other users' rules can be modified.

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, zero filler, with the identity/selector stated first and the modifier semantic second. Every sentence earns its place.

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

Completeness3/5

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

For a simple 6-parameter mutation with full annotation coverage and no output schema, the core contract (select by id, patch semantics) is present. What's missing is any indication of valid values for rule_type, what condition_text/action_text formats are accepted, or what happens on an unknown id. Given the tautological schema descriptions, the definition leaves real gaps.

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

Parameters4/5

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

Schema coverage is 100%, but the schema descriptions are tautological (e.g. "rule_type" for rule_type), so the structured fields add little meaning. The description compensates with the partial-update semantic, which reinterprets all five optional fields as "set only if provided" and implies that id is the only requirement. Field-level meaning for rule_type, action_text, and condition_text remains unaddressed.

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?

"Update a rule by id" states a specific verb (update) and resource (rule) plus the key selector, so an agent knows exactly what it does. It offers no differentiation from siblings such as update_tax_rule or create_rule, so the agent must infer from the rule resource alone that this targets generic rules.

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?

The description gives no when-to-use, when-not-to-use, or alternative guidance at all. With siblings like update_tax_rule, create_rule, and get_rule present, an agent gets no help choosing between update and create, or between rule and tax_rule.

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.

Resources