Skip to main content
Glama

morpho_get_rate

Retrieve current borrow rate, supply rate, utilization, and liquidity for any Morpho market using its unique key and chain. Use these live metrics to calculate looping profitability.

Instructions

Get the current borrow rate and market state for a specific Morpho market. Provide the market's unique key (hex ID) and chain. Returns live borrow APY, supply APY, utilization, and liquidity — the data needed to calculate looping profitability. Use morpho_list_markets to discover market keys first.

Important: Rates are live as-of-query and change continuously based on utilization. When planning a looping strategy, verify rates are still favorable before executing. A profitable spread (fixed yield > borrow rate) can turn negative if borrow rates spike.

Use spectra_get_looping_strategy with these rates to calculate leveraged yield projections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesThe blockchain network where the Morpho market lives
market_keyYesThe Morpho market unique key (0x + 64 hex chars). Use morpho_list_markets to find it.
Behavior4/5

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

Without annotations, the description effectively discloses that rates are live, dynamic, and can change unpredictably. It explains the return values (borrow APY, supply APY, utilization, liquidity) and implies a read-only operation. However, it does not cover error handling or requirements like authentication, slightly reducing transparency.

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?

The description is structured into three concise paragraphs, each serving a purpose: main action, behavior note, and integration advice. It is front-loaded with the core functionality, and no superfluous sentences are present. Slightly longer than minimal but justified.

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, the description fully explains the return data (borrow APY, supply APY, utilization, liquidity) and its purpose in looping strategies. It also provides pre-requisites (morpho_list_markets) and post-steps (spectra_get_looping_strategy), making it self-contained for the intended use case.

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%, so baseline is 3. The description adds value by explaining the market_key is a hex ID to be obtained from morpho_list_markets and by describing the output fields, which are not in the schema. This goes beyond simple repetition.

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 it gets the borrow rate and market state for a specific Morpho market, distinguishing it from sibling tools like morpho_list_markets and morpho_get_positions. It also explicitly guides users on prerequisites and related tools.

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?

The description provides explicit when-to-use guidance: for retrieving rates for looping profitability. It instructs users to first use morpho_list_markets to discover market keys, warns about rate volatility, and directs to spectra_get_looping_strategy for projections, offering clear alternatives and context.

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