Skip to main content
Glama

EventPass

Confirm pending payment

confirm_pending_payment
Idempotent

Record that a manual payment was received for ONE pending order (e.g. an Interac e-Transfer that just arrived) and confirm the order, issuing its tickets and sending the buyer their tickets email. This records a payment — it does NOT move money and never touches Stripe; the money already went directly to the organizer. One order per call, no bulk confirm. Call once to preview (confirm defaults to false): the preview shows the buyer, the amount owed, and whether this payment covers it. Show the preview to the user, then call again with confirm=true to record and confirm. Identify the order with order_lookup from get_pending_payments (preferred — the raw order ID is never shown to the AI, round 3 N-2), or order_id / order_ref when the user supplies one.

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": {
      "amount_cents": "<amount_cents>"
    },
    "name": "confirm_pending_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true ONLY after showing the preview to the user and getting their approval. Default false: returns a preview of exactly what would happen and changes nothing.
order_idNoOrder ID — only when the user supplies it directly (e.g. from the dashboard). Prefer order_lookup.
order_refNoOrder reference code (the code the buyer puts in their e-Transfer message) — only when you do not have the order lookup or ID. get_pending_payments returns the order lookup, not the reference.
referenceNoe-Transfer reference, memo, or note — stored on the payment record.
amount_centsYesAmount received, in cents (2500 = $25.00). This is recorded as a manual payment on the order.
order_lookupNoOpaque lookup token from get_pending_payments — use this to confirm. Preferred: the raw order ID is never shown to the AI.
idempotency_keyNoA unique key for this write (e.g. a UUID). Reuse the exact same key if you retry this call — a replay returns the original result instead of executing again.
organization_idNoOrganization ID. Required when you belong to several organizations — use list_my_organizations to see them. Omit it when you belong to exactly one.

Output Schema

NameRequiredDescriptionDefault
orderNo
previewYes
summaryNo
replayedNo
confirm_requiredNo
already_confirmedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=true; the description goes further by naming the real-world effects (issuing tickets, sending the buyer an email), the preview-then-commit safety pattern, and the fact that no money moves and Stripe is untouched. That is meaningful added context beyond the annotations, but it omits the failure/precondition story — what happens if the order is already confirmed, or if amount_cents does not cover the balance — which for a non-destructive write with idempotency declared would round out the behavior. The stray internal reference "round 3 N-2" is noise rather than transparency. Net: solid additions, some behavioral gaps.

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?

Front-loaded with the verb and scope, then the constraints, then the workflow, then identification — a logical progression with almost no filler. The one blemish is the parenthetical "round 3 N-2", an internal artifact that means nothing to an agent and should have been stripped.

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?

An output schema exists, so return values need no explanation, and the description covers what matters for correct invocation: the preview/confirm protocol, the identification path, and the one-order-per-call limit. The remaining gap is the required amount parameter, whose meaning (recorded payment amount vs. balance owed) matters for the preview comparison the description promises.

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%, so the schema already documents every parameter including the confirm-preview semantics, the order_lookup preference, and the idempotency_key replay behavior. The description reinforces the ordering of the three order-identification parameters but never mentions the one required parameter, amount_cents, nor reference or organization_id, so it adds little meaning the schema does not already carry. Baseline 3 applies.

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 ("Record that a manual payment was received ... and confirm the order") plus scope ("ONE pending order") and the resulting side effects (tickets issued, buyer email sent). It explicitly contrasts with what it is not — "does NOT move money and never touches Stripe" — so an agent can distinguish it from payment-processing siblings at a glance.

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 an explicit two-step protocol: call once with the default confirm=false for a preview, show it to the user, then call again with confirm=true to commit. It also routes order identification — order_lookup from get_pending_payments is preferred, order_id/order_ref only when the user supplies them — and rules out bulk use ("no bulk confirm").

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