Skip to main content
Glama
Deck Tutor MCP Server
by ellentham

Lookup Comprehensive Rule

lookup_comprehensive_rule

Retrieves specific Magic: The Gathering Comprehensive Rules by rule number or keyword, returning targeted sections or subrule outlines instead of the full document.

Instructions

Returns a small chunk of the Magic Comprehensive Rules by rule number (e.g. 724 for The Monarch) or keyword search. Use instead of fetching the full ~950KB document. Provide ruleNumber for an exact section or subrule, or keyword to find sections mentioning a term. Very large sections (701, 702) return a subrule outline; request a subrule such as "702.19" (Trample) for the full text.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup_comprehensive_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordNoSearch term to find sections (e.g. "monarch", "trample", "deathtouch")
ruleNumberNoRule section or subrule number, e.g. "724" for The Monarch, "701" for Keyword Actions, "702.19" for Trample

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the chunked return size, and critically that large sections (701, 702) return only a subrule outline rather than full text. Not covered: what happens when no section matches, whether both parameters can be combined, or any result-count limits on keyword search.

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 tightly packed sentences, front-loaded with what is returned, then the alternative it replaces, then the exact-parameter guidance. Minor duplication of the '724' and '702.19' examples from the schema, but they reinforce the outline caveat rather than waste space.

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?

A simple two-param read tool with no annotations or output schema needs purpose, parameter behavior, and edge cases; this covers all three, including the large-section truncation trap. The remaining gap is ambiguity about precedence if both ruleNumber and keyword are supplied, and no hint about result volume.

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%, so the format examples for both parameters are largely duplicated from the schema. The description does add one genuine semantic layer beyond the schema: that ruleNumber on a large section yields an outline rather than text, which changes how the parameter should be chosen.

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 ('Returns a small chunk of the Magic Comprehensive Rules') plus both retrieval modes (rule number, keyword search) and a concrete example. An agent can distinguish it from bulk retrieval or from the unrelated sibling extract_strategy_from_card without opening the schema.

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 routes usage: 'Use instead of fetching the full ~950KB document' covers the main alternative, and it explains the ruleNumber-vs-keyword choice. It also gives an escalation path for oversized sections ('request a subrule such as "702.19"'), which is exactly the conditional guidance an agent needs.

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