Skip to main content
Glama

Will this borrow/leverage action breach Morpho liquidation thresholds?

morpho_collateral_guard

Will this borrow/leverage action breach Morpho liquidation thresholds? Simulate user position against declared LLTV, evaluate health factor buffer, and check oracle freshness before execution. Paid per call with x402 on Base: $0.75 USDC. Private: the response is never cached, shared or resold, and it can only describe work that was already public.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marketIdYesMorpho market identifier (32 bytes hex).
loanTokenYesBorrow/loan asset address.
userAddressYesBorrower wallet address.
borrowAmountWeiNoAdditional borrow amount in wei.
collateralTokenYesCollateral asset address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden, and it does add real value: it discloses the paywall ($0.75 USDC per call via x402 on Base), the privacy posture (never cached, shared, or resold), and that the tool simulates rather than executes, implying a read-only, non-mutating operation. It does not state failure modes, latency, or what happens if the market/oracle is stale despite claiming to check freshness.

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 body is compact and the operational steps are front-loaded, but the entire first sentence restates the title verbatim, which is pure duplication and delays the substantive content. Roughly a third of the text is redundant with structured metadata.

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?

There is no output schema, so the description should explain what the agent receives back (a boolean verdict, a health-factor value, an oracle-freshness flag), and it does not. For a decision-support guard tool that is exactly the missing piece; the paywall and privacy details are useful but do not close that gap.

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?

Schema description coverage is 100%, so the schema already documents all five parameters, including the optional borrowAmountWei. The description mentions a 'borrow/leverage action' but adds no syntactic or semantic detail beyond what the schema provides, so the baseline of 3 applies.

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 gives a concrete verb-and-resource: simulate the user position against declared LLTV, evaluate the health-factor buffer, and check oracle freshness. It is protocol-specific (Morpho), which separates it from sibling guards like uniswap_v4_hook_guard or aerodrome_swap_guard. It does not, however, explicitly contrast itself with the many other *_guard tools beyond the protocol name.

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

Usage Guidelines3/5

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

The phrase 'before execution' implies this is a pre-flight check to run prior to a borrow/leverage action, which is reasonable usage guidance. There is no explicit statement of when NOT to use it, nor any named alternative among the sibling guards, so the guidance stays at the implied level.

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.