Skip to main content
Glama

SwapEazi

Approval status

approval_status
Read-only

Read a payout the agent held for approval by approval_id: awaiting_approval while it is pending; approved with the agent_approval { id, role } to pass to record_release; rejected with the approver's reason; or expired once its release-by date passed undecided. Each decision is signed and chained to the agent's decision record. Do not release a payout while it is awaiting approval, rejected or expired. Read-only. Needs the organisation's key; demo items (aprd_) do not.

Input Schema

NameRequiredDescriptionDefault
approval_idYesapr_… (or aprd_… for a demo item), from POST /api/v1/agent/run with policy_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds substantial context beyond them: expiry semantics ('once its release-by date passed undecided'), signed and chained decision records, an authentication requirement ('Needs the organisation's key'), and the demo-item exception (aprd_) where no key is needed.

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 status outcomes are front-loaded in the first sentence, and the safety rule and auth note follow logically. It is dense and slightly run-on, but nearly every clause carries distinct information an agent needs, with no filler.

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?

With no output schema, the description still conveys the return shape: the status value, an agent_approval { id, role } on approval, and the approver's reason on rejection. Combined with the auth requirement and the release prohibition, an agent has everything needed to call and act on this tool correctly.

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 already 100%, so the apr_/aprd_ format and provenance (POST /api/v1/agent/run with policy_id) are documented in the schema. The description adds meaning beyond that by explaining the operational consequence of the aprd_ prefix — demo items do not require the organisation's key — which the schema never states.

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 ('Read a payout ... by approval_id') and enumerates the four outcomes (awaiting_approval, approved, rejected, expired). This clearly separates it from sibling tools like release_status, request_payment_approval, and record_release, which an agent could otherwise confuse it with.

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 context plus a hard exclusion: 'Do not release a payout while it is awaiting approval, rejected or expired.' It also routes the agent forward by naming record_release as the consumer of the returned agent_approval object, so the next step is unambiguous.

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