Skip to main content
Glama

get_rule

Read-onlyIdempotent

Retrieve a cited rule, spell, section, or page by ID, exact title, or page number to read normalized source text—not an AI summary—and page through long entries.

Instructions

Read a cited rule, spell, section or page. Accept an ID from search, an exact title, or page:N. Text is normalized PDF extraction, not an AI summary. Follow next_offset to retrieve long entries completely.

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
offsetNo
rule_idYes
max_charsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description rightly spends its words elsewhere: it discloses that results are normalized PDF extraction rather than a generated summary (a material fidelity caveat), and it documents truncation behavior by pointing at next_offset for long entries. Those are exactly the traits an agent cannot infer from annotations.

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?

Three short sentences, each earning its place: capability first, identifier forms second, output-fidelity caveat and pagination last. No filler or restatement of the tool name.

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?

Return values needn't be explained given the output schema, and annotations cover the safety profile, so the remaining burden is truncation and identifier semantics — both addressed. The only shortfall is that max_chars and the behavior on a failed lookup go unmentioned, which matters for a tool whose output can be silently clipped.

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?

With 0% schema description coverage the description must carry parameter meaning: it does well for rule_id, spelling out three accepted forms including the page:N syntax that would otherwise be unguessable, and it implies offset's role via "follow next_offset". However, max_chars — the parameter that directly controls the truncation the description warns about — is never mentioned, leaving a real gap.

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?

"Read a cited rule, spell, section or page" gives a specific verb plus the exact resource types, and the accepted identifier forms (ID from search, exact title, page:N) make clear this is a retrieval-by-reference tool rather than the search sibling. An agent can tell it apart from search_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?

"Accept an ID from search" establishes the intended workflow feeding this tool from search, and the alternative identifier forms cover the obvious caller situations. It stops short of an explicit exclusion (e.g., "use search_rules when you don't already have an ID or title"), so selection guidance is clear but not fully enumerated.

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

Deploy Server

Other Tools