Skip to main content
Glama

near_lending_health

Read-onlyIdempotent

How close is this Rhea Lending position to liquidation? — Health factor of an account's Rhea Lending (Burrow) position on NEAR, computed as the contract does — collateral discounted and debt marked up by each asset's volatility ratio — with collateral and debt in USD, how far collateral can fall before liquidation, and GO / HOLD / STOP. Positions from the contract, prices from NEAR Intents. Required input: account. Priced $0.02 per call over x402 on Base; send a prepaid x-credit-token header for unlimited calls, or get 1 free call/day per tool. No wallet or API key required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesNEAR account

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoThe result payload. Shape is service-specific; every field is documented in the tool description.
serviceNoThe service id that answered.
checkedAtNoISO-8601 timestamp of when the underlying reads were taken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, establishing the safe, non-mutating nature. The description adds substantial behavioral context: the exact computation logic (volatility-based discount/markup), data sources (contract positions, NEAR Intents prices), output format (GO/HOLD/STOP), and operational details (cost per call, no wallet/API key needed). This far exceeds what annotations provide, giving the agent a clear picture of how the tool behaves.

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?

The description is dense but well-organized, leading with a question that frames the purpose, then covering computation, outputs, data sources, and requirements in a logical flow. Every sentence adds value — the pricing and no-wallet-needed info are essential for an agent to decide on usage. It's longer than typical but packs no filler.

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?

Given the output schema exists (though not shown), the description doesn't need to detail return structure, but it already mentions GO/HOLD/STOP and the health factor. It covers input, computation, data sources, cost, and prerequisites. For a single-parameter tool with clear scope, nothing essential is missing.

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?

The input schema has a single parameter 'account' with a description 'NEAR account' and 100% schema coverage, so the baseline is 3. The description merely repeats that account is required without adding format details, examples, or edge cases. It doesn't enhance the minimal schema description, so a 3 is appropriate.

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 opens with a direct question that immediately conveys the tool's purpose — assessing proximity to liquidation for a Rhea Lending position. It specifies the resource (Rhea Lending/Burrow on NEAR), the computation method (collateral discounted, debt marked up by volatility), and the outputs (health factor, collateral fall margin, GO/HOLD/STOP). This clearly distinguishes it from other health tools like morpho_health or position_health by naming the exact protocol and chain.

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?

While it doesn't explicitly name alternative tools or state when not to use it, the description is highly specific to Rhea Lending on NEAR, making it obvious that it's intended for that protocol. The required input (account) and pricing details are clearly stated. It lacks an explicit 'use this instead of X' statement, but the context is strong enough for an agent to infer appropriate usage.

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