Skip to main content
Glama

Afterbook

Check loan health

check_loan_health

A wallet's Aave V4 and Morpho stock-token loans on Base: health at the lending oracle and at Aero's onchain price, which keeps trading while the cash market is shut (healthIfNextOpenAtBase: the loan's health if the next open matches Base's price, e.g. over a weekend), how far the collateral could fall before liquidation, whether it is under the threshold, and for an Aave loan links that open Afterbook's Aave panel with the repay or the added collateral worked out from the connected wallet's own loan, for the person to check and sign. Reads public positions only; signs nothing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "wallet": "<wallet>"
    },
    "name": "check_loan_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesThe borrower address.
thresholdNoHealth to flag loans under (default 1.2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full disclosure burden. It clearly states 'Reads public positions only; signs nothing' and explains that linked Aave actions are for the person to check and sign, which is valuable read-only and safety context. It does not cover rate limits, authentication, or pagination, but for a public read it adds meaningful behavior beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is a single dense run-on sentence with multiple parentheticals and clauses, so it is not front-loaded. Every clause is relevant, but the structure could be split into shorter statements or bullets for readability.

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?

The tool spans two protocols and multiple health metrics, and the description explains those outputs and the weekend healthIfNextOpenAtBase concept. With no output schema, it still gives the agent enough to know what is returned and that the operation is read-only, though it lacks a structured return description.

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 schema already documents both parameters at 100% coverage, including the wallet pattern and threshold default. The description's mention of 'whether it is under the threshold' adds only a little semantic context and does not go beyond the schema baseline.

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 opens with 'A wallet's Aave V4 and Morpho stock-token loans on Base' and lists health, liquidation distance, threshold status, and Aave links, so the verb and resource are clear. It does not explicitly distinguish this tool from siblings such as get_quote or make_rescue_link, leaving purpose clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no sibling tool is named as an alternative. The phrase 'for the person to check and sign' implies a pre-signing check, but the agent must infer that context.

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.