Skip to main content
Glama
j4th
by j4th

combat_calculator

Read-onlyIdempotent

Resolve Magic: The Gathering combat step-by-step, including keyword interactions and state-based actions.

Instructions

Calculate combat step-by-step with keyword interactions.

Resolves declare attackers → declare blockers → damage steps → state-based actions. Looks up card keywords from bulk data if card names are provided.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
attackersYesAttacking creature names or descriptions
blockersYesBlocking creature names or descriptions
keywordsNoAdditional keyword abilities to consider (e.g. 'deathtouch', 'trample')
response_formatNoOutput verbosity: 'detailed' (default) or 'concise'detailed
Behavior4/5

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

Annotations already indicate read-only, idempotent behavior. The description adds the process steps and external data lookup, which is helpful. However, it does not mention the open-world hint or detail output behavior.

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 purpose, followed by process details. No unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers basic purpose and process, but lacks details on output format or edge cases. Given no output schema, some guidance on return structure would improve completeness.

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%, baseline 3. The description adds value by explaining that card names trigger keyword lookups, which clarifies the behavior for 'attackers' and 'blockers' parameters.

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 clearly states the tool calculates combat step-by-step with keyword interactions, specifying the phases resolved. There are no sibling tools with similar functions, so it is well-differentiated.

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

Usage Guidelines3/5

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

The description implies usage for combat resolution but provides no guidance on when to use this tool versus alternatives like 'rules_interaction' or 'keyword_explain', nor does it specify when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/j4th/mtg-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server