Skip to main content
Glama
Ethereum MCP
by ETHCF

set_defillama_key

Configure a DefiLlama Pro API key to access yields, derivatives, emissions, bridges, and other DeFi data.

Instructions

Set DefiLlama Pro API key for access to yields, derivatives, emissions, bridges, and more. Get one at defillama.com/subscription

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "key": "<key>"
    },
    "name": "set_defillama_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe user's DefiLlama Pro API key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the effect of setting the key — unlocking yields, derivatives, emissions, and bridges — which is genuine behavioral context, but it says nothing about whether an existing key is overwritten, whether the key is validated on submission, or whether the setting persists across sessions.

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?

Two short sentences with the capability statement first and the credential source second; nothing redundant or padded.

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 single-parameter configuration setter with 100% schema coverage and no output schema, the description covers purpose, effect, and where to obtain the input. Only the mutation semantics (overwrite, validation, failure behavior) are left unstated.

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?

Only one parameter, and the schema already describes it fully ('The user's DefiLlama Pro API key'), so the baseline is 3. The description adds the acquisition path for that value but no format, prefix, or validation expectations for the key itself.

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?

Specific verb ('Set') plus specific resource ('DefiLlama Pro API key'), and the provider name distinguishes it cleanly from the sibling key-setters like set_coingecko_key and set_dune_key. An agent can identify this tool's job without opening the schema.

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 states the condition that motivates use (needing access to yields, derivatives, emissions, bridges) and tells the agent where the credential comes from (defillama.com/subscription). It does not state what to do if a key is already set or that this is a prerequisite to other DefiLlama tools, but the context is otherwise clear.

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

Deploy Server

Other Tools