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 — no human seller round-trip. Same delegation/envelope enforcement as services_accept_quote.

Input Schema

TableJSON 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. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations carry no read-only or idempotency reassurance, so the description must carry the behavioral burden. It does so by disclosing that this is a mutating, immediately-charging operation with a deterministic price and no seller round-trip. It also notes shared delegation/envelope enforcement with services_accept_quote. This is substantive behavior disclosure beyond the annotation fields.

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?

Two sentences, no filler, and the most decision-relevant facts are front-loaded: fixed-price purchase, one-call, no seller round-trip, immediate charge, and the enforcement parallel. Every clause adds information needed for selection or invocation.

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 seven-parameter, no-output-dchema tool with nested objects and a real charge side effect, the description gives a strong high-level flow. The schema documents the parameters, including the confirmation_token kickback and payment-method fallback behavior. It lacks an explicit statement of return/error behavior and the full required-action/declined paths, but the combination of description plus rich schema is close to sufficient.

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 input schema already documents all seven parameters in detail. The description adds no new parameter-level meaning beyond framing the overall flow (scope validation, immediate charge). Baseline 3 is appropriate because the schema does the heavy lifting.

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 opens with a specific verb and resource: 'Buy a fixed-price service in one call.' It then enumerates the exact behaviors (validates scope, computes deterministic price, creates quote thread in accepted, charges immediately) and distinguishes itself from the quote round-trip flow. An agent can clearly tell this from services_accept_quote and other services_* siblings.

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?

The description provides clear context for when to use the tool: for a fixed-price service purchase in a single call with no human seller round-trip. It references the analogous services_accept_quote enforcement but does not explicitly state when not to use it or name alternatives beyond that single reference.

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.