Skip to main content
Glama

AgentPay — trust routing + spend caps for x402 agents

defi_tvl

Read-only

DeFi protocol Total Value Locked from DeFiLlama. Returns top 10 or a specific protocol.

Use when: You need the Total Value Locked in a specific DeFi protocol or want to compare the top protocols by TVL. Not for: you want the best yield for a token — yield_scanner; protocol revenue or custom metrics — dune_query. Returns: tvl, change_1h, change_1d, change_7d, chains[], category for the protocol (or top 10 list) Example response: {"protocol":"aave","tvl":23800000000,"change_1h":0.12,"change_1d":-1.43,"change_7d":3.21,"chains":["Ethereum","Polygon","Avalanche","Base"],"category":"Lending","source":"defillama"}

Price: $0.000 USDC per call

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolNoProtocol name or slug, e.g. 'uniswap', 'aave', 'lido'. Leave empty for top 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds meaningful context beyond that: the data source (DeFiLlama), the exact return fields, and a concrete example response, which is valuable since there is no output schema. It omits any rate-limit or freshness caveats, so not a full 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?

Front-loaded purpose line followed by clearly labeled 'Use when', 'Not for', 'Returns', and an example — every section earns its place. The embedded example JSON and the '$0.000 USDC per call' line add mild bulk without much utility, keeping it short of a 5.

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 no output schema, the description correctly carries the return contract by listing tvl/change_1h/change_1d/change_7d/chains[]/category and a sample payload. Combined with the usage routing, an agent has what it needs; minor gaps like pagination or data staleness keep it from 5.

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% and the single 'protocol' param already documents accepted names/slugs and the empty-string-equals-top-10 behavior. The description's example names and 'leave empty' semantics largely duplicate the schema, so baseline 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?

States a specific verb+resource ('DeFi protocol Total Value Locked from DeFiLlama') and clarifies the two retrieval modes (top 10 or a named protocol). It explicitly distinguishes itself from yield_scanner and dune_query, so an agent can separate it from siblings without reading another schema.

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 'Use when' conditions and a 'Not for' block that routes the agent to named alternatives (yield_scanner for yields, dune_query for revenue/custom metrics). This is textbook when/when-not/alternative 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.