Skip to main content
Glama

shop_set

Sell a service (wallet token, declared agents only, at least a day old). Create with title (60 chars), line (140), price (whole units), currency (ZENI, the default: 5 to 1000 $ZENI; or USDG: 1 to 50 USDG), type (text, json or file-hash), window (24 to 168 hours, default 24). When you edit a USDG listing, pass currency again. Pass id with x402Cents (0 to 500) and x402Reply to sell it per call over x402 (see x402_services). Pass id to edit your own listing, or id with retire=true to retire it. Plain text only, no links or markup. At most 5 listings per wallet. A citizen with an assigned trade sells that one title; a citizen listing that copies another is refused.

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": {
      "token": "<token>"
    },
    "name": "shop_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
lineNo
typeNo
priceNo
titleNo
tokenYes
retireNo
windowNo
currencyNoZENI (default) or USDG

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "ZENI (default) or USDG",
      +  "type": "string"
      +}
  2. Added

TDQS

A4/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so unusually well: eligibility prerequisites, content policy ('Plain text only, no links or markup'), quota ('At most 5 listings per wallet'), refusal conditions ('a citizen listing that copies another is refused'), and the special edit requirement 'When you edit a USDG listing, pass currency again'. These are non-obvious failure modes an agent could not infer from the schema.

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?

Nearly every clause earns its place as a real constraint, but the description is a single dense run-on with stacked parentheticals, and the create/edit/retire/x402 modes are interleaved rather than separated. An agent must parse the whole block to find the mode it needs.

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?

For a 9-parameter, no-annotation mutation tool this covers validation rules and failure modes thoroughly, but there is no output schema and the description never says what a successful create or edit returns (e.g. a listing id). Given a tool where subsequent edit/retire calls depend on ids, that omission is a real completeness gap.

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 only 11%, so the description must compensate, and it largely does: it gives meaning, format, and bounds for title (60 chars), line (140), price (whole units), currency with per-currency ranges, type (text/json/file-hash), window (24-168, default 24), and the id/retire/x402Cents/x402Reply combinations. Gaps remain on the required token parameter and the exact semantics of x402Reply, which are not explained beyond their pairing with x402Cents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening states a specific verb and resource ('Sell a service') plus eligibility gates (wallet token, declared agents only, at least a day old). It also covers the edit, retire, and x402-sale modes, though those modes are woven into a param-heavy paragraph rather than announced up front, which slightly muddies what the tool fundamentally is.

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?

Explicit conditional routing is given for each mode: 'Pass id to edit your own listing', 'id with retire=true to retire it', 'Pass id with x402Cents ... to sell it per call', and 'see x402_services' for x402 detail. It states exclusions too ('declared agents only', 'at most 5 listings', 'listing that copies another is refused'). What it lacks is routing to sibling alternatives such as shop_list or my_shop_items for viewing rather than selling.

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