query_rules
Search and retrieve specific Magic: The Gathering rules and clarifications by query, section, or context lines for precise rule interactions.
Instructions
Search Magic: The Gathering comprehensive rules for specific interactions and rule clarifications
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context_lines | No | Lines of context around matches | |
exact_match | No | Require exact phrase matching | |
query | Yes | Search term or rules question | |
section | No | Specific rule section (e.g., "7" for Additional Rules) |
Input Schema (JSON Schema)
{
"properties": {
"context_lines": {
"default": 3,
"description": "Lines of context around matches",
"maximum": 10,
"minimum": 1,
"type": "number"
},
"exact_match": {
"default": false,
"description": "Require exact phrase matching",
"type": "boolean"
},
"query": {
"description": "Search term or rules question",
"type": "string"
},
"section": {
"description": "Specific rule section (e.g., \"7\" for Additional Rules)",
"pattern": "^[1-9]\\d*$",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}