Skip to main content
Glama

Plan Morpho Borrower Protection

morpho_protection

Calculate two alternative protection plans for one Base Morpho borrower under a selected collateral-price shock and target health factor: partial repayment or added collateral. Each plan includes the bounded asset amount, expected stressed health factor, evidence basis, and unsigned ERC-20 approval plus Morpho call templates. Use morpho_position for diagnosis without an action plan, morpho_market_underwrite for market-wide risk, or morpho_preliquidation_replay for a completed historical event. Read-only; no wallet, signing, broadcast, or custody.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesBorrower EVM address on Base mainnet.
executionBufferBpsNoAdditional repayment or collateral amount buffer in basis points for debt accrual and integer rounding; 25 means 0.25%.
targetHealthFactorNoTarget Morpho health factor after the selected collateral-price shock; must be greater than 1 and at most 5.
protectAgainstShockPctNoCollateral-price shock percentage to withstand, from -99 through 0; for example -10 models a 10% price decline.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
chainYes
inputsYes
quotesYes
sourceYes
addressYes
productYes
versionYes
boundaryYes
fetchedAtYes
invariantsYes
positionCountYes
actionableCountYes
latestIndexedAtYes
unverifiedCountYes

TDQS

A4.5/5.0
Behavior4/5

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

Description declares 'Read-only; no wallet signing, broadcasting, or custody' which covers external side effects, but lacks explicit statements about in-memory state mutation, though 'read-only' implies no state changes. No annotation exists to add credibility.

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?

Compact but dense description. It is structured with use-cases, alternatives, read-only note, template list. Not wordy, but rich.

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 output schema exists, and the description includes plan components (bounded asset amount, stressed health, evidence basis, ERC-20 approval plus Morpho stack). Context is given through sibling tool references and output/input schema, sufficient for a read-only calculation tool.

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?

Parameter descriptions in the schema are substantive: address pattern, basis-point buffer meaning with default and range, target health with exclusive min and max, and collateral shock range with -10 example. No parameter details are in the description, but schema coverage is 100% and the encoding is clear.

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+resource ('Calculate two alternative protection plans for one Base Morpho borrower under a selected collateral-price shock and target health') and explicitly differentiates from sibling tools by naming the alternatives (morpho_position for diagnosis, morpho_market_underwrite for market-wide risk, morpho_preliquidation_replay for historical events).

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?

Provides explicit when-to-use guidance ('Use `morpho_position` for a diagnosis without a plan, `morpho_market_underwrite` for market-wide risk, or `morpho_preliquidation_replay` for a completed historical event') and states read-only constraints, wallet signing, broadcasting, custody.

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.

TDQS

A4.1/5.0
Disambiguation3/5

Several tools cluster around the same domain: there are multiple audit tools, multiple preflight tools, multiple receipt/settlement tools, and two wallet-policy-conformance tools. The descriptions are carefully distinguished with 'use X instead' notes, but an agent would still need to read closely to separate `agent_discoverability_audit` from `agent_surface_budget_audit` and `seller_integrity_audit` from `payment_offer_preflight`.

Naming Consistency4/5

Most names follow a readable, snake_case pattern with a domain prefix or action stem, such as `morpho_position`, `transaction_receipt`, `wallet_enrich`, and `contract_qualified_search`. The convention is not fully uniform—`read`, `extract`, `scan`, and `schemaforge` are standalone verbs or compounds, and `agent_surface_budget_audit` is a much longer construction—but the style is consistent enough to navigate.

Tool Count3/5

22 tools is at the heavy end of a data-gateway scope, especially since they spread across x402 discovery, Morpho lending, web domain audits, wallet policy, and blockchain receipts. Each tool explains its existence, but the set feels broader than one central data-gateway concern.

Completeness4/5

The tools form a coherent read-only x402/agent-commerce lifecycle: catalog search, discoverability, surface/seller integrity, payment offer preflight, settlement proof, and transaction receipt verification. There are some peripheral tools that do not directly serve x402, and no payment or execution action exists, but the read-only audit gate is intentionally complete and lacks dead ends.