Skip to main content
Glama

Offer swap

offer_swap

Propose a swap to a FRIEND in the trade circle, from match_circle's rows with that friend: send picks rows of you_send and get rows of you_get, each by card name and count (a card with several rows: narrow with printing and lang, as the row shows them). Copies go as the match deals them: free ones first, then a deck's copy, never a proxy. Nothing outside the match can be added. add_to names, for a card the user GETS, the deck of theirs that claims it once the swap is approved: only on the user's say-so, never by default. Nothing moves until the friend approves; it expires after 14 days, and the user can withdraw it (answer_swap). Before calling, show the user both sides, their values, and every deck of theirs a copy they send breaks (breaks_decks in match_circle), and ask. The answer is the swap as my_swaps shows 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": {
      "with": "<with>"
    },
    "name": "offer_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
getNoRows of you_get to receive, with counts
sendNoRows of you_send to send, with counts
withYesThe friend's handle, with its @
add_toNoCards the user gets that a deck of theirs claims on the yes, as the user ticked them

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?

Beyond the annotations it discloses high-value behavior: nothing moves until the friend approves, the offer expires after 14 days, nothing outside the match can be added, copies are allocated free-first then deck copy and never proxy, and add_to is applied only on the user's say-so, never by default. This fully matches the non-readOnly, non-destructive, non-idempotent profile.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the sentences are information-dense, but several clauses are tangled (parenthetical printing/lang note, the 'Copies go as the match deals them' aside, 'The answer is the swap as my_swaps shows it'), which makes it slower to parse than its length warrants. Nothing is purely filler, but the structure could be reordered into call-prep and side-effect sections.

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 4-parameter mutation with no output schema, the description covers return shape ('the swap as my_swaps shows it'), the approval/expiry/withdraw lifecycle, and the safety preconditions. An agent has everything needed to invoke it correctly and to prepare the user.

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 already 100%, so the baseline is 3, but the description adds meaning the schema cannot: send/get map to you_send/you_get rows, printing and lang narrow ambiguous duplicate rows, and add_to is a deferred deck claim that only fires on approval and only when the user opts in. The remaining gap is that row-disambiguation mechanics are only gestured at ('as the row shows them').

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?

'Propose a swap to a FRIEND in the trade circle' gives a specific verb, resource and scope, and immediately anchors the inputs to match_circle's rows ('send picks rows of you_send and get rows of you_get'). It is clearly distinguishable from answer_swap, which it names as the withdraw path.

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?

It establishes the prerequisite workflow (derive rows from match_circle with that friend), the pre-call obligation to show the user both sides, values and broken decks before asking, and routes withdrawal to answer_swap and the result to my_swaps. What's missing is an explicit statement of when not to use it, e.g. when no match exists.

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