Skip to main content
Glama

morpho_monitor_risk

Monitor liquidation risk across Morpho positions. Computes health factor, liquidation price, distance-to-liquidation, and flags positions approaching danger zones.

Instructions

Monitor liquidation risk across a curator's Morpho positions.

Computes health factor, liquidation price, distance-to-liquidation, and borrow rate for every borrowing position. Flags positions approaching danger zones.

Morpho has NO close factor — when health factor reaches 1.0, the ENTIRE position can be liquidated in one transaction. This makes distance-to-liquidation critical: a 14% distance means a 14% collateral price drop wipes the position completely.

Alert levels scaffold attention, not action — multiple signals may disagree:

  • ok: position healthy, no immediate concern

  • watch: distance below threshold or rate elevated — worth monitoring

  • warning: health factor < 1.3 or distance dangerously low

  • critical: health factor < 1.1 or distance < 5% — immediate attention needed

Use morpho_get_positions for raw position data without risk analysis. Use morpho_get_history to assess borrow rate stability over time. Use spectra_get_looping_strategy to model deleverage scenarios.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesCurator wallet address to monitor (0x...)
chainNoRestrict to a single chain. Omit to scan all Morpho-capable chains.
alert_threshold_pctNoWarn when distance-to-liquidation drops below this % (default 15)
Behavior5/5

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

With no annotations, the description fully carries the burden of behavioral disclosure. It explains the no-close-factor quirk, defines alert levels with thresholds, and notes that multiple signals may disagree. This is highly transparent.

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 well-structured, starting with the core purpose, then key metrics, alert levels, and sibling tool usage. Every sentence adds value, with no redundancy or fluff.

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 complexity of risk monitoring and no output schema, the description thoroughly covers inputs, output interpretation (alert levels), behavioral quirks, and alternatives. No critical gaps remain.

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 description coverage is 100%, so baseline is 3. The description adds context by explaining the significance of distance-to-liquidation and the default threshold behavior, going slightly beyond the schema's parameter descriptions.

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 clearly states the tool monitors liquidation risk across a curator's Morpho positions, computing health factor, liquidation price, distance-to-liquidation, and borrow rate. It distinguishes from siblings like morpho_get_positions and morpho_get_history.

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?

Explicit guidance is provided on when to use this tool vs alternatives: use morpho_get_positions for raw data, morpho_get_history for rate stability, and spectra_get_looping_strategy for deleverage scenarios. This helps the agent choose correctly.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Finanzgoblin/spectra-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server