Skip to main content
Glama

gage

Prepare: Repay a loan

gage_prepare_reclaim

Prepare repaying a running loan in full, in the asset it is paid in, and taking the collateral back, before its term ends. Returns the next unsigned transaction and a review link; never signs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
engineNoThe engine; the current core when omitted, the loan's own core for a loan in a lend asset
loanIdYes
walletYes

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 a non-read-only, non-idempotent, non-destructive profile, the description adds real value by stating it returns the next unsigned transaction and a review link and 'never signs' — telling the agent the actual effect is a prepared payload rather than an executed repayment.

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?

Two tight sentences, front-loaded with the action and scope, followed by the return/signing behavior. No filler.

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?

No output schema exists, but the description covers the return value (unsigned transaction plus review link). It leaves gaps on parameter semantics and prerequisites, and does not clarify how 'in full' interacts with the engine/loan-asset distinction hinted at in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (only 'engine' is described), so loanId and wallet are undocumented. The description explains the loan/collateral concept but gives no parameter-level meaning, format, or note on when engine defaults to the current core.

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 specific verb and resource: prepare full repayment of a running loan, in the payment asset, reclaiming collateral before term end. This is clearly distinguishable from siblings like gage_prepare_borrow or gage_prepare_cancel, though it never names an alternative 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 phrase 'before its term ends' and 'in full' imply the timing and scope of use, but there is no explicit when-to-use/when-not guidance and no routing to sibling prepare_* tools for related operations.

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