Skip to main content
Glama

morpho_get_positions

Query a wallet's Morpho positions across markets and vaults to assess collateral, borrow, supply, vault deposits, health factors, and detect loopers or low health.

Instructions

Query a user's Morpho positions across all markets and vaults on a chain. Returns collateral, borrows, supply (with USD values), vault deposits, health factors, and position signals (looper detection, low health warnings).

Useful for understanding what a wallet holds on Morpho: is it a looper? A supplier? A vault depositor? The position shape reveals the strategy.

Protocol context:

  • Market positions show collateral, borrows, and supply separately. A position with both collateral and borrows is likely a looper (leveraged strategy).

  • Health factor = (collateralUsd * LLTV) / borrowUsd — approximation using USD values. Health < 1.0 means liquidatable. Health < 1.3 means dangerously close.

  • Vault positions show shares deposited in curated vaults (passive lending).

  • Net value = supply + collateral + vaults - borrows.

Scans all Morpho chains by default (mainnet, base, arbitrum). Specify chain to narrow.

Use morpho_list_markets to find available PT markets. Use morpho_get_rate for live borrow rate on a specific market. Use spectra_get_portfolio for Spectra protocol positions (PT, YT, LP).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe wallet address (0x...)
chainNoSpecific chain to query. Omit to scan all Morpho chains.
Behavior5/5

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

With no annotations, the description fully discloses behavior: returns specific position fields, explains health factor calculation, net value formula, and default multi-chain scan. Provides protocol context (looper detection, health warnings) that goes beyond a simple read operation.

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?

Well-structured with front-loaded purpose and clear sections. Some redundancy (e.g., 'Useful for understanding' and later 'The position shape reveals the strategy'). Could be slightly more concise, but every sentence adds value.

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 no output schema, description sufficiently explains return structure (collateral, borrows, supply, vaults, health factors). Covers protocol context and cross-chain behavior. References sibling tools for deeper insights. Complete for a data query 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?

Schema coverage is 100%; both parameters have descriptions. The description adds context: chain enum values are listed, default behavior (scan all chains) is clarified, and the address regex is implied. Adds value beyond schema by explaining the purpose of each parameter.

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?

Description clearly states it queries a user's Morpho positions across markets and vaults, listing returned data (collateral, borrows, supply, vault deposits, health factors, signals). Distinguishes from siblings like morpho_list_markets, morpho_get_rate, and spectra_get_portfolio.

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?

Explicitly explains when to use this tool (understanding wallet holdings) and cross-references siblings. Provides protocol context including health factor formula and chain scanning behavior. Tells agent to specify chain to narrow scope, and points to morpho_list_markets for PT markets.

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