Skip to main content
Glama

SacrosanctSpace

Prepare purchase

prepare_purchase

Prepare a guest per-call purchase: returns the authoritative price split, payment_id, purchase_ticket, reissued commerce_scope, and payment_plan. Pay by sending payment_plan.calls (to/value/data verbatim) from the buyer wallet as ONE atomic batch transaction on Base Mainnet — the platform call's data carries the required payment_id stamp; separate or re-encoded transfers are refused and not refunded.

Input Schema

NameRequiredDescriptionDefault
buyerYes
job_idYes
commerce_scopeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the required atomic batch execution model, the network (Base Mainnet), the payment_id stamp carried in call data, and the consequence of noncompliance (refused and not refunded). It does not address idempotency, expiry of the prepared ticket/plan, or whether calling it mutates server state via the reissued commerce_scope.

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?

Two sentences, purpose and return values front-loaded, then the payment constraint. Dense but every clause is functional — the atomicity rule and no-refund warning are exactly the details an agent must not miss. Slightly heavy punctuation but no wasted prose.

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?

No output schema exists, and the description compensates by listing returned fields, which is valuable. However, for a three-parameter, annotation-free, state-affecting tool it leaves key gaps: job_id semantics, where commerce_scope comes from, and lifecycle details like plan validity or retry behavior are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for three required parameters. The description only indirectly touches two of them — 'buyer wallet' hints at buyer and 'reissued commerce_scope' hints at commerce_scope — while job_id is never mentioned at all, and no format, provenance, or expected source for any parameter is given.

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?

States a specific verb and resource — 'prepare a guest per-call purchase' — and enumerates the artifacts it returns (price split, payment_id, purchase_ticket, commerce_scope, payment_plan). This distinguishes it from complete_purchase and get_purchase_status by framing it as the preparatory step, though no sibling is named explicitly.

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 second sentence gives a clear operational condition for the downstream action: pay using payment_plan.calls as one atomic batch on Base Mainnet, with explicit prohibitions (no separate or re-encoded transfers). It stops short of stating when to call this versus get_purchase_status or complete_purchase, so the entry condition is only implied.

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