Skip to main content
Glama
romudille-bit

AgentPay x402 — Crypto Data Tools for AI Agents

defi_tvl

Retrieve Total Value Locked data for DeFi protocols to analyze protocol performance or compare top protocols by TVL.

Instructions

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. Returns: tvl, change_1h, change_1d, change_7d, chains[], category for the protocol (or top 10 list)

Price: $0.002 USDC per call

Input Schema

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

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

With no annotations provided, the description carries the full burden and does well by disclosing key behavioral traits: it specifies the return format (tvl, change metrics, chains, category), mentions the pricing information ('$0.002 USDC per call'), and clarifies the dual functionality (top 10 vs. specific protocol). It doesn't cover rate limits or error handling, but provides substantial operational context.

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 front-loaded with the core purpose, followed by structured sections ('Use when:', 'Returns:', 'Price:'), making it highly efficient. Every sentence adds critical information without redundancy, and the bullet-like formatting improves readability.

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?

Given no annotations and no output schema, the description provides strong contextual completeness: it explains the tool's purpose, usage guidelines, return values, and pricing. It could improve by mentioning data freshness or source reliability, but for a single-parameter tool with clear functionality, it covers most essential aspects well.

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?

The input schema has 100% description coverage, so the baseline is 3. The description adds value by explaining the semantics of the protocol parameter: it clarifies that leaving it empty returns the top 10, while providing a name/slug (with examples like 'uniswap', 'aave') fetches a specific protocol, enhancing understanding beyond the schema's basic description.

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 specific action ('Returns top 10 or a specific protocol') and resource ('DeFi protocol Total Value Locked from DeFiLlama'), distinguishing it from siblings like token_price or wallet_balance by focusing on TVL metrics rather than prices or balances.

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 explicitly states when to use this tool ('need the Total Value Locked in a specific DeFi protocol or want to compare the top protocols by TVL'), providing clear context and distinguishing it from alternatives like dex_liquidity or dune_query that serve different purposes.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/romudille-bit/agentpay'

If you have feedback or need assistance with the MCP directory API, please join our Discord server