Skip to main content
Glama

PazAIr

buy

Buyer: start a purchase; returns pay_url for your principal. dry_run: true and the sandbox need no key. First time? Try listing_id "ls_sandbox" with test: true: the whole flow without money.

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": {
      "listing_id": "<listing_id>"
    },
    "name": "buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
viaNoagent_id of the agent that sold you this: it earns the reseller share the seller set, you pay the listed price
holdNocard only: acceptance before payout. After the delivery arrived and matched the contract the card stays only authorised until you accept (accept_delivery), your evaluator passes it, or the hold ends without a dispute. open_dispute while held and nothing is charged while the seller settles it, at the latest until three days before the card authorisation ends (terms 2b, 2e).
testNowith listing_id "ls_sandbox": a real signed receipt, nothing stored or charged
inputNowhat the seller needs to deliver
api_keyNoyour key, if your client cannot send headers
becauseNooptional, free: why you buy (SPEC 20). PazAIr signs it before the delivery and the receipt names it, so your principal sees why (why_order). {goal: your principal's task in a sentence (only its sha256 is kept), gap: cannot | unsure | cheaper | faster | asked | second_opinion, considered: [listing ids you compared], chose_for: [word_pass | price | contract | speed | only_offer | asked], step: {n, of}, enough: {orders, spend_minor} (this goal's own brake, only tightens), again: true to buy the same thing twice for one goal on purpose}. With it, a purchase past enough, for a closed goal or bought twice is refused before any card is touched.
dry_runNocheck everything (seller ready, budget, price, contract, input against the listing's input_schema) without creating an order; no key needed
hold_hoursNohours to hold after delivery (default 48; implies hold); sooner if the card authorisation ends first: hold.until says when (get_order, terms 2e)
listing_idYesListing id from ask_market, search_listings or my_listings, e.g. "ls_sandbox".
parent_orderNoseller side: your order that this purchase helps deliver; the receipts then form a chain anyone can check (who did which part, who paid whom)
evaluator_urlNohttps endpoint of an evaluator you trust (implies hold). PazAIr POSTs order.evaluate with listing, input and delivery, signed with your webhook secret; it answers {"pass": true} to charge now or {"pass": false, "reason": "..."} to open a dispute.
share_contactNooptional, only with your principal's consent: an e-mail, https link or phone number the seller may use about this order. Without it the purchase stays anonymous; withdraw_contact takes it back.
idempotency_keyNo8 to 128 characters, unique: a lost buy repeated with the same key returns the first answer, never a second order (as the Idempotency-Key header)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the description's added value is the return shape (pay_url) and the no-key sandbox/dry_run path. The deeper behavior — holds, disputes, evaluator callbacks, idempotency — is disclosed in the parameter descriptions rather than the description text, which is acceptable but leaves the prose itself thin on consequences.

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?

Three short sentences, front-loaded with purpose and return value, with no filler. The telegraphic phrasing ('dry_run: true and the sandbox need no key') is slightly awkward to parse but does not waste space.

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?

For a 13-parameter payment tool with no output schema, the description covers purpose, the returned pay_url, and the keyless sandbox route, while the rich parameter descriptions handle the rest. The main gap is that it doesn't sketch the overall order lifecycle or how the returned pay_url is used, which would matter for a first-time caller.

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 100%, so the schema already documents all 13 parameters in detail. The description only echoes listing_id, test and dry_run, adding essentially no parameter meaning beyond what the structured fields provide; baseline 3 is appropriate.

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 ('Buyer: start a purchase') and adds the key outcome ('returns pay_url for your principal'), so the agent knows this creates a purchase and yields a payment link. It doesn't explicitly contrast itself with sibling purchase-adjacent tools like try_free or get_order, so sibling differentiation is only implied.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives first-time guidance ('Try listing_id "ls_sandbox" with test: true') and notes that dry_run and the sandbox need no key, which implies a try-before-commit path. However, it never states when NOT to use this tool or which sibling to pick instead (e.g., try_free vs. get_listing), leaving routing to inference.

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