Skip to main content
Glama

Validate Opportunity

validate_opportunity
Read-only

Return a decision-ready yield-opportunity verdict before capital is deployed. The result branches to sustainable, caution, unsustainable, or insufficient_data and gives the calling agent the evidence needed to proceed, pause, or reject the opportunity.

Use when: Delegate this check before deploying capital into a DeFi yield pool or staking opportunity when the caller needs an independent sustainability and liquidity decision.

Limitations: Heuristic economic assessment based on DeFiLlama analytics and CoinGecko pricing. Does not audit smart contract bytecode, protocol governance, or admin key security.

Alternatives: get_yield_rates, get_protocol_tvl, get_lending_rates, assess_counterparty_risk

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pool_idYesDeFiLlama yield pool UUID (e.g. '747c1d2a-c668-4682-b9f9-296708a3dd90').

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ofYes
chainNo
symbolNo
pool_idYes
projectNo
verdictYes
provenanceYes
risk_factorsNo
data_completeNo
yield_summaryNo
partial_errorsNo
liquidity_summaryNo
sustainability_reasonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses that this is a heuristic economic assessment based on DeFiLlama and CoinGecko, and explicitly lists what it does not audit. It also tells the agent what kind of output to expect (a branched verdict with supporting evidence), which is rich behavioral context that the annotation alone does not provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with front-loaded purpose, followed by Use when, Limitations, and Alternatives. Every sentence adds distinct value, and the section headers make the information easy to scan for an agent. There is no repetition of schema or annotation details.

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 one parameter, a fully descriptive schema, an output schema, and readOnlyHint annotation, the description supplies the remaining operational context: when to delegate the check, what the verdict branches are, what evidence sources back it, and what it cannot guarantee. Nothing essential is missing for an agent to decide whether and how to invoke this 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?

The input schema already fully describes pool_id as a DeFiLlama yield pool UUID with an example, and schema_description_coverage is 100%. The description adds some contextual framing that pool_id refers to a DeFi yield pool or staking opportunity, but it does not substantially extend the parameter meaning beyond the schema, so the baseline score of 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?

The description opens with a specific verb and outcome ('Return a decision-ready yield-opportunity verdict') and names the exact decision branches: sustainable, caution, unsustainable, or insufficient_data. It clearly distinguishes this from sibling data-fetching tools like get_yield_rates and get_protocol_tvl by framing it as an independent decision check rather than a raw data lookup.

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 'Use when' section gives an explicit trigger: before deploying capital when an independent sustainability and liquidity decision is needed. The 'Alternatives' section names the relevant sibling tools, giving the agent concrete routing options, and the 'Limitations' section implicitly tells the agent what this tool should not be used for, such as auditing smart contract bytecode or governance.

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