Skip to main content
Glama

delegare-agent-payments

Request Payment Authorization

request_payment_authorization

Set up agent spending limits. Request permission from the user to spend money on their behalf. Use this BEFORE making a payment to generate an Intent Mandate token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
_metaNoInternal metadata for transport
maxPerTxCentsYesRequested maximum amount in cents allowed per single transaction
maxMonthlySpendCentsYesRequested maximum total amount in cents allowed per month

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
setupUrlNoURL for the user to complete payment authorization
shortcutNoWhether an existing mandate was used
sessionTokenNoToken to poll for completion
intentMandateNoEncoded intent mandate if shortcut available
maxPerTxCentsNoConfirmed max per transaction
maxMonthlySpendCentsNoConfirmed max monthly spend

TDQS

A4.2/5.0
Behavior4/5

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

Annotations indicate a non-read-only, non-idempotent operation. The description adds meaningful behavioral context: it is a permission-request step that generates an Intent Mandate token and involves the user. This goes beyond the annotation flags without contradicting them.

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 short, front-loaded sentences deliver the core purpose, user interaction, and usage timing without any filler. Every sentence earns its place and the message is immediately actionable.

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?

Given the presence of a full output schema, detailed parameter descriptions, and clear annotations, the description adequately covers the tool's role and timing. It might have explained post-authorization behavior, but the output schema likely handles that, so the description is sufficiently complete for selection and invocation.

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?

The schema already provides 100% parameter coverage, describing maxPerTxCents and maxMonthlySpendCents in detail. The description mentions 'spending limits' but does not add further semantic nuance beyond what the schema already documents, so the baseline score 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 clearly states the tool's purpose: setting up agent spending limits and requesting user permission to spend money, culminating in an Intent Mandate token. It distinguishes itself from sibling payment tools by explicitly framing it as a pre-payment authorization step.

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?

The guidance 'Use this BEFORE making a payment' directly indicates when to invoke the tool relative to payment. It does not explicitly name alternative tools or when not to use it, but the timing instruction is clear and actionable.

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.

TDQS

A4/5.0
Disambiguation5/5

Each tool serves a distinct purpose: fetching URLs with payment support, checking balances, viewing merchant stats, making payments, polling setup status, and requesting payment authorization. Even the related setup and poll tools are clearly separated by their function.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using snake_case (execute_fetch, get_balance, get_merchant_stats, pay_merchant, poll_setup_session, request_payment_authorization). This makes the toolset predictable and easy to navigate.

Tool Count5/5

With exactly 6 tools, the set is well-scoped for an agent-payments domain. Each tool addresses a core aspect (authorization, polling, paying, fetching, balance, merchant stats) without unnecessary bloat or missing essentials.

Completeness4/5

The toolset covers the main agent-payment workflow end-to-end: request authorization, poll setup, make payments, and fetch paid resources. A minor gap is the lack of a transaction history or mandate revocation tool, but these are not critical for the core use case.

Resources