Skip to main content
Glama

Execute Authorized Purchase

execute_authorized_purchase

Pay the listed price from your own wallet with x402; no separate approval. Omit paymentPayload to read payment terms. Provide serviceId, input and paymentPayload to buy.

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": {
      "serviceId": "<serviceId>"
    },
    "name": "execute_authorized_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNo
offerNo
serviceIdYes
agentRequestNo
paymentPayloadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / input
      Added value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
    • addedInput schema / properties / serviceId
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "offer",
      -  "agentRequest"
      -]New value: +[
      +  "serviceId"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description adds two important behavioral facts: funds come from the agent's own wallet and there is 'no separate approval' step, meaning the spend is immediate and unrecoverable once paymentPayload is sent. It stops short of stating idempotency, retry safety, spend limits, or what happens if the payment payload is rejected.

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 short sentences, zero filler, with the execution mode front-loaded and the read-only escape hatch stated second. Every clause carries operative information for the caller.

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

Completeness3/5

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

For a five-parameter, nested-object, open-world mutation with no output schema, the description covers the mode switch but not what a successful call yields (receipt, fulfillment handle, or a need to poll a status sibling) or how offer relates to serviceId and input. Those omissions matter for an irreversible payment call.

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 0%, so the description must carry parameter meaning, and it only partly does: paymentPayload gets real semantics (omitting it switches to read mode) and serviceId/input are named as required for a purchase. Two parameters, offer and agentRequest, are never mentioned, and the free-form object contents of input and paymentPayload are left undefined.

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 names a specific verb and resource ('Pay the listed price from your own wallet with x402') and makes the dual nature explicit: the same tool reads payment terms when paymentPayload is omitted and executes the purchase when it is supplied. It does not, however, distinguish this from siblings such as purchase_commerce_service or fulfill_commerce_purchase, so an agent cannot rule out overlap from the text alone.

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 gives explicit conditional usage: 'Omit paymentPayload to read payment terms' versus 'Provide serviceId, input and paymentPayload to buy', which is exactly the decision an agent must make before calling. There is no guidance on when to prefer this over the similarly named purchase/fulfillment siblings, so the routing is complete only within the tool, not across the catalog.

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