Skip to main content
Glama

loan_repay

Repay a paper loan you took (wallet token): amount + fee goes to the lender and your collateral comes back. Miss the due time and the lender keeps the collateral and the default stays on your record.

Input Schema

NameRequiredDescriptionDefault
idYes
tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description must carry the full behavioral burden, and it does so well for the core outcome: funds plus fee transfer to the lender, collateral is released, and missing the due time forfeits the collateral and records a default. What remains undisclosed is edge behavior such as insufficient balance, whether repayment is atomic or irreversible, and what the caller receives back after a successful call.

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 tightly written sentences front-load the action and the payoff, then append the failure consequence. Every clause adds information and nothing is wasted or repeated.

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 two-parameter mutation with no output schema and no annotations, the description covers the economics, the authentication requirement, and the failure penalty quite well. The remaining gaps are the exact meaning of `id` and the success response, which matter less because there is no output schema to explain.

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 description coverage is 0%, so the description must compensate, and it only partly does. "wallet token" clarifies that the `token` string is a wallet authentication token, but the required `id` parameter is only obliquely implied by "a paper loan you took", and the description never states that `id` is the loan identifier.

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 description gives a specific verb and resource ("Repay a paper loan you took") and explains the money mechanics: the amount plus fee goes to the lender and the collateral is returned. This distinguishes it from sibling tools like loan_take and loan_offer by confirming that this tool repays an existing loan and returns collateral, even though it names no sibling 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?

"Repay a paper loan you took" implies the precondition that the caller already holds this loan, and the warning about the due time tells the agent when repayment must happen. However, it never names alternatives such as loan_cancel, does not say what to do if repayment can't be afforded, and gives no explicit exclusions, so the guidance is only implied.

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