Skip to main content
Glama

Afterbook

Make a loan rescue link

make_rescue_link

For a wallet's Aave V4 stock loan on Base: a link that opens Afterbook's Aave panel with its rescue planner set to repay USDC or add collateral, at the price fall implied by Base's price now and a target health above your threshold. The link carries no amount and no wallet: the panel fills the Repay or Add field from the loan of the wallet the person connects, and they check it and sign. Returns null url with a reason for a wallet with no Aave loan (Morpho loans have no in-app panel). 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>",
      "action": "<action>"
    },
    "name": "make_rescue_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesrepay = pay back USDC; add = post more of a stock already in the wallet as collateral.
walletYesThe borrower address.
thresholdNoThe health line to get back above (default 1.2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: it discloses that the link carries no amount or wallet, that the panel fills the field from the connected wallet, that the user must check and sign, that a missing Aave loan yields a null url plus reason, and that only public positions are read and nothing is signed.

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

Conciseness4/5

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

Dense but front-loaded: the first clause names the resource and scope, then behavior, then the return edge case. Sentences are long and slightly run-on, but every clause carries load-bearing information about link contents, user flow, or failure mode.

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?

No output schema exists, and the description compensates by describing the returned url and the null-plus-reason failure case. For a three-parameter link builder with no annotations, nothing an agent needs to invoke it correctly is missing.

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 the baseline is 3, but the description adds real meaning: it explains why wallet is not baked into the link, that threshold is a target health tied to the price fall implied by Base's price now, and how repay vs add correspond to the panel's fields. That goes beyond the schema's field-by-field definitions.

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?

States a specific verb and resource ('make ... a link') plus the exact scope: a wallet's Aave V4 stock loan on Base, with the rescue planner preconfigured to repay USDC or add collateral. It also carves out a boundary the siblings cannot cover ('Morpho loans have no in-app panel'), so an agent can tell when a different route is needed.

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 gives clear context for use — a wallet holding an Aave V4 loan that needs rescuing — and explicitly excludes Morpho loans. It stops short of routing against siblings such as check_loan_health, but the scenario is specific enough that no inference about alternatives is needed.

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.