Skip to main content
Glama

lend_withdraw_quote

The unsigned calldata to take lent USDG back: withdraw(usdg, account, account), or redeem(all shares, account, account) for 'all' (exact, no dust). insufficient_balance when the account holds less, insufficient_liquidity when the vault's idle USDG plus the market's unborrowed supply cannot pay it now. You send it with the account's own owner key; this server never sends.

Input Schema

NameRequiredDescriptionDefault
usdgNoall
accountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares the output is unsigned calldata, that the server never submits the transaction, that 'all' is exact with no dust, and what the two error codes mean. It stops short of stating the tool is a pure read/quote operation with no side effects, which would have closed the loop.

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

Conciseness4/5

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

Purpose is front-loaded in the first clause and every sentence adds information (mode selection, error codes, signing). The inline signature notations like withdraw(usdg, account, account) are slightly cryptic and the paragraph runs long, but there is no filler.

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 2-parameter quote tool with no annotations and no output schema, the description covers return form, mode branching, failure modes and signing responsibility. Remaining gaps are minor: the calldata target contract and whether any state is read or changed are left to inference.

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 description coverage is 0%, so the description must compensate, and it largely does: it defines 'all' as the default that triggers redeem(all shares) versus an explicit usdg amount, and frames account as the balance holder whose owner key signs. The account parameter's role is only implied via 'the account holds less' rather than defined outright.

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?

Opens with a specific verb+resource: 'The unsigned calldata to take lent USDG back', and immediately differentiates the two on-chain paths (withdraw(usdg,...) vs redeem(all shares,...)). An agent can tell this apart from lend_deposit_quote or lend_status without opening a schema.

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?

Explains when each mode fires ('all' → redeem, otherwise withdraw) and enumerates the failure conditions (insufficient_balance, insufficient_liquidity) an agent should anticipate. It also states the signing requirement ('You send it with the account's own owner key; this server never sends'), though it never names a sibling such as lend_status for pre-checking balances.

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.