Skip to main content
Glama

Answer swap

answer_swap
DestructiveIdempotent

Answer a swap: approve or decline one proposed to the current user, or withdraw one they proposed. Approve moves cards in both collections at once: each copy given leaves its owner (the claims it no longer fits released, and named), each copy received lands in Unsorted as a trade. Without confirm: true, approve is a dry run: show the user what they give, receive and what would_release names, and ask before confirming. add_to ticks, for a card the user receives, the deck of theirs that claims it: only on the user's say-so. Refused, with nothing moved, when a copy is gone or changed since the proposal. Decline and withdraw move nothing.

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": {
      "swap_id": "<swap_id>",
      "answer": "<answer>"
    },
    "name": "answer_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
add_toNo
answerYes
confirmNoapprove only: true to move the cards; without it nothing moves
swap_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it explains exactly what approve moves: cards from both collections, released claims, received copies landing in Unsorted as a trade, and the dry-run behavior without confirm. It also documents refusal when a copy is gone or changed, which is important context for a destructive mutation.

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?

The description is front-loaded with purpose and then covers behavior, usage, and refusal conditions. It is dense and somewhat awkward in places, especially the parenthetical about released claims, but nearly every detail supports correct invocation.

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 destructive, open-world swap-answer tool with no output schema, the description is complete enough: it covers all answer modes, side effects, dry-run safety, add_to semantics, and refusal behavior. An agent has enough information to call it correctly and to avoid unintended moves.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has low description coverage, but the description compensates by explaining the answer values as actions, confirm as the dry-run gate for approve, and add_to as the mechanism for ticking a receiving deck. swap_id is not elaborated, but its role is obvious from the operation.

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 states a specific verb and resource: answer a swap by approving, declining, or withdrawing. It clearly distinguishes the three answer modes and the context of proposed-to-current-user versus proposed-by-current-user.

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?

It gives explicit operational guidance: approve without confirm is a dry run, the user should be shown what they give and receive, and add_to should only be used on the user's say-so. It also states refusal conditions and that decline and withdraw move nothing.

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