Skip to main content
Glama

Borro

Prepare: pay an x402 bill from an agent credit line

credit_bill
Read-onlyIdempotent

Pay a merchant's x402 bill (HTTP 402 Payment Required) in USDG on Robinhood Chain from an agent credit line. Give the 402's payment_required (its PAYMENT-REQUIRED header value, or its JSON body); the bill is its exact-scheme USDG option on eip155:4663, refused in words if it has none or asks more than max_usdg. The wallet is the payer and must be the line's agent or owner: if it holds less USDG than the bill, one unsigned borrow of just what it is short, from the line to the wallet itself (the wallet must be on the line's allowlist: bill pay, credit_guardrails bills: true; checked as the line checks it and simulated). Returns the EIP-3009 authorization and its typed_data to sign (eth_signTypedData_v4) and the steps: send the borrow, sign, call credit_bill_header, send the request again with its header before valid_until.

Input Schema

NameRequiredDescriptionDefault
walletYesThe payer's address (0x...): the line's agent, or its owner
accountYesThe line's address
max_usdgNoThe most to pay for this one bill (optional; refused above it), in whole units as a decimal string, like "1.5"
payment_requiredYesThe merchant's 402: its PAYMENT-REQUIRED header value (base64), or its JSON body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses authorization requirements (wallet must be the line's agent or owner and on the allowlist under credit_guardrails bills:true), that eligibility is checked and simulated, that at most one unsigned borrow of the shortfall is prepared, that max_usdg causes refusal, and exactly what is returned (EIP-3009 authorization, typed_data, and ordered next steps). readOnlyHint=true is consistent, since the tool only prepares an unsigned payload and returns instructions rather than mutating state.

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

Conciseness3/5

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

Correctly front-loads the verb and resource, but the body is a single dense block of clause-stacked jargon that is hard to parse on first read. Roughly every sentence carries information, so it is not padded, but readability suffers for its length.

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?

For a complex, multi-step tool with no output schema, the description covers the important ground: input interpretation, preconditions and allowlist checks, failure mode (refusal), and the shape of the return plus the required follow-up sequence. Minor gaps remain, such as what the refusal or error payload looks like and how the borrow object is consumed.

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 coverage is 100%, so the baseline would be 3; the description adds real meaning on top by explaining that payment_required accepts either the raw PAYMENT-REQUIRED header or the JSON body, what happens when max_usdg is exceeded, and that wallet and account are the payer and the credit line respectively. It stops short of describing token units or format details beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: pay a merchant's x402 bill in USDG on Robinhood Chain using an agent credit line, and the title marks it as a prepare (not execute) step. It also positions itself against credit_bill_header, which it explicitly says to call afterwards. The heavy protocol jargon (x402, USDG, eip155:4663) makes it dense but not ambiguous.

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?

Gives clear entry conditions: you must have a 402 with a payment_required header or JSON body, and the bill must have an exact-scheme USDG option on eip155:4663 or it is 'refused in words'. It lays out the follow-up workflow (send the borrow, sign, call credit_bill_header, resend within valid_until), which clarifies when this tool is the right step. It does not name a mutually-exclusive alternative such as credit_pay, so no explicit exclusions.

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