Skip to main content
Glama
aibtcdev
by aibtcdev

zest_repay

Repay borrowed assets plus accrued interest to Zest Protocol markets using an asset symbol or contract ID, optionally on behalf of another address.

Instructions

Repay borrowed assets to Zest Protocol (v0-4-market).

Repays borrowed assets plus accrued interest. You can use the asset symbol (e.g., 'USDC', 'sBTC') or full contract ID.

Note: Zest Protocol is only available on mainnet.

Tip: call earning_opportunities to see how to put your assets to work.

Input Schema

NameRequiredDescriptionDefault
assetYesAsset symbol (e.g., 'sBTC', 'USDC') or full contract ID
amountYesAmount to repay (in smallest units)
onBehalfOfNoOptional: repay on behalf of another address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that repayment includes accrued interest and that the protocol is mainnet-only — non-obvious facts an agent would otherwise have to discover on-chain. However, it never states that this is a signed, gas-paying transaction requiring an unlocked wallet and an existing borrow position, nor whether token approval/allowance is needed first — significant omissions for a funds-moving call.

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?

Front-loaded with the action, then mechanics, then the mainnet caveat. Four short lines, each carrying information. The closing tip is a mild tangent to repayment but is a cheap and useful cross-sell pointer.

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?

For a no-annotation, no-output-schema mutation on a lending protocol, the description covers the protocol constraint and interest behavior but leaves out the wallet/approval prerequisites and what a successful repayment yields. Adequate to call, thin on what to expect.

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%, so all three parameters (asset, amount, onBehalfOf) are already documented in structured data. The description restates the symbol-or-contract-ID option for asset but adds no syntax, formatting, or unit detail beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Repay borrowed assets to Zest Protocol') plus the market version, and the collateral/repay distinction is immediately separable from siblings zest_borrow, zest_supply, and zest_withdraw. An agent can route here without opening any other 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?

Gives real preconditions: Zest is mainnet-only, and the asset may be a symbol or full contract ID. It also cross-references earning_opportunities for the post-repay path. What's missing is the counterpart direction (when to use zest_borrow vs zest_repay) and any prerequisite that a borrow position must already exist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools