Skip to main content
Glama

get_price_aggregated

Aggregates token price data across multiple pool sources to return a single consolidated price for a given token contract ID.

Instructions

Get aggregated price for a token across multiple pool sources.

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": {
      "tokenId": "<tokenId>"
    },
    "name": "get_price_aggregated"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenIdYesToken contract ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It establishes only that the price is aggregated over multiple pools and says nothing about how aggregation is computed (mean? median? liquidity-weighted?), what currency the result is denominated in, freshness/caching, or rate limits — all material for an agent interpreting a price value.

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?

One short sentence, front-loaded with the verb and resource, with zero filler. The only weakness is that the terseness leaves no room for the qualifiers the tool actually needs.

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

Completeness2/5

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

There is no output schema, so the description should explain what is returned — a bare number, an object with price and source count, a denominated quote — and it does not. For a price tool the missing denomination and return shape are gaps an agent cannot resolve from structured fields alone.

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?

There is a single parameter with 100% schema description coverage ("Token contract ID"), so the schema already documents it fully and the description adds no format, chain, or lookup guidance. Baseline 3 is appropriate given the schema does all the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb and resource ("Get aggregated price") plus a scoping qualifier ("for a token across multiple pool sources") that hints at cross-pool aggregation rather than a single-venue quote. It does not name or contrast with close siblings such as get_token_price or get_prices, so the distinction is left to the word "aggregated."

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: "across multiple pool sources" suggests this is the choice when a single-pool price is insufficient, but the description never states when to prefer it over get_token_price, get_prices, or get_token_pools, nor any prerequisite or exclusion. An agent must infer the selection rule.

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