Skip to main content
Glama

prepare_purchase_intent

Prepares a PurchaseIntent object for future delegated payment adapters (ACP/AP2). Does not charge.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offer_idYesPublic offer ID
payer_idNoOpaque payer ID
request_idYesUnique request ID
purchaser_idNoOpaque purchaser ID
beneficiary_idNoOpaque beneficiary ID
agent_client_idNoAgent client identifier

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already indicate this is a non-read-only, non-destructive operation. The description adds the key behavioral detail that it does not charge, preventing misuse. It doesn't describe response formats or side effects beyond that, but the addition of the non-charging boundary is valuable and goes beyond annotations.

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?

The description is two short sentences, front-loaded with the core purpose and a clear exclusion. Every word adds value, with no redundancy or filler.

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 mutation tool with no output schema, the description explains the action and non-charging behavior but does not mention what response the agent should expect or any required prerequisites beyond what the schema shows. It is adequate but lacks completeness for a tool that likely returns a prepared intent or ID.

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?

The schema provides full coverage of all six parameters with individual descriptions (e.g., 'Public offer ID', 'Opaque payer ID'), so the tool description does not need to repeat them. It adds no extra parameter context, but the baseline of 3 is appropriate given high schema coverage.

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 clearly states the tool's function with a specific verb ('Prepares'), resource ('PurchaseIntent object'), and purpose ('for future delegated payment adapters'). It also explicitly distinguishes itself by noting 'Does not charge', which sets it apart from other payment-related tools like create_checkout_link.

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 provides clear context that this is for preparing a payment intent for delegated adapters, and the explicit 'Does not charge' acts as a when-not-to-use warning for immediate charges. However, it does not explicitly name alternative tools or provide exhaustive when/when-not guidance, so it's slightly below a 5.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Tools are mostly distinct: get_offer vs list_offers vs recommend_offer target different granularities, and get_public_proof vs search_public_proof follow the same pattern. The only potential confusion is between create_checkout_link and prepare_purchase_intent, but their descriptions clarify different purchase mechanisms.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case (e.g., list_offers, create_checkout_link, search_faqs). No mixing of conventions or vague verbs.

Tool Count5/5

10 tools is well within the ideal 3-15 range for a platform focused on offers, events, FAQs, proofs, and purchases. Each tool serves a clear purpose, and the count feels neither sparse nor bloated.

Completeness4/5

The tool surface covers offer discovery, retrieval, recommendation, purchase initiation, events, FAQs, proofs, and system capabilities. Minor gaps exist (e.g., no get_event or get_faq), but core workflows are fully supported for an agent-facing public server.

Resources