Skip to main content
Glama
justlend

mcp-server-justlend

Official
by justlend

get_moolah_liquidation_quote

Read-onlyIdempotent

Estimate the exact loan token cost to liquidate a position by specifying either the collateral to seize or the borrow shares to repay.

Instructions

Estimate the loan token cost to liquidate a position. Provide either seizedAssets (collateral to take) OR repaidShares (borrow shares to repay), not both. Returns the exact loan token amount needed. Use this before calling moolah_liquidate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoNetwork. Default: mainnet
marketIdYesMarket ID (bytes32 hex)
repaidSharesNoBorrow shares to repay (raw units). Provide this OR seizedAssets.
seizedAssetsNoCollateral amount to seize (raw units). Provide this OR repaidShares.
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds that it 'returns the exact loan token amount needed', which is helpful behavioral context. No contradiction with annotations.

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 concise sentences each adding distinct value: purpose, parameter usage, and pre-execution context. No wasted words, well front-loaded.

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?

Despite no output schema, the description states what is returned. For a simple estimation tool, this is sufficient. It could be improved by mentioning return type or precision, but overall it is adequate.

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 100%, so parameters are documented. The description adds crucial mutual exclusivity guidance ('Provide either...not both'), which goes beyond schema descriptions. This significantly aids correct invocation.

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?

The description clearly states the verb 'estimate' and the resource 'loan token cost'. It distinguishes from the sibling tool 'moolah_liquidate' by noting it should be used before liquidation. The purpose is specific and unambiguous.

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?

The description explicitly tells when to use this tool ('Use this before calling moolah_liquidate') and provides parameter guidance (not both seizedAssets and repaidShares). While it doesn't explicitly list alternatives, the context of being a quote tool before execution is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/justlend/mcp-server-justlend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server