Skip to main content
Glama
LamPyrid
by RadCod3

get_rule

Fetch a rule by ID with all triggers and actions to inspect its full configuration.

Instructions

Retrieve a single rule by ID with all its triggers and actions.

Returns the complete rule configuration including triggers (conditions) and actions (what to do when the rule matches).

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": {
      "req": "<req>"
    },
    "name": "get_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesRequest model for getting a single rule by ID.

Output Schema

NameRequiredDescriptionDefault
idYesUnique identifier for the rule
titleYesDisplay name of the rule
activeNoWhether the rule is active
strictNoIf True, ALL triggers must match (AND). If False, any trigger can match (OR).
actionsNoList of actions for this rule
triggerNoSingle trigger type
triggersNoList of triggers for this rule
descriptionNoOptional description of the rule
stop_processingNoWhether to stop processing other rules after this one

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. 'Retrieve' signals a read-only operation and the second sentence discloses what comes back (triggers and actions), but nothing is said about failure behavior for unknown IDs, permissions, or side effects.

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?

Two short sentences, front-loaded with the action and scope. The second sentence largely restates the first (triggers/actions appear twice in substance), a minor redundancy.

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 simple single-record getter with full schema coverage and an output schema that documents the return shape, the description is nearly complete. Only error behavior for missing IDs is unaddressed.

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% and the single nested 'id' parameter is already documented as the unique rule identifier. The description only restates 'by ID' and adds no format, source, or lookup guidance beyond the schema, so the baseline 3 applies.

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 states a specific verb and resource ('Retrieve a single rule by ID') and clarifies the scope (all triggers and actions), which implicitly separates it from the list-style search_rules. It stops short of naming a sibling to contrast with, so it lands just below the top of the scale.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is for fetching one known rule when the full configuration is needed, versus listing rules. There is no explicit when-to-use, when-not-to-use, or named alternative.

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