Skip to main content
Glama

Get rule

get_rule
Read-onlyIdempotent

Texto exacto de una regla y sus subapartados directos ('17.1' devuelve 17.1 y 17.1a–17.1e). Úsala tras search_rules para leer el apartado preciso, o cuando el jugador cite un número.

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

Input Schema

NameRequiredDescriptionDefault
rule_numberYesNúmero exacto: '17', '17.1' o '17.1d'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the disclosure that a request for a section returns that section plus its direct sub-sections – non-obvious behavior that affects how the agent should interpret the response. It does not say what happens for a non-existent or out-of-range rule number, which is the 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.

Conciseness5/5

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

Two sentences, front-loaded with the return-content definition before the usage instruction. The parenthetical example replaces what would otherwise take another sentence, so nothing is wasted.

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 lookup with no output schema, the description gives enough to call it correctly and to anticipate the shape of the returned text. The only omission is failure behavior for an invalid or non-existent rule number, a minor gap for a read-only, idempotent tool.

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 pattern already constrains the format, so baseline is 3. The description earns an extra point by explaining what the parameter value semantically pulls in (a numbered section plus its lettered children), which the schema's 'Número exacto' note does not convey.

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+resource ('Texto exacto de una regla') and defines scope precisely, including the hierarchical expansion behavior ('17.1' devuelve 17.1 y 17.1a–17.1e). The worked example makes it immediately distinguishable from the sibling search_rules, which searches rather than retrieves exact text.

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

Usage Guidelines5/5

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

Explicitly names the situation ('Úsala tras search_rules') and the alternative ('o cuando el jugador cite un número'), so the agent knows both when to call it and which sibling precedes it. No exclusions are stated, but the routing against search_rules is unambiguous.

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.