Skip to main content
Glama

Buy an item

buy_listing
Idempotent

Buys an item from agentPickup's marketplace at its listed price, for the person to pick up in person. Reserves it for 30 minutes and returns Stripe's payment page: the person pays there themselves. Their card is held, not charged, until they collect the item and the seller confirms the handover. Check the item and the price with them first. Needs sign-in.

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_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
listing_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly=false, destructive=false, idempotent=true, openWorld=true); the description adds substantive behavior they cannot convey: a 30-minute reservation, a returned Stripe payment page the person completes themselves, and a card hold rather than a charge until collection and seller confirmation. Those are exactly the side effects an agent needs to predict before calling.

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?

Five short sentences, front-loaded with what the tool does and the price basis, then reservation/payment behavior, then prerequisites. No filler; each sentence contributes a distinct fact an agent would otherwise have to guess.

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 one-parameter mutation with no output schema, the description covers the missing pieces: the returned payment page, the reservation window, the hold-vs-charge model, and the auth requirement. Nothing an agent needs to call it correctly or set user expectations is absent.

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?

There is a single parameter, listing_id, with 0% schema description coverage — the schema gives only type and maxLength. The description implies the argument is the item being bought at its listed price, but it never says where that ID comes from (a search or get_listing result) or its format, so it adds only partial meaning over the schema.

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 description names a specific verb and resource ('Buys an item from agentPickup's marketplace') and pins the scope with 'at its listed price, for the person to pick up in person.' That phrasing separates it from offer-based siblings like make_offer and from order/payment siblings like pay_order or create_pickup_order without needing to name them.

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 supplies concrete preconditions — 'Check the item and the price with them first' and 'Needs sign-in' — which is real when-to-use guidance. It stops short of explicitly routing the agent to alternatives (e.g., make an offer instead when the price is negotiable), so it is clear context rather than a full when/when-not map.

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.