Skip to main content
Glama

Prepare repay

prepare_repay
Read-onlyIdempotent

Burn synth from the wallet to reduce debt: repay(tokens). "all" repays the whole debt. Returns UNSIGNED transaction data (to, data, value, gas) for the user's own wallet; simulated against the latest block first and refused if it would revert. Never signs or sends.

Input Schema

NameRequiredDescriptionDefault
ownerYesThe user's wallet address (0x...). Used to read the position and as the simulated sender; nothing is signed.
marketYesMarket address (0x...) or symbol, e.g. NO-NVDA
tokensYesSynth to repay as a decimal string, or "all"

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 that the result is an UNSIGNED transaction (to, data, value, gas), that it is simulated against the latest block and refused if it would revert, and that it never signs or sends. That last clause crucially reconciles readOnlyHint=true with a transaction-producing tool.

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 tight sentences, no filler, with the core action and the return contract front-loaded and the safety semantics immediately after. Every clause carries information an agent needs.

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 prep tool with no output schema, the description covers the return shape, simulation/revert behavior, and non-custodial guarantee. What it omits is whether prior synth approval or balance preconditions matter and which sibling to choose for delegated repayment.

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 baseline is 3; the description still adds value by explaining what the 'all' token value means behaviorally and by tying the tokens argument to the repay(tokens) call. Owner/market semantics are left entirely to 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 concrete verb and resource: burn synth from the wallet to reduce debt, exposing the underlying call repay(tokens). The phrase 'for the user's own wallet' implicitly separates it from the prepare_mandate_*_repay siblings, though it never names them explicitly.

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 'all' special value is explained behaviorally ('repays the whole debt'), which is useful usage guidance. However, there is no explicit when-to-use vs. when-not guidance and no routing to the closest alternatives (prepare_mandate_repay, prepare_mandate_owner_repay) — a real gap given 29 siblings.

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