Skip to main content
Glama

safe_pay

The smart way to pay an agent. Checks their trust score first, then auto-configures escrow protection based on risk.

Flow: Check trust → Set protection level → Create escrow → Call API → Verify → Auto-release or auto-dispute.

Protection levels (automatic):

  • High trust agent → 15min timelock, proceed normally

  • Moderate trust → 60min timelock, payment capped at $25

  • Low trust → 4hr timelock, payment capped at $5

  • Unknown/caution → BLOCKED — will not send funds

This is the recommended tool for paying any agent. If you need manual control, use x402_protected_call instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe API endpoint URL to call
bodyNoRequest body (for POST/PUT)
methodNoHTTP method (default: GET)GET
headersNoHTTP headers to include
amount_usdcYesAmount to pay in USDC
seller_addressYesEthereum address of the agent you're paying

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / headers / description
      Previous value: -"HTTP headers"New value: +"HTTP headers to include"
    • changedInput schema / properties / method / description
      Previous value: -"HTTP method"New value: +"HTTP method (default: GET)"
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries full weight. It discloses the risk-based protection levels, payment caps, blocked unknown agents, and the flow including auto-release/dispute. However, it doesn't detail what happens after verification or error handling, so some gaps remain.

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?

The description is well-structured with a clear flow, bullet points for protection levels, and no redundant text. Every sentence adds value, and it's front-loaded with the core purpose.

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?

The description covers the key behavioral aspects necessary for an agent to decide and invoke the tool, including trust check, protection levels, and recommendation vs alternatives. Lacks return/output details, but since there is no output schema, a brief note on response format would elevate completeness. Still, it is solid.

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 explains each parameter. The description adds context about trust-based caps but doesn't elaborate on individual parameters like body or headers beyond what schema provides. 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?

The description clearly identifies the tool as a payment method for agents that includes trust checking and automatic escrow protection. It distinguishes itself from sibling tools like x402_protected_call by describing its automated risk-based flow and being the recommended payment tool.

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?

Explicit usage guidance is given: 'This is the recommended tool for paying any agent' and alternative 'use x402_protected_call instead' when manual control is needed. The flow description also clarifies when it applies.

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