Skip to main content
Glama

ad_sell_item

Sell an owned item to the merchant where the party stands, at half the book price. Equipped or attuned items must be unequipped/unattuned first. Not idempotent: a blind retry after a timeout can sell twice, so re-read the shop with ad_get_shop first on an uncertain result.

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": {
      "tableId": "<tableId>",
      "characterId": "<characterId>",
      "itemName": "<itemName>"
    },
    "name": "ad_sell_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoQuantity (default 1).
tableIdYesThe table id.
itemNameYesThe item's true name (see ad_get_shop).
characterIdYesYour character's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the sale price rule, the equip/attune prerequisite, and the non-idempotency with its failure mode ("a blind retry after a timeout can sell twice"). It stops short of covering error behavior (unknown itemName, insufficient quantity) or what a successful call returns.

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, zero filler, and the highest-risk fact sequence (price → prerequisite → retry hazard) is front-loaded so a skimming agent still catches the non-idempotency.

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

Completeness4/5

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

No output schema exists, yet the description never says what comes back on success (gold received, item removed, partial-sale behavior for qty > 1). Everything else an agent needs — prerequisite, price, retry policy — is covered, so only the return contract 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%, so the schema already documents tableId, characterId, itemName and the qty default. The description adds no syntax, format, or edge-case meaning beyond pointing at ad_get_shop for item names, so the baseline 3 applies.

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?

Specific verb+resource ("Sell an owned item to the merchant") with scope ("where the party stands") and price rule ("half the book price"). It is clearly the inverse of the sibling ad_buy_item, so an agent can distinguish it without opening a schema.

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?

States a hard precondition ("Equipped or attuned items must be unequipped/unattuned first") and names the sibling to use on an uncertain result ("re-read the shop with ad_get_shop first"). Both when/when-not and the alternative are explicit.

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