Skip to main content
Glama

defillama_coin_prices_batch_history

Read-only

Fetch historical price data for several coins at several timestamps in one call, returning a per-coin result with a prices array. Use it instead of many defillama_coin_prices_historical calls when you need more than one coin or timestamp; it accepts at most 100 coins and 100 timestamps per coin.

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": {
      "coins": "<coins>"
    },
    "name": "defillama_coin_prices_batch_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinsYesJSON object mapping each {chain}:{address} coin spec to an array of UNIX timestamps, e.g. {"coingecko:ethereum":[1666869543]}.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=false, so safety is covered; the description adds value with the batching caps and the per-coin return structure. It does not explain behavior for unknown/invalid coin specs or partial failures, and gives no hint why a read tool is marked non-idempotent, leaving some behavioral ambiguity.

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 sentences, no filler: the first defines what it returns, the second routes the agent away from the single-call sibling and states the limits. The most decision-relevant content (batching) is front-loaded.

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 batch read with a full output schema, the description covers purpose, alternative, caps and return shape, so little is missing. The remaining gap is error semantics for malformed or unknown coin specs in a batch, which matters when one bad key could affect a multi-coin request.

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 coverage is 100% and the schema already documents the JSON object mapping {chain}:{address} specs to timestamp arrays with an example. The description still adds meaning beyond the schema by stating the per-key array limits (100 coins, 100 timestamps each), which is not encoded in the schema.

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 and resource ('Fetch historical price data for several coins at several timestamps') plus the batching scope and the response shape ('per-coin result with a prices array'). It also names the sibling it replaces (defillama_coin_prices_historical), so an agent can distinguish the two without inspecting either 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?

Gives an explicit selection rule: use this instead of many defillama_coin_prices_historical calls when you need more than one coin or timestamp. It also states the practical ceilings (100 coins, 100 timestamps per coin), which tells the agent when to split work rather than call it blindly.

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.