Skip to main content
Glama
justlend

mcp-server-justlend

Official
by justlend

check_allowance

Read-onlyIdempotent

Verify TRC20 token approval for a JustLend jToken market. Returns human-readable allowance to compare with supply or repay amount, indicating if sufficient.

Instructions

Check if the underlying TRC20 token has been approved for a jToken market. Must be approved before supply() or repay() for TRC20 markets. Not needed for jTRX. The returned 'allowance' is in human-readable token units (e.g. '1' means 1 USDT, not 1 raw unit). Compare it directly with the amount the user wants to supply/repay. 'allowanceUnit' indicates the token symbol.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNoAmount to check sufficiency against (human-readable, e.g. '0.5'). If provided, returns whether allowance is sufficient.
marketYesjToken symbol (e.g. 'jUSDT')
addressNoAddress to check. Default: configured wallet
networkNoNetwork. Default: mainnet
Behavior4/5

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

Annotations already indicate read-only, safe behavior. Description adds value by explaining returned allowance is in human-readable units and that 'allowanceUnit' indicates token symbol. No contradictions. Adds useful behavioral context beyond 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?

Five sentences, front-loaded with main purpose. Every sentence provides essential information without redundancy. Highly efficient and structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite lacking output schema, description explains return values and their meaning (allowance in human-readable, allowanceUnit). Covers when to use, behavior, and parameter usage. Fully adequate for a read-only check tool with comprehensive annotations and schema.

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. Description adds meaning by clarifying that 'amount' parameter is human-readable and that returned fields like 'allowance' are in human-readable units. Adds context on how to interpret results.

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?

Description clearly states it checks TRC20 token approval for a jToken market, specifies it's needed before supply/repay for TRC20 markets and not for jTRX. Provides details on return format. Though doesn't explicitly differentiate from sibling tools, the unique purpose is evident.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly describes when to use (before supply/repay for TRC20 markets) and when not needed (jTRX). Advises to compare returned allowance directly with amount. Provides clear context for when this tool is appropriate.

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