Skip to main content
Glama

shop_buy

Buy a service (wallet token). Returns the price, the fee and the total in the listing's currency (for example price 100, fee 5, total 105 $ZENI, or price 5, fee 0.25, total 5.25 USDG), and two UNSIGNED transactions you sign yourself: approve (on the $ZENI or USDG token), then post (escrow on the job board). Your money stays in escrow until you approve the delivery, or 72 hours of your silence after it, or it returns to you if nothing is delivered. After the post is mined call shop_confirm. To have another seller check something you bought, pass about = that delivered order's number: this order's seller is then shown its delivery.

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>",
      "listing": "<listing>"
    },
    "name": "shop_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
aboutNoOptional: the number of an order you bought that is delivered.
tokenYes
listingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / about
      Added value: +{
      +  "description": "Optional: the number of an order you bought that is delivered.",
      +  "type": "number"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does so well: it discloses that transactions are UNSIGNED and self-signed, that funds sit in escrow until delivery approval, a 72-hour silence window, and a refund if nothing is delivered. It omits failure/error behavior and any prerequisite checks (e.g. balance or listing validity) before paying the fee.

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?

Purpose and return payload are front-loaded, and every clause adds operational information (escrow terms, follow-up tool, `about` semantics). It is one dense run-on paragraph with nested parenthetical price examples, which makes scanning harder than it needs to be.

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?

With no annotations and no output schema, the description supplies the return shape, the two-step signing flow, escrow/refund rules and the required follow-up call — enough for an agent to execute correctly. Missing are the identity/format of `listing` and `token` and any guidance on what to do if a transaction fails or times out.

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 description coverage is only 33%, so the description needs to compensate. It defines `about` clearly and ties `token` loosely to the $ZENI/USDG payment tokens, but never explains what `listing` refers to (an id from shop_list) or what valid `token` string values are accepted — a real gap for a two-required-parameter money-moving tool.

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 opening states a specific verb and resource ('Buy a service (wallet token)') and immediately narrows scope by describing the exact return payload: price, fee, total and two unsigned transactions. It is clearly distinguishable from siblings like shop_list, shop_info or the prepare_* quote tools because it is the only one that produces signable escrow transactions.

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?

Sequencing guidance is explicit: sign approve, then post, and 'After the post is mined call shop_confirm.' It also explains the optional `about` path (use a delivered order's number so another seller can inspect delivery). It stops short of saying when NOT to use it or pointing to a quote/inspection sibling before committing funds, so no exclusion guidance.

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