Skip to main content
Glama

Borro

Prepare: gas for an agent, from its line

credit_gas
Read-onlyIdempotent

Unsigned transactions that turn a line's credit into ETH in its agent's own wallet: make the agent's gas station if it has no code yet (anyone may; the station is the GasStationFactory's predict of the agent's wallet, never an address given), borrow amount USDG from the line to the station (the agent or the owner; the station must be on the allowlist), then pump(minOut, maxIn) by its full signature, with maxIn everything the station will hold and minOut a tenth of a percent under the pool's own fill for that size (never under the station's Chainlink floor). No amount: pump what the station already holds (anyone may). If ETH's price feed has been stale for 4 days, release() instead, sending the station's USDG to the agent's wallet as it is. Simulated from the wallet.

Input Schema

NameRequiredDescriptionDefault
amountNoUSDG to borrow to the agent's gas station (optional; without it, pump what the station holds), in whole units as a decimal string, like "1.5"
walletYesThe wallet's address (0x...); the transactions are built for it to sign
accountYesThe line's address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint, idempotentHint, and destructiveHint=false, the description adds substantial behavioral context: permissions (anyone may create the station, agent or owner may borrow, allowlist requirement), conditional release on stale price feed, and that everything is simulated from the wallet. It could still be clearer about failure modes, but the added transparency is strong.

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

Conciseness2/5

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

The description is a dense, run-on paragraph with multiple clauses and semicolons that could be more clearly structured. It front-loads the purpose but is unnecessarily verbose and difficult to parse quickly.

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 tool's complexity (multi-step conditional logic, no output schema), the description covers the required branches and permissions well enough for an agent to understand the process. It implies the return is unsigned transactions ('simulated from the wallet'), though a brief note on output format would improve completeness.

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 documents all three parameters. The description adds only marginal clarification: it reinforces that amount is optional and what happens without it, but does not introduce new syntactic or semantic details beyond the schema's own descriptions.

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?

The description states a specific verb and resource: preparing unsigned transactions that turn a line's credit into ETH in the agent's wallet. It distinguishes itself from siblings like credit_borrow or credit_repay by focusing on gas-station creation and pumping. The dense phrasing makes it slightly harder to parse, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use it through conditional branches (no amount vs. amount, stale price feed triggering release), but it never explicitly says when to choose this tool over alternatives like credit_borrow or borrow. The usage context is present but requires inference.

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