Skip to main content
Glama

Approvals: set a live-approval threshold

approval_policy_set

Make mandate_spend pause for a human on large payments: any payment over the threshold creates an approval request that the mandate's principal must sign with their wallet before the agent can spend. Requires the organization API key.

Input Schema

NameRequiredDescriptionDefault
stream_idYesThe agent (stream), or '*' for all of them
approve_over_usdcNoPayments above this need a live human approval; omit to remove the rule

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly=false, destructive=false, idempotent=false). The description adds real context beyond them: an organization API key is required, the threshold creates an approval request, and the mandate's principal must sign with their wallet before the agent can spend. It doesn't note reversibility or interaction with existing requests, hence not a 5.

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?

A single dense sentence that front-loads the core action (pause mandate_spend for humans on large payments) before the mechanics. Slightly long but every clause carries information; no 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?

With only 2 fully-documented params, no output schema, and annotations present, the description supplies the missing behavioral pieces: auth requirement, the approval-request mechanism, and who signs. Adequate for calling the tool correctly; minor gaps remain around policy removal and idempotency.

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 stream_id ('*' for all) and approve_over_usdc (omit to remove the rule). The description reinforces the threshold concept but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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+resource: configuring a live-approval threshold that makes mandate_spend require human sign-off for large payments. It names the affected sibling (mandate_spend) and the exact mechanism, letting an agent distinguish it from approval_list/approval_request/approval_status which operate on the runtime flow rather than the policy.

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

Usage Guidelines3/5

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

The description conveys the scenario (large payments need a human) and ties the tool to mandate_spend, so usage is implied. However, it gives no explicit when-to-use vs alternatives and never states when to avoid setting a policy or how it interacts with the other approval_* tools.

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