Skip to main content
Glama
coinpaprika

DexPaprika (CoinPaprika)

Official

getTokenMultiPrices

Retrieve batched token prices for multiple addresses on a specified blockchain network. Input token contract addresses to receive current price data, with unknown tokens automatically filtered out.

Instructions

Get batched prices for multiple tokens on a specific network. Pass an array of token addresses; unknown tokens are omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkYesNetwork ID from getNetworks (e.g., "ethereum", "solana")
tokensYesArray of token contract addresses. Serialized as repeatable query (?tokens=a&tokens=b).

Implementation Reference

  • The core handler function that builds the API endpoint for fetching prices of multiple tokens on a specific network using the DexPaprika API and formats the response for MCP.
    async ({ network, tokens }) => {
      const repeatedTokensQuery = tokens.map(t => `tokens=${encodeURIComponent(t)}`).join('&');
      const endpoint = `/networks/${network}/multi/prices?${repeatedTokensQuery}`;
      const data = await fetchFromAPI(endpoint);
      return formatMcpResponse(data);
    }
  • Zod schema defining the input parameters: network (string) and tokens (non-empty array of strings).
    {
      network: z.string().describe('Network ID from getNetworks (e.g., "ethereum", "solana")'),
      tokens: z.array(z.string()).nonempty().describe('Array of token contract addresses. Serialized as repeatable query (?tokens=a&tokens=b).')
    },
  • src/index.js:267-279 (registration)
    The server.tool registration call that defines and registers the 'getTokenMultiPrices' tool with its description, input schema, and handler function.
    server.tool(
      'getTokenMultiPrices',
      'Get batched prices for multiple tokens on a specific network. Pass an array of token addresses; unknown tokens are omitted.',
      {
        network: z.string().describe('Network ID from getNetworks (e.g., "ethereum", "solana")'),
        tokens: z.array(z.string()).nonempty().describe('Array of token contract addresses. Serialized as repeatable query (?tokens=a&tokens=b).')
      },
      async ({ network, tokens }) => {
        const repeatedTokensQuery = tokens.map(t => `tokens=${encodeURIComponent(t)}`).join('&');
        const endpoint = `/networks/${network}/multi/prices?${repeatedTokensQuery}`;
        const data = await fetchFromAPI(endpoint);
        return formatMcpResponse(data);
      }
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds useful context about how unknown tokens are handled (omitted from results), which isn't obvious from the schema alone. However, it doesn't describe rate limits, error conditions, response format, or authentication requirements, leaving significant behavioral aspects unspecified.

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 perfectly concise with two sentences that each earn their place: the first states the core functionality, the second provides important behavioral context about unknown tokens. No wasted words, front-loaded with the main purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 2 parameters, 100% schema coverage, but no annotations and no output schema, the description is adequate but has clear gaps. It covers the basic purpose and one behavioral aspect, but doesn't address response format, error handling, or performance characteristics that would be helpful given the lack of structured output documentation.

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%, so the schema already fully documents both parameters. The description adds minimal value beyond the schema by mentioning 'array of token addresses' (already in schema) and that unknown tokens are omitted (helpful but not parameter-specific). Baseline 3 is appropriate when the schema does the heavy lifting.

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 action ('Get batched prices'), the resource ('multiple tokens'), and the scope ('on a specific network'). It distinguishes from sibling tools like getTokenDetails or getTokenPools by focusing specifically on price retrieval in batch mode, not details or pool information.

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 provides clear context for when to use this tool: when needing prices for multiple tokens on a network. It implicitly suggests alternatives by mentioning that unknown tokens are omitted, but doesn't explicitly name when to use other tools like getTokenDetails for single tokens or getNetworks for network selection.

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/coinpaprika/dexpaprika-mcp'

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