Skip to main content
Glama
Codex-Data

Codex MCP Server

Official
by Codex-Data

get_token_chart_data

Retrieve bar chart data for token price changes over time using either a pair or token address.

Instructions

Returns bar chart data to track token price changes over time. Can be queried using either a pair address or token address.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes
fromYesUnix timestamp
addressYesThe pair address or token address to get chart data for. If a token address is provided, the token's top pair will be used.
countbackNo
networkIdYesThe network ID the pair or token is on
statsTypeNoThe type of statistics returned. Can be FILTERED or UNFILTERED
quoteTokenNoThe token of interest (token0 or token1)
resolutionYesThe time frame for each candle. Available options are 1, 5, 15, 30, 60, 240, 720, 1D, 7D
symbolTypeNo
currencyCodeNo
removeEmptyBarsNo
removeLeadingNullValuesNo
Behavior2/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It does not mention return format, resolution behavior, or any constraints. The description is purely functional with no additional behavioral context.

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?

The description is concise and front-loaded with the core purpose. It avoids filler but may be too terse given the tool's complexity, though it earns credit for not repeating schema information.

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?

Given the tool's complexity (12 params, no output schema), the description is grossly incomplete. It doesn't explain what 'bar chart data' specifically contains, how resolutions work, or what the response looks like. Sibling tools don't fill this gap.

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 50%, so some parameters have descriptions. The description adds meaning to the 'address' parameter by noting it can be a pair or token address, but it does not clarify other parameters like countback, statsType, or currencyCode. Since coverage is not below 50%, the baseline is acceptable but the description adds minimal value.

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?

The description clearly states it 'Returns bar chart data to track token price changes over time,' with a specific verb and resource. It also distinguishes itself from siblings by mentioning bar chart data and dual query options (pair or token address), though it doesn't explicitly name alternatives.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like get_token_prices or get_token_sparklines. It only explains how to query (pair or token address) but not the context for choosing it over sibling tools.

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/Codex-Data/codex-mcp'

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