Skip to main content
Glama

resolve_approval

Approve or reject a pending payment. On approval, the payment is executed after re-checking budget limits.

Instructions

(operator only) Approve or reject a pending payment and, on approval, execute it. This is the resume path for needs_approval.

A human approval overrides only the approval threshold — the hard limits (per-transaction cap, budgets, deny/allow list) are RE-CHECKED against the current ledger at approval time, so an approval that would now bust a budget is refused rather than forced through.

Args: payment_id: the audit id of the pending row (from list_pending_approvals) approve: True to approve and execute, False to reject note: optional operator note recorded on the row

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
approveNo
payment_idYes
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses critical behavior: re-checking of hard limits at approval time and refusal if budget is busted. It does not detail authorization beyond 'operator only' or rate limits, but the key behavioral trait is well explained.

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 well-structured: a concise purpose statement, a critical caveat paragraph, and then parameter documentation. All sentences are informative, though slightly longer than strictly necessary. It is front-loaded with the main action.

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?

Given no output schema and no annotations, the description covers the main behavioral aspects (execution on approval, re-checking of limits, operator notes). It lacks details on return values or error scenarios, but the complexity is moderate and the description is comprehensive enough for agent understanding.

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

Parameters5/5

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

Schema coverage is 0%, so description must compensate. It provides clear semantics for each parameter: payment_id is 'the audit id of the pending row (from list_pending_approvals)', approve is 'True to approve and execute, False to reject', and note is 'optional operator note recorded on the row'. This adds significant value beyond the schema types and defaults.

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?

The description clearly states the tool's purpose: 'Approve or reject a pending payment and, on approval, execute it.' It identifies the specific verb (approve/reject) and resource (pending payment), and distinguishes itself from siblings like list_pending_approvals and request_approval by specifying it is the 'resume path for needs_approval'.

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 indicates it is '(operator only)' and explains the context: 'the resume path for needs_approval.' It gives clear conditions for use (when a payment is pending approval) but does not explicitly mention when not to use it compared to alternatives like pay_x402 or request_payment.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Theoddalex/agentmandate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server