Skip to main content
Glama
mutexa-labs

@mutexa/mcp

Official
by mutexa-labs

Plan a loan ladder

plan_loans
Read-onlyIdempotent

Split a single Aave V3 loan into staggered-LTV loans to form a liquidation price band, using live reserve data or offline values; reports extra collateral and max-LTV status.

Instructions

Split one Aave V3 loan (one collateral, one debt, standard mode) into loans with staggered LTV so their liquidation prices form a band. Give collateralSymbol to use the live reserve (LTV, liquidation threshold, oracle price; needs MUTEXA_ETH_RPC), or ltv, liqThreshold and priceUsd to plan offline. Reports the band, extra collateral and whether the single loan is above max LTV.

Input Schema

NameRequiredDescriptionDefault
ltvNoMax LTV for new borrows, 0..1 (offline mode)
bandYesLTV stagger across loans, 0..1
seedNoSeed for the size variation (default 1)
loansYesNumber of loans
debtUsdYesDebt in USD
priceUsdNoCollateral price in USD (offline mode)
placementYes
sizeJitterNoSize variation across loans, 0..1 (default 0)
liqThresholdNoLiquidation threshold, 0..1 (offline mode)
collateralAmountYesCollateral in tokens
collateralSymbolNoAave V3 Ethereum reserve symbol, for example WETH

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world; the description adds the piece annotations cannot convey — that live mode requires the MUTEXA_ETH_RPC environment variable and fails otherwise. It also previews what the call reports (the band, extra collateral, and whether the single loan already exceeds max LTV), which reduces uncertainty about running it.

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?

Two sentences, no filler: the first defines the operation and output shape, the second gives the mode-selection rule and prerequisites. Mode selection is front-loaded in the second sentence where an agent will look for it before reading the schema.

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

Completeness3/5

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

For an 11-parameter, no-output-schema tool the description covers the essentials (what it does, required inputs by mode, what it reports) but leaves the required 'placement' enum unexplained — an agent cannot know what 'around' vs 'beyond' does — and says nothing about the sibling plan_ladder's overlapping scope.

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 91%, so the baseline would be 3; the description earns above that by grouping parameters into mutually exclusive modes (live-reserve vs offline), which the flat schema cannot express. The gap is the required placement enum (around/beyond), which is left entirely undefined in both schema and description, and seed/sizeJitter are likewise only schema-documented.

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?

States a concrete transformation on a specific resource: splitting one Aave V3 loan (one collateral, one debt, standard mode) into staggered-LTV loans whose liquidation prices form a band. That is far more than a restatement of the name. It does not, however, distinguish itself from the sibling plan_ladder, which the title ('Plan a loan ladder') makes easy to confuse with this tool.

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?

Explicitly splits usage into two modes and names the parameters that select each: collateralSymbol for live reserve data (with the MUTEXA_ETH_RPC prerequisite called out) versus ltv/liqThreshold/priceUsd for offline planning. No guidance is given on when to prefer this tool over the sibling plan_ladder or liquidation_map, so it falls short of a 5.

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