Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_vault_analytics

Fetch detailed on-chain vault positions, including token balances, USD values, APY/APR by protocol, aggregate stats, and lending health factors for risk checks.

Instructions

Get detailed vault position breakdown with per-token balances, USD values, APY/APR by protocol (Aave, Compound, Morpho, Pendle, idle tokens), aggregate stats (weighted APY, TVL breakdown, net return), and — when the vault has lending positions — a lending block with per-protocol health metrics: Aave V3 account-level healthFactor + USD totals + LT/LTV; Compound V3 per-market healthFactor + isLiquidatable + collateral breakdown; Morpho per-market healthFactor + collateral/borrow USD. Reads directly from on-chain — always up to date. SAFETY: when leveraging, never enter if any healthFactor < 2.0; deleverage if any healthFactor < 1.3.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vaultAddress": "<vaultAddress>"
    },
    "name": "factor_vault_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultAddressYesThe vault contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are supplied, so the description must carry the behavioral burden, and it does: it discloses the read-only on-chain nature ("Reads directly from on-chain — always up to date"), the exact shape of the lending block per protocol, and safety thresholds for interpreting healthFactor. It does not cover auth requirements, rate limits, or behavior for vaults with unsupported protocols or no positions.

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-loaded with the core purpose and organized by return section (tokens, aggregate stats, lending), with the safety advice isolated at the end. It is dense and somewhat run-on — a bulleted breakdown of return sections would be easier to scan — but each clause carries information an agent needs.

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?

With no output schema and no annotations, the description must explain the return payload, and it does so thoroughly for both the normal and lending-position cases, including freshness guarantees. Remaining gaps (error behavior, unsupported protocols, response format beyond field names) are minor for a single-parameter read tool.

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?

Only one parameter with 100% schema coverage, so the schema already documents vaultAddress. The description adds contextual meaning by implying the address must be a vault that may hold lending positions, but it contributes no validation or format detail beyond what the schema states. Baseline 3 is appropriate.

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 and resource ("Get detailed vault position breakdown") and enumerates exactly what is returned: per-token balances, USD values, APY/APR by protocol, aggregate stats, and a lending health block. An agent can distinguish this analytics/read tool from the vault-management siblings without opening a schema.

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?

Provides behavioral decision guidance (the leveraging/deleveraging health-factor thresholds) and states the data source is on-chain, but never names an alternative such as factor_get_vault_info or explains when this deep analytics call is preferable to the lighter vault-info tool. Usage is implied rather than routed.

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

Deploy Server

Other Tools