Skip to main content
Glama

FinTech Hodl Base DeFi risk intel

get_yield_premium

Why one opportunity pays more than a reference: the APY gap in percentage points, explained by risk dimensions, incentives and extra dependencies. Useful for judging whether a higher yield is worth its extra risk. The id comes from the free /api/v1/opportunities. Unknown ids answer 404 and invalid arguments 400 before any payment; 503 while data refreshes; charged only for a 200. Price: $0.01 USDC on Base (x402), charged only for a successful answer. In this MCP server, ids come from search_opportunities.

Input Schema

NameRequiredDescriptionDefault
idYesOpportunity id, as returned by the free /api/v1/opportunities route.
benchmarkNoReference opportunity id (optional); by default a low-risk lending market on the same asset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/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 and does so well. It discloses error behavior (404 for unknown ids, 400 for invalid arguments before payment, 503 while data refreshes), payment terms ($0.01 USDC on Base via x402), and that charging occurs only for a successful 200 response.

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 front-loads the core purpose and includes important payment and error details. It is somewhat repetitive: the id source is mentioned twice and the charged-only-on-success condition is stated twice, which slightly weakens conciseness.

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 paid tool with no output schema and no annotations, the description is complete enough to call correctly. It explains what the output represents, where ids come from, error conditions, payment terms, and when the tool is useful.

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 both the required id and optional benchmark parameters. The description reinforces that the id comes from the free opportunities route and that the tool compares against a reference, but it does not add meaningful semantics beyond the schema, such as benchmark default behavior or id format details.

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 states a specific comparison output: the APY gap between an opportunity and a reference, broken down by risk dimensions, incentives, and dependencies. This is clearly distinct from sibling tools such as get_opportunity_card, get_opportunity_score, and get_protocol_risk, and an agent can identify the tool's unique value without opening the schema.

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

Usage Guidelines4/5

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

The description gives a clear use case: judging whether a higher yield is worth its extra risk. It also states that ids come from search_opportunities in this MCP server, providing a prerequisite. However, it does not explicitly name when to avoid this tool or compare it directly with alternative sibling tools.

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.

Resources