Skip to main content
Glama

capture_hold

Collects money from an existing hold: omit the amount to take all held funds, or specify less to take part and return the rest. Use to finalize or charge a held payment, not to release a hold.

Instructions

TAKE money from an existing hold (capture). Omit amount to take everything still held; a smaller amount takes that and gives the rest back. Use when the merchant says charge/finalize/collect the held amount. Do NOT use for 'release the hold' meaning let the buyer go: that is void_hold.

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": {
      "orderRef": "<orderRef>"
    },
    "name": "capture_hold"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoHow much of the hold to TAKE. Omit to take everything still held. Whatever is not taken goes back to the buyer.
orderRefYesYour merchant reference for this deal (e.g. 'invoice-1042'). Reuse it for every later call about the same deal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 behavioral burden and does disclose the key non-obvious trait: capture is partial-capable and the untaken remainder is returned to the buyer rather than staying held. It stops short of stating idempotency (can capture be called twice on one orderRef?), what happens on an expired or already-captured hold, or permission requirements.

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, all load-bearing: the action, the amount-omission rule, the usage trigger, and the anti-pattern. The primary action is front-loaded and capitalized, with zero filler.

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

Completeness4/5

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

For a 2-parameter mutation with no output schema, the definition covers action, amount semantics, and sibling routing well. The remaining gap is the return value and repeat-call behavior, which nothing else in the structured data supplies.

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 coverage is 100% and the schema descriptions already explain omitting amount and that the remainder returns to the buyer, so the description largely restates structured data. Baseline 3 is appropriate; it adds no format, rounding, or partial-capture limits beyond what the schema provides.

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?

States a specific verb and resource ('TAKE money from an existing hold (capture)') and immediately distinguishes itself from the sibling it could be confused with (void_hold). An agent can tell this apart from hold, void_hold, and refund without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use triggers ('when the merchant says charge/finalize/collect the held amount') and an explicit exclusion with the correct alternative named ('Do NOT use for release the hold ... that is void_hold'). Both sides of the routing decision are covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.