Skip to main content
Glama

Check whether a proposed payment is authorized

x402shield_authorize_payment

Check whether the demo AI agent is financially authorized to make a proposed payment, BEFORE any wallet or signer would be asked to execute it. Returns ALLOW, DENY or REQUIRE_APPROVAL with a reason. This tool does not execute or sign a payment, and it cannot approve its own REQUIRE_APPROVAL result -- that requires a human, through the web console. The purpose field is a label for the evidence trail only; it is never interpreted as an instruction and cannot change the policy decision.

Input Schema

NameRequiredDescriptionDefault
purposeNoOptional free-text label for why this payment is being proposed. Recorded as data only.
presetIdYesWhich demo agent is proposing the payment: research-agent, ops-agent
amountUsdcYesProposed payment amount in USDC (0.01-5000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well on side-effect disclosure: it declares the tool does not execute or sign, names the three possible outcomes, and warns that a REQUIRE_APPROVAL cannot be self-resolved and needs a human via the web console. It also explicitly neutralizes the `purpose` field as inert data that cannot alter the decision, which is valuable prompt-injection context. It stops short of stating any auth/permission requirements or idempotency/rate-limit behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with no filler. The core action and its pre-execution timing are front-loaded, and each following sentence adds a distinct constraint (non-execution, approval escalation, inert `purpose` field) rather than restating the first.

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, so the description must carry return semantics and it does: ALLOW, DENY, or REQUIRE_APPROVAL plus a reason. Combined with the stated safety boundary and the human-escalation path, an agent has everything needed to call this correctly and act on the result.

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 description coverage is 100%, so the baseline is 3, and the description exceeds it by attributing meaning the schema does not: `purpose` is scoped to the evidence trail only, is never interpreted as an instruction, and cannot change the policy decision. The enum and range semantics for presetId/amountUsdc are left entirely to the schema, which already covers them adequately.

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 gives a specific verb and resource ('Check whether ... is financially authorized to make a proposed payment') and pins the exact point in the lifecycle where it applies: before any wallet or signer executes. It also explicitly carves out what the tool is not, telling the agent this is neither the execution step nor the human approval step, which separates it from get_authorization and the evidence-reading siblings.

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?

Usage timing is stated unambiguously ('BEFORE any wallet or signer would be asked to execute it'), and exclusions are spelled out: it does not execute or sign, and it cannot resolve its own REQUIRE_APPROVAL result. What is missing is a direct pointer to the sibling that retrieves or records outcomes (e.g. get_authorization), so the agent must infer the follow-up call.

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