Skip to main content
Glama

SwapEazi

Record a named person's approval of a payment run

approve_payment_run
Idempotent

Gets prepared payments approved by a named person and returns each one's release instruction. Records the approval of that person (approver: { name, role }) for the run's prepared payments (payments: "all_prepared") or listed payment_ids (held ones need acknowledge: true), and creates one release record per approved payment. Each approved payment returns release_in_own_bank: beneficiary, amount, currency, reference, which of the business's own accounts to pay from and the cut-off, for the business to release itself in its own bank or rail portal; then record what landed with reconcile_payment. An agent cannot approve on its own: this tool records an approval only when the run's policy sets agent_may_record_approval and names the person who approved; otherwise it returns how the person approves (POST /api/v1/payment-runs/{id}/approve). Never sends or moves money.

Input Schema

NameRequiredDescriptionDefault
run_idYespr_... or pr_sample.
approverYes{ name, role, id? }: the person who approved. Required.
paymentsNo"all_prepared" or a list of payment_ids.
access_keyNoA router key (rk_...), if not sent as a Bearer header.
acknowledgeNotrue to approve listed payments that need attention or have no evidence, once the person has assessed them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already mark this as a non-read-only, idempotent, non-destructive write, and the description adds substantially more: it creates one release record per approved payment, it returns release_in_own_bank instructions instead of paying, and it states plainly that it never sends or moves money. It also discloses the policy gate: it records an approval only when agent_may_record_approval is set, and otherwise it falls back to returning how the person approves. That is context the annotations do not carry.

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?

The description is dense but nearly every clause carries a fact an agent needs: the policy gate, the payment selector, the acknowledge flag, the return shape, and the follow-up tool. The first clause, "Gets prepared payments approved by a named person," reads like the agent is approving, and only the later sentence corrects that; front-loading the constraint would be cleaner.

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

Completeness5/5

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

There is no output schema, and the description compensates by listing the returned fields of release_in_own_bank: beneficiary, amount, currency, reference, the source account, and the cut-off. It also covers the policy gate, the failure mode, and the next step. That is complete for a mutation tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description still adds meaning: it clarifies that approver is the person who approved, that payments can be the literal "all_prepared" or a list of payment_ids, and that acknowledge: true applies to payments that are held or lack evidence after a person assesses them. That goes beyond the schema text.

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?

The description states a specific verb and resource: it records a named person's approval for a run's prepared payments and creates one release record per approved payment. That is far more specific than the title alone. It does not explicitly contrast itself with the sibling request_payment_approval or approval_status tools, so an agent must infer that this records an existing approval rather than requesting one.

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?

The description gives a concrete precondition: this works only when the run's policy sets agent_may_record_approval; otherwise it returns how the person approves (POST /api/v1/payment-runs/{id}/approve). It also says held payments require acknowledge: true, and it points to reconcile_payment as the follow-up. It never explicitly says when to use request_payment_approval instead, which is the main gap.

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