Skip to main content
Glama

DeckCosmos

Comprehensive Rules lookup

lookup_rules
Read-onlyIdempotent

Look up the official Comprehensive Rules: by number ("702.19" trample, with its subrules and examples; "702" lists the keyword abilities) or by term ("deathtouch", "dies", "state-based actions"), including the glossary.

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_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNoA rule number, e.g. "702.19", "702.19b", "702", "7".
queryNoA term or keyword, e.g. "trample", "commander tax", "dies".

Output Schema

NameRequiredDescriptionDefault
ruleNoWith "rule": the rule number.
textNoWith "rule": its text.
queryNoWith "query": the term.
sourceYesWhere the rules come from.
resultsNoWith "query": matching glossary entries and rules.
childrenNoWith a section number (e.g. "702"): the rules in it.
examplesNoWith "rule": its examples.
subrulesNoWith "rule": its subrules.
effectiveYesDate of the Comprehensive Rules used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered. The description adds useful behavior about result granularity ('with its subrules and examples', 'including the glossary'). What it omits is what happens when both optional parameters are empty or both are supplied together — a real ambiguity given 0 required parameters.

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?

One front-loaded sentence with zero filler; the mode split arrives before the illustrative parenthetical. Nested parentheses make the second half slightly dense to parse, but nothing is redundant.

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?

With an output schema present and 100% parameter coverage, the description needn't explain return values or formats. It covers both input modes and result depth; only edge-case behavior for zero/dual arguments is left unspecified, which is a minor gap for a two-parameter read-only lookup.

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%, so the baseline is 3, but the description earns extra credit by mapping input granularity to output scope: a full number yields subrules and examples, a truncated number lists the keyword abilities, and a term hits the glossary. That meaning is not present in the schema, which only shows format examples.

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?

The description names a specific verb and resource ('Look up the official Comprehensive Rules') and then enumerates both supported access modes with concrete examples ('702.19' trample with subrules and examples; '702' lists the keyword abilities; term lookups including the glossary). No sibling tool in the catalog touches rules text, and the wording makes the resource unmistakable.

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?

Usage is made clear through worked examples of both query modes, and the 'by number ... or by term' framing tells the agent which input to reach for. It stops short of explicit when-not guidance or naming alternatives, but the sibling set (deck building, card search, odds) is far enough away that no exclusion is really needed.

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