Skip to main content
Glama

Borro

Prepare: pay from an agent credit line

credit_pay
Read-onlyIdempotent

One unsigned borrow from a line straight to a payee on its allowlist (or its owner): the line's agent or owner signs it, the USDG goes from Morpho to the payee, and the line owes it until repaid. Checked as the line checks it: the allowlist, a write-off, what is left of the daily limit today, the ceiling, the target LTV at today's price, the market's 90% and depth gate; simulated from the wallet. Check the transaction's to: a line the factory confirms (isAccount).

Input Schema

NameRequiredDescriptionDefault
toYesThe payee: an address on the line's allowlist, or its owner
amountYesUSDG to pay, 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?

Annotations already mark this read-only and idempotent, and the description is consistent with that by framing it as an 'unsigned' transaction that is 'simulated from the wallet'. It adds real behavioral detail beyond the annotations: the allowlist, write-off, daily-limit, ceiling, LTV, 90% and depth gate checks that will gate the call. It stops short of saying what the prepared output looks like.

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?

The core action is front-loaded, but the text is a single dense run of unexplained protocol jargon ('write-off', 'the ceiling', 'the market's 90% and depth gate') that slows comprehension. Roughly the right length, but not structured for scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the agent relies on the description for the return value; it only hints at 'unsigned' transactions and 'transactions are built for it to sign' in the schema, without stating whether a submit/broadcast step follows. For a mutating-intent prepare tool with four required params, some call-sequence detail is missing.

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 coverage is 100% and each parameter already carries a description, so the schema does the heavy lifting. The description restates the payee constraint ('allowlist, or its owner') and the fact that the tx is built for the wallet to sign, but adds no format or edge-case detail 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?

The first clause states a concrete action and resource: an unsigned borrow drawn from a credit line and sent directly to a payee. This is clearly distinct from credit_repay, credit_bill, or plain borrow, though the agent has to parse dense jargon ('line', 'USDG goes from Morpho') to get there.

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?

Usage is implied by the mechanics (use this to pay a payee from a line rather than repaying or opening one), and one prerequisite is stated: the `to` must be a factory-confirmed account (isAccount). There is no explicit when-to-use vs when-not or named alternative such as credit_repay or credit_bill.

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