Skip to main content
Glama

capture_paypal_purchase

Capture (complete) an approved PayPal order and receive the signed credit token.

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": {
      "order_id": "<order_id>"
    },
    "name": "capture_paypal_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesPayPal order id returned by create_paypal_checkout / the return URL token parameter

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the outcome ('receive the signed credit token') and that this is a state-completing mutation on an approved order, but it says nothing about idempotency, retry behavior, failure/decline modes, or permission requirements for a payment capture.

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?

A single tight sentence with the action and the payoff front-loaded; no filler. Slightly compressed but nothing is wasted.

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?

With no output schema, the description helpfully names the return value (signed credit token), which covers part of the gap. But for a payment-capture mutation with no annotations and no output schema, the absence of any error/idempotency/permission context leaves meaningful holes.

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% and the schema already explains the order_id origin ('returned by create_paypal_checkout / the return URL token parameter') in more detail than the description. The description adds no additional parameter semantics, so the baseline 3 applies.

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?

Specific verb (capture/complete) plus resource (PayPal order), and it clarifies the jargon 'capture' with '(complete)'. It implies a distinct stage from the sibling create_paypal_checkout, but never names or contrasts the siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'approved PayPal order' implies the prerequisite state (an order must exist and be approved first), which is useful implied guidance. However, there is no explicit when-to-use, when-not-to-use, or alternative routing among the sibling tools (create_paypal_checkout, verify_usdc_order, etc.).

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