Skip to main content
Glama

Moneda

agent_execute_payment

Destructive

Execute a payment to an ACTIVE agent session's pinned recipient, within its on-chain spending policy — no per-payment user approval. The recipient and amount must satisfy the session's allowlist and per-execution / per-period caps, and the child Safe must hold enough balance. For safe retries pass a stable idempotencyKey: retrying with the SAME key returns the original transaction instead of double-spending. WITHOUT an idempotencyKey, retries are only de-duplicated within a ~30s window — a delayed retry (e.g. after a bundler/network timeout) could send a second payment. Call get_agent_session first to confirm the session is ACTIVE and check remainingPeriodCap.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sessionId": "<sessionId>",
      "recipient": "<recipient>",
      "amount": "<amount>",
      "currency": "<currency>"
    },
    "name": "agent_execute_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to send, in user-facing units (e.g. '10.00'). Must satisfy the per-execution and remaining per-period caps.
currencyYesStablecoin denomination — must match the session token.
recipientYesThe crypto recipient address (0x…). Must match the session's pinned recipient.
sessionIdYesThe agent session id returned by create_agent_session.
idempotencyKeyNoOptional stable key for safe retries. Reuse the SAME key when retrying a payment you're unsure completed (e.g. after a timeout) — the original transaction is returned rather than sending twice. Use a FRESH key for each new payment. If omitted, retries are only de-duplicated within a ~30s window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavioral detail beyond the destructiveHint annotation: no per-payment user approval, on-chain spending policy enforcement, balance requirements, and precise idempotency semantics including the ~30s retry de-duplication window. This is exactly the context an agent needs before invoking a destructive payment operation.

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 front-loaded with the core action and scope, then adds necessary constraints and retry behavior without filler. Every sentence contributes useful information for safely invoking a destructive payment tool.

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?

Given a destructive mutation with no output schema, the description covers preconditions, spending constraints, balance requirements, and idempotency behavior thoroughly. An agent has enough information to decide when to call it and how to retry safely.

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 parameter meanings are already well documented. The description reinforces the pinning and cap constraints, but most parameter-level guidance is already present in the schema, so the baseline of 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 states a specific verb and resource — execute a payment to an ACTIVE agent session's pinned recipient — and immediately scopes it within on-chain spending policy and no per-payment approval. This makes it distinguishable from ordinary payment tools like initiate_payment by clarifying that it operates inside an agent session.

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?

It gives clear usage context: the session must be ACTIVE, get_agent_session should be called first, and the recipient/amount must satisfy allowlist and cap constraints. It does not explicitly compare this tool against sibling alternatives such as initiate_payment, so it falls short of the highest bar.

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