Skip to main content
Glama

Buy a listing

buy_listing
Destructive

Buy a listing in the owner's name (requires buy). Fails if the price is above max_price_eur or the 30-day spend limit would be exceeded. Returns the delivered content. Kiosq is in demo mode: purchases are simulated.

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>",
      "max_price_eur": "<max_price_eur>"
    },
    "name": "buy_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
listing_idYesID (UUID) of the listing, as returned by search_listings or my_listings.
max_price_eurYesSafety cap in EUR: the call is refused if the price is higher.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / listing_id / description
      Previous value: -"UUID"New value: +"ID (UUID) of the listing, as returned by search_listings or my_listings."
    • changedInput schema / properties / max_price_eur / description
      Previous value: -"Safety cap: refuse if the price is higher"New value: +"Safety cap in EUR: the call is refused if the price is higher."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new behavior: a per-call price ceiling check, a 30-day rolling spend limit that can also reject the call, the fact that delivered content is returned, and that purchases are simulated in demo mode. It does not spell out reversibility or refund implications, which keeps it at 4.

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 short sentences, front-loaded with the action and permission, then failure conditions, then return behavior and the demo-mode caveat. Every sentence carries information an agent needs and nothing is repeated from structured fields.

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

Completeness5/5

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

For a two-parameter mutation with no output schema, the description covers the permission requirement, both rejection paths, what comes back (delivered content), and the simulated-purchase caveat. Nothing essential to calling it correctly or interpreting the result 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 description coverage is 100%, so both listing_id and max_price_eur are already documented in the schema, including the notion of a safety cap. The description reinforces that the cap is enforced as a hard refusal condition, but adds no format or syntax detail beyond the schema; the 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 description opens with a specific verb and resource ("Buy a listing in the owner's name"), which is unambiguous and clearly distinct from read-oriented siblings like get_listing, search_listings and my_listings. It stops short of naming a sibling or stating a boundary case (e.g. versus order_service), so it does not reach a 5.

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?

It states the prerequisite permission ("requires buy") and the conditions under which the call is refused, which gives the agent solid context for when this tool will succeed. It offers no explicit when-not guidance or named alternative for purchasing flows, so it is clear context without exclusions.

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.