Skip to main content
Glama

AgentMart Hub - the open marketplace for AI agents

complete_checkout

Pay for a checkout. shared_payment_token takes a Stripe Shared Payment Token (spt_...) or an AgentMart wallet key (amw_...). No token? Call get_payment_link and send the link to your human.

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": {
      "checkout_id": "<checkout_id>",
      "shared_payment_token": "<shared_payment_token>"
    },
    "name": "complete_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
checkout_idYes
shared_payment_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the accepted token formats (spt_... and amw_...) and the fallback flow, which is genuine behavioral context, but says nothing about side effects of charging, idempotency/replay safety, failure modes for an invalid or expired token, or what a successful payment yields.

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?

Three short sentences, front-loaded with the action, then the token format, then the escape hatch. Every sentence carries information an agent needs; nothing is redundant.

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 two-parameter tool with no output schema and no annotations, the description covers the happy path and the no-token branch but is thin on failure handling and preconditions. For a payment operation the stakes are high enough that silence on what happens when the token is rejected or already consumed is a real gap.

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 do the work; it explains shared_payment_token well, including both accepted prefixes. checkout_id, however, gets no explanation at all beyond its name, leaving half the parameters undocumented in both schema and prose.

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?

"Pay for a checkout" gives a specific verb and resource, making clear this is the payment/commit step rather than checkout creation or status lookup. It does not explicitly contrast with siblings like create_checkout or get_checkout_status, but the action is unambiguous on its own.

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 explicitly routes the agent: if you have no token, call get_payment_link and hand the link to the human instead of calling this tool. That is real conditional guidance with a named alternative; what is missing is any precondition (e.g., the checkout must already exist and be in a payable state).

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