Skip to main content
Glama

Get Rule

get_rule
Read-only

Get a single automation rule by id. Returns the full rule definition including trigger, conditions, actions, execution mode, priority, version, and conflict acknowledgments. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
ruleIdYesRule id (GUID).

Output Schema

NameRequiredDescriptionDefault
okNo
ruleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so 'Read-only' in the description adds nothing. The useful addition is the scope of the returned definition, which tells the agent how much data a single call yields, but nothing is said about behavior for unknown or deleted rule ids.

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 sentences, front-loaded with the verb and resource, followed by the return scope. The trailing 'Read-only.' duplicates the readOnlyHint annotation and is the only wording that fails to earn its place.

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 single-parameter, read-only lookup with a full output schema and complete annotations, the description covers purpose and return scope sufficiently. Only the error behavior for a missing or invalid rule id remains unaddressed.

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

Parameters5/5

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

There is only one parameter, ruleId, and the schema already documents it at 100% coverage as a GUID rule id. The description's 'by id' phrasing reinforces the same meaning without contradicting the schema, which is the correct baseline for a one-parameter tool.

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?

States a specific verb and resource ('Get a single automation rule by id') and enumerates what the returned definition contains (trigger, conditions, actions, execution mode, priority, version, conflict acknowledgments). This clearly separates it from aggregating siblings like get_rule_catalog or list_rule_runs, though no sibling is named explicitly.

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?

There is no explicit when-to-use guidance, no prerequisites, and no routing to alternatives such as get_rule_catalog for discovery or check_rule_conflicts for validation. Usage is only inferable from the word 'single' and the required id.

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