Skip to main content
Glama

USD prices and gas cost

get_prices
Read-only

What things are worth on a chain: token USD prices (the Uniswap gateway's map; the native token, address zero, priced as the chain's WETH), the gas price, and the typical USD cost of each operator operation at it (recenter, move, allocate, reinvest, claim). For weighing whether an operation pays before simulating it — a simulation's own gas estimate is better once there is one. tokens narrows the map and lists the ones it cannot price; derived names known stablecoins the gateway left unpriced, priced from a stablecoin they are pooled with; stale marks a copy served while a refresh fails; gatewayStale: true means the gateway's last answer (gatewayDataAt) is over 3 hours old, so the prices are that old answer's, not current.

Input Schema

NameRequiredDescriptionDefault
tokensNoToken addresses to price; all known when omitted
chainIdYesEVM chain id, e.g. 42161 for Arbitrum One

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safe-read profile (readOnlyHint=true, openWorldHint=true), and the description adds real behavioral context beyond them: partial-failure handling (`stale` marks a copy served while a refresh fails), a concrete staleness threshold (gateway data over 3 hours old), and unpriced-token reporting via `tokens`/`derived`. Gaps remain — no error behavior for unsupported chains or gateway failures, and no note on rate limits or caching cadence.

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?

Front-loaded with the core question ('what things are worth on a chain') and split sensibly into purpose, usage, and response-field notes; every sentence carries information. The first sentence is nonetheless heavily nested with parentheticals, which slows parsing for an agent skimming for the call contract.

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?

With no output schema, the description must carry return-value semantics, and it does explain the notable cases (stale copy, three-hour gateway staleness, derived stablecoin pricing, unpriceable tokens). It is less complete on the shape of the price map and per-operation cost entries, and on failure modes, which an agent calling with an arbitrary chainId would want.

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 coverage is 100%, so both parameters are already documented; baseline 3 applies. The description adds only a little — that `tokens` also reports addresses it cannot price — while the other backticked names (`derived`, `stale`, `gatewayDataAt`) are response fields presented inline, which can momentarily read as parameters and slightly muddies the parameter/return boundary.

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 opening clause names the resource precisely (token USD prices, gas price, per-operation USD costs) and enumerates the operations covered (recenter, move, allocate, reinvest, claim). It also pins the scope detail that matters most — the native token/address zero is priced as the chain's WETH — so an agent knows exactly what comes back 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?

Usage is stated explicitly: use it to weigh whether an operation pays before simulating, and prefer a simulation's own gas estimate once one exists. That gives a clear when-to-use and a when-to-prefer-something-else. It stops short of naming a concrete alternative tool from the sibling set (e.g. suggest_move), leaving the routing inference to the agent.

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.

Resources