Skip to main content
Glama

Replace card

replace_card
Destructive

Swap one card of a deck list for another, keeping its count and section: the row want_id is cut and replacement is added. Typical use: a missing card and a pick from find_substitutes. Copies the deck held of the old card are released (listed under released; sleeved ones return to "Unsorted"). Nothing is claimed for the new card — the returned row shows its coverage (claimable = you own a free copy); run claim_from_collection to claim it.

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": {
      "want_id": "<want_id>",
      "replacement": "<replacement>"
    },
    "name": "replace_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
want_idYesThe row to replace (from deck_status)
replacementYesThe card that takes its place

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description adds the exact damage: held copies of the old card are released, listed under `released`, and sleeved copies return to "Unsorted". It also pre-empts a likely misunderstanding by stating nothing is claimed for the new card and explaining what `claimable` means in the returned row.

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 sentences, each carrying distinct information: the mechanical effect first, the typical scenario second, and the side effects plus follow-up third. No filler, and the destructive consequence is surfaced early enough to influence the decision to call.

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

Completeness5/5

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

For a non-idempotent mutation with no output schema, the description covers what changes, what is lost, what the response contains (`released`, the returned row's coverage), and what action must follow. Nothing an agent needs in order to call this safely is missing.

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% and the nested replacement object is documented field by field in the schema, so the description only needs to add meaning. It restates that want_id is 'the row to replace' (the schema says the same) and adds no format or resolution detail beyond the schema for name, set_code, scryfall_id, or collector_number.

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 ('Swap one card of a deck list for another') plus the precise mechanical effect: the row at want_id is cut and `replacement` is added, with count and section preserved. This distinguishes it from sibling operations like find_substitutes (which only suggests) and claim_from_collection (which only claims).

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?

Gives a concrete usage scenario ('a missing card and a pick from find_substitutes') and an explicit follow-up ('run claim_from_collection to claim it'), which routes the agent correctly. It stops short of stating when not to use this tool or what to do if the replacement is unavailable, so it is clear context rather than full when/when-not guidance.

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