Skip to main content
Glama

record_transaction

Record a buy or sell transaction and automatically update inventory. Specify card, type, quantity, price, foil status, and date.

Instructions

Record a buy or sell transaction. By default this also adjusts inventory (BUY adds, SELL subtracts). This is a real write. Requires IWMM_API_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdYesInternal IWMM card UUID.
typeYes
quantityYes
pricePerUnitYesPer-unit price in USD.
isFoilYes
dateYesISO 8601 date (YYYY-MM-DD).
sourceNoWhere the transaction happened (e.g. 'TCGPlayer', 'LGS').
feesNo
notesNo
skipInventorySyncNoIf true, record the transaction without adjusting inventory. Default false - transactions normally update inventory.
Behavior4/5

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

No annotations provided; description carries full burden. It discloses that the tool is a real write, adjusts inventory by default, and requires an API key. This is good but could elaborate on side effects or permissions.

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 concise sentences plus a note about the API key. Every word adds value; no redundancy or filler.

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?

With 10 parameters and no output schema, description covers core purpose and inventory sync but omits response structure, error cases, or parameter dependencies. Could be more comprehensive.

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 description coverage is 50%; description adds meaning for type and skipInventorySync by linking them to inventory adjustment behavior. It clarifies default behavior for skipInventorySync, which goes beyond schema.

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?

Description clearly states 'Record a buy or sell transaction' with specific verb and resource. It distinguishes from siblings like delete_transaction and update_transaction by focusing on the recording action.

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?

Description mentions inventory adjustment behavior and that it's a real write requiring API key. It implicitly tells when to use (recording transactions) but does not explicitly state when not to use or alternative tools.

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/matthewdtowles/iwantmymtg-mcp'

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