Skip to main content
Glama

defi_yields

Read-only

$0.01 via x402: current top DeFi pools by chain/TVL, live from DefiLlama.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "defi_yields"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNohow many results to return
chainNoDefault Base
min_tvlNominimum pool TVL in USD
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms
stablecoin_onlyNotrue to return only stablecoin pools

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / min_tvl / description
      Added value: +"minimum pool TVL in USD"
    • addedInput schema / properties / stablecoin_only / description
      Added value: +"true to return only stablecoin pools"
    • addedInput schema / properties / top / description
      Added value: +"how many results to return"
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely non-obvious behavior: the tool is paid ($0.01) through an x402 payment flow, which is a prerequisite an agent must know before calling a nominally read-only tool. It does not discuss rate limits, freshness lag, or result shape, keeping it off a 5.

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?

A single, front-loaded sentence with the price and payment mechanism leading and the resource following; nothing is redundant. It is arguably compressed to the point of omitting when-to-use context, but no sentence is wasted.

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?

With five optional parameters, full schema coverage, and no output schema, the description covers the essentials: what data, from where, ranked how, and at what cost. The one omission is that the two-step payment handshake is only discoverable by reading the x_payment parameter description rather than the top-level description.

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 coverage is 100%, so every parameter already carries its own description, which sets the baseline at 3. The description adds a 'by chain/TVL' framing that hints at ordering and the chain filter's role, but contributes no format, range, or default detail beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (current top DeFi pools), a ranking basis (by TVL), a filtering axis (chain), and a data source (DefiLlama), so an agent knows exactly what it returns. It stops short of explicitly differentiating itself from the DeFi-adjacent siblings such as defi_vs_riskfree_spread, so it is not a 5.

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

Usage Guidelines3/5

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

Usage context is only implied: the tool is for fetching live pool rankings, and the '$0.01 via x402' prefix telegraphs that a payment step is involved. There is no statement of when to prefer this over other DeFi or chain tools, and no exclusions; the only concrete procedural guidance (omit x_payment to get terms) lives in the schema, not the description.

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.