Skip to main content
Glama

Philidor DeFi Vault Risk Analytics

check_loop_venue

Underwrite a collateral/debt loop on ONE lending market: score, tier, utilization, borrow APR, deposit status, and recent incidents for both reserves. Does not compute health factor and does not prepare txs. Call this before a protocol MCP preview_action / prepare_action. If you do not have a market id, call list_markets first (Aave V4: protocol=aave, version=v4). Examples: aave-v4-1-main, aave-v4-10-etherfi-cash, aave-v4-1-hub-global-dollar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
debtYesDebt asset symbol you will borrow (e.g. USDC, USDT, GHO).
marketIdYesMarket id from list_markets. Spoke example: aave-v4-1-main. Hub example: aave-v4-1-hub-global-dollar.
collateralYesCollateral asset symbol you will post (e.g. weETH, WETH, cbBTC).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses meaningful boundaries (analysis-only, no health factor computation, no tx preparation) and names the upstream dependency, but omits details such as permissions/auth requirements, rate limits, or behavior on an invalid market id.

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?

Front-loads purpose and scope, then constraints, then prerequisites and examples. Dense but every sentence earns its place; the appended example list is slightly overloaded against the schema examples already present.

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?

For a 3-param read/analysis tool with no output schema, the description covers purpose, returned fields, exclusions, workflow position, and the upstream call needed to obtain a market id. An agent has everything needed to select and invoke it correctly.

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 marketId, collateral, and debt are already well documented in the schema, including spoke/hub examples. The description reinforces this with additional market-id examples and the Aave V4 protocol/version hint, but adds only marginal semantics beyond the schema, so the baseline 3 applies.

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 (underwrite) and resource (a collateral/debt loop on ONE lending market) and enumerates exactly what the tool returns: score, tier, utilization, borrow APR, deposit status, and recent incidents for both reserves. This differentiates it from generic siblings like get_market or get_market_overview.

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?

Gives explicit when-to-use ('Call this before a protocol MCP preview_action / prepare_action'), an explicit prerequisite path ('If you do not have a market id, call list_markets first'), and explicit exclusions ('Does not compute health factor and does not prepare txs'). The agent knows both when to call it and when not to.

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.