Skip to main content
Glama
Codex-Data

Codex MCP Server

Official
by Codex-Data

get_detailed_pair_stats

Retrieve aggregated stats for a token in a pair across time buckets, using network, contract address, and duration to filter historical or current data.

Instructions

Get bucketed stats for a given token within a pair

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe pair contract address
durationYesThe duration for stats
networkIdYesThe network ID the pair is on
statsTypeNoThe type of statistics returned. Can be FILTERED or UNFILTERED
timestampNo
bucketCountNoThe number of aggregated values to receive. Note: Each duration has predetermined bucket sizes. The first n-1 buckets are historical. The last bucket is a snapshot of current data.
tokenOfInterestNo
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It only states the operation returns bucketed stats but does not disclose that it requires a tokenOfInterest selection, describe the return structure or pagination, or mention access constraints or rate limits. This is insufficient for a 7-parameter tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at one sentence, but it is under-specified rather than efficiently structured. It lacks any guidance about parameters or use cases, so it does not provide value beyond a minimal statement of purpose.

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 (7 parameters, no output schema, no annotations), the description is far from complete. It does not explain what 'bucketed stats' means, what the response contains, how the parameters relate, or when to use it—leaving substantial gaps for an operation that likely returns complex data.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 71% (5 of 7 parameters have descriptions), but the description adds no parameter semantics. Notably, 'timestamp' and 'tokenOfInterest' are undefined, and the description does not explain that 'tokenOfInterest' is required to identify which token's stats are returned, or how 'bucketCount' and 'duration' interact. The description fails to compensate for these gaps.

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 uses 'Get' as a verb and clearly specifies the resource ('bucketed stats') and scope ('for a given token within a pair'). However, it does not differentiate from the sibling 'get_detailed_pairs_stats' (plural) or specify what stats are included, which limits distinctiveness.

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 usage guidance is provided. The description does not mention when to use this tool versus alternatives like 'get_pair_metadata' or 'get_token_chart_data', nor any conditions, prerequisites, or exclusions.

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