Skip to main content
Glama

PreFlyte — DeFi Financial Intelligence for AI Agents

assess_opportunity

Assess the best DeFi opportunity for a given capital amount and strategy.

This is the "cold start" tool — call it first to understand where your
capital is viable before making any moves. One call gives you chain
viability, ranked opportunities, gas impact, and an actionable recommendation.

Args:
    api_key: Your PreFlyte API key (required).
    asset: Token symbol, e.g. "USDC", "WETH".
    action: "supply" or "borrow".
    position_size_usd: Capital amount in USD.
    strategy: One of "yield_farming", "active_trading", "idle_capital".
    chain: "ethereum", "arbitrum", or "any" (default: "any").
    trades_per_day: For active_trading strategy only. Default 10.

Returns:
    JSON with chain viability, ranked opportunities, gas analysis,
    break-even calculations, and an actionable recommendation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYes
chainNoany
actionYes
api_keyYes
strategyYes
trades_per_dayNo
position_size_usdYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It explains that the tool returns an assessment and recommendation, and it requires an api_key, but it never explicitly states that the tool is read-only or that it does not execute on-chain transactions. This is important context for a DeFi tool, though the word 'assess' and phrase 'before making any moves' do imply a non-executive advisory role.

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 well-structured: a concise purpose statement, usage guidance, a clear args list, and a return-value summary. It is somewhat longer than necessary because the args list repeats parameter names already in the schema, but each line adds valuable semantic detail. Overall, the organization is logical and front-loaded, earning a slightly above-average score.

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?

For a tool with 7 parameters, no output schema, and no annotations, the description covers the essential aspects: it explains parameters thoroughly, describes the return value structure (chain viability, ranked opportunities, gas analysis, break-even calculations, and recommendation), and states when to use it. It lacks details on error behavior or data freshness, but these are not critical for understanding the tool's primary function.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides no per-property descriptions (0% coverage), but the description compensates fully by explaining each parameter with concrete examples and constraints. It gives allowed values for action ('supply' or 'borrow'), strategy ('yield_farming', 'active_trading', 'idle_capital'), chain ('ethereum', 'arbitrum', 'any'), and clarifies that trades_per_day applies only to 'active_trading' with a default of 10. This adds meaning far beyond the schema.

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 the tool's purpose: 'Assess the best DeFi opportunity for a given capital amount and strategy.' It also frames it as the 'cold start' tool, distinguishing it from more granular sibling tools like get_ranking or gas_timing. The mention of delivering chain viability, ranked opportunities, gas impact, and a recommendation makes its role specific and immediately understandable.

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 explicitly says to 'call it first' and frames it as the entry point before making moves, which provides clear when-to-use guidance. However, it does not mention specific when-not-to-use scenarios or name alternative tools for particular follow-up checks, so it falls short of full exclusionary guidance.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool serves a distinct function: assess_opportunity is a holistic decision-maker, check_entry_viability and check_pool_viability target different domains (lending vs. DEX), and estimate_net_position provides a projection unlike get_market_snapshot's current state. Even overlapping tools like get_ranking and get_returns are differentiated by their output format and filtering.

Naming Consistency4/5

Most tools follow a verb_noun pattern (assess_opportunity, estimate_net_position, verify_claim) or verb_phrase (check_entry_viability, get_market_snapshot). The outlier is gas_timing, which uses a noun_gerund structure instead of starting with a verb, breaking the otherwise consistent convention.

Tool Count5/5

With 9 tools, the server is well-scoped for a DeFi intelligence platform. Each tool covers a distinct aspect—opportunity assessment, viability checks, projections, market snapshots, historical data, gas guidance, and claim verification—without unnecessary redundancy or bloat.

Completeness4/5

The tool surface covers core decision workflows: assess, check, estimate, snapshot, ranking, history, gas, and verification. Minor gaps include lack of a tool to list supported assets/protocols/chains and no swap projection tool to complement check_pool_viability, but agents can work around these.

Resources