Skip to main content
Glama
BlockRunAI

BlockRun MCP

Official
by BlockRunAI

blockrun_defi

Read-only

Fetch DeFi protocol TVL, chain TVL, yield APY, and token prices from DefiLlama. Pay per call; no API key required.

Instructions

DeFi fundamentals via DefiLlama — protocol TVL, chain TVL, yield pools (APY), token prices. Pays per call in USDC, no API key.

Paths (GET only; price = base + the gateway's flat tx fee, $0.001 today — we reserve $0.002; the 402 header carries the exact charge):

  • protocols ($0.005 base) — all DeFi protocols ranked by TVL

  • protocol/{slug} ($0.005 base) — one protocol's TVL history + chain breakdown, e.g. protocol/aave-v3

  • chains ($0.005 base) — TVL by chain

  • yields ($0.005 base) — yield pools with APY + TVL (large; filter client-side)

  • prices/{coins} ($0.001 base) — token prices, coins like 'base:0x833589...,coingecko:ethereum'

Examples: blockrun_defi({ path: "protocol/uniswap-v3" }) blockrun_defi({ path: "prices/coingecko:bitcoin,coingecko:ethereum" }) blockrun_defi({ path: "chains" })

Use blockrun_price (free) for plain spot quotes, blockrun_dex (free) for DEX pairs — this tool is for protocol/TVL/yield fundamentals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesEndpoint under /v1/defillama/, e.g. 'protocols', 'protocol/aave-v3', 'chains', 'yields', 'prices/coingecko:ethereum'
agent_idNoAgent identifier for budget tracking and enforcement.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.45.1
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Addedv0.22.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the read-only nature is covered. The description adds valuable operational context: per-call payment in USDC, the base+flat fee structure ($0.001 today, $0.002 reserved), the 402 header for exact charge, GET-only paths, and the note that yields is large and should be filtered client-side. This goes beyond what annotations alone provide.

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 moderately long but well-structured: it opens with purpose, then covers cost, then lists paths with base prices, then examples, then alternatives. Every sentence carries useful information; nothing is redundant. While it could be slightly more compact, the density is justified given the multiple endpoints and the pricing detail.

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 data-retrieval tool with no output schema, the description covers the essential operational details: endpoints, cost model, examples, and filtering advice. It does not specify response shapes, but for a GET-only data fetch, that is typically not critical for invocation. The inclusion of payment semantics and alternative routing makes it sufficiently complete.

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 description coverage is 100%, so the baseline is high. The description adds further meaning with concrete examples (e.g., 'protocol/aave-v3', 'prices/coingecko:bitcoin,coingecko:ethereum') and clarifies the path format (endpoint under /v1/defillama/). This enhances the agent's ability to construct valid paths without guessing.

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 verb ('fetches' implied by 'DeFi fundamentals via DefiLlama') and resource with clear scope: protocol TVL, chain TVL, yield pools, token prices. It explicitly distinguishes itself from siblings blockrun_price and blockrun_dex, so an agent can immediately infer what this tool is for and what it is not.

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?

Provides explicit when-to-use guidance: 'Use blockrun_price (free) for plain spot quotes, blockrun_dex (free) for DEX pairs — this tool is for protocol/TVL/yield fundamentals.' This directly names alternative tools and the conditions that select them, leaving no inference required.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.