Skip to main content
Glama

Get rule detail

get_rule
Read-only

Fetch one audit rule by id (e.g. "core/meta-title"), including what it checks, how to fix it (recommendation), its severity and score weight, a docs link, and whether it is a cloud (credit-billed) rule (requires_cloud) and whether it needs the render step (requires_render). Rule ids appear in report topIssues and issue rule_id fields. Severity has three scales: a rule's severity (error, warning or info: get_rule, ruleSeverity on report rows, and rule_severity on issues; the severity in the llm and markdown report formats is this one too), a single check result's severity (error when the check failed, warning when it warned: severity on get_report summary rows, so a rule declared warning can still show an error row), and an issue's severity (list_issues and get_issue severity): for an issue the audit created it is high, medium or low, mapped from the rule's severity as error to high, warning to medium, info to low; for an issue a triage run planned it is the plan's priority (critical, high, medium or low), so critical can appear and a warning rule can be high. Read rule_severity for the rule's own (the highest across the issue's rules, null when the rule is no longer in the catalogue).

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

Input Schema

NameRequiredDescriptionDefault
rule_idYesRule id like "crawl/canonical-chain" (category/slug).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +{}
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint, so safety is covered; the description adds substantive behavior beyond that — that rules can be cloud (credit-billed) via requires_cloud and that some need a render step via requires_render. It does not say whether a missing rule errors or returns null, which is the main remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is dense, well front-loaded, and earns its place. The remainder is a long severity-taxonomy digression covering report rows, issue severities, and triage priorities — useful disambiguation in principle, but bloated for a fetch-one tool and largely about other tools' fields.

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?

No output schema exists, so the description must convey return content, and it does so thoroughly, including the three severity scales and the null-when-delisted rule_severity case. It is close to complete for a single-parameter read tool; only error/not-found behavior is unaddressed.

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% and the single parameter already documents the 'category/slug' shape, so baseline would be 3. The description adds real meaning by tying the id to the report and issue fields it originates from, helping the agent source a valid value.

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 ('Fetch one audit rule by id'), gives a concrete id example ('core/meta-title'), and enumerates what comes back (checks, recommendation, severity, score weight, docs link, requires_cloud, requires_render). 'one ... by id' implicitly separates it from list_rules without opening either schema.

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?

Tells the agent where rule ids come from ('report topIssues and issue rule_id fields'), which is actionable context for choosing this tool after reading a report. It stops short of naming list_rules as the browse alternative or stating what happens with an unknown/stale 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.