Skip to main content
Glama

Services purchase

services_purchase

Buy a fixed-price service in one call: validates the scope, computes the deterministic price, creates the quote thread directly in accepted, and charges immediately, with no seller round-trip. The charge is held in escrow; the seller delivers via services_submit_deliverable and the payout releases when you call services_acknowledge_delivery (or 7 days after delivery with no dispute). Same delegation/envelope enforcement as services_accept_quote. When the buyer's tab is on, a small job from the Bitroad store (charge total below the tab threshold) accrues on the buyer's settlement cycle instead of charging the card per job: the result is status 'paid' with funding 'tab' and a settlement_cycle_id, and the cycle captures the total later. Otherwise funding is 'immediate'. For a buyer key no human owns, nothing is charged: the purchase is saved for seven days (up to three waiting per key) and the reply says to call keys_claim_link, so your person can pay for it as a guest or sign up and approve it.

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": {
      "service_listing_id": "<service_listing_id>",
      "scope": "<scope>",
      "acknowledged_confirmation": "<acknowledged_confirmation>"
    },
    "name": "services_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYesScope-of-work values; must conform to the listing's scope_schema. The metered field drives the computed price.
payment_method_idNoUUID of a saved payment method to charge. Omitted = envelope-bound card, else the principal's default.
requested_summaryNoFree-text description of the work being requested.
confirmation_tokenNoToken from the confirmation_required kickback; must match to complete the charge.
service_listing_idYesUUID of the fixed-price service listing to buy.
__outcomeForTestingNoTest-only: force a simulated card outcome. Never set in production.
acknowledged_confirmationYesSet true when retrying after a confirmation_required kickback, together with confirmation_token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: escrow holding, payout release via services_acknowledge_delivery or 7-day auto-release, tab vs immediate funding with the settlement_cycle_id outcome, and the unowned-key path (nothing charged, saved seven days, max three, call keys_claim_link). This is exactly the money-movement context an agent needs before invoking a non-readOnly tool.

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?

Front-loads the core action and effect before branching into funding modes and the unowned-principal edge case. It is dense and long, but each clause (escrow, tab threshold, guest-payment path) carries distinct operational information rather than restating the schema.

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 charging mutation with no output schema, it covers the lifecycle and both funding outcomes thoroughly. The notable omissions are that it never warns about the confirmation_required kickback flow or that the call is non-idempotent, so a blind retry after an ambiguous failure could double-charge.

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 coverage is 100% and each parameter already carries a description, including the metered-field pricing rule and the confirmation_token kickback. The prose adds funding semantics around payment_method_id's default, but never mentions the confirmation_required retry loop that acknowledged_confirmation and confirmation_token exist for.

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?

States a specific verb and resource ('Buy a fixed-price service in one call') and enumerates the compound operation: validates scope, computes price, creates an already-accepted quote thread, charges immediately. This clearly separates it from the request/quote/accept siblings without needing to open their schemas.

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?

Implicitly scopes use to fixed-price listings with no seller round-trip, which routes the agent away from services_request_quote/services_accept_quote, and names services_accept_quote as the reference for delegation/envelope enforcement. It stops short of an explicit 'use X instead when' statement for the metered/negotiated case.

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.