Skip to main content
Glama

cpu_get_market_index

Get a 24-hour world price index per resource: volume-weighted average price, percent change, and volume. Use it to gauge market trends from actual trades, not current offers.

Instructions

World price index — one call, no inputs, one row per resource: the 24h volume-weighted average price ($CPU per unit), the 24h percent change, and 24h volume in resource UNITS (not $CPU). A weekly spark series rides along in the JSON block only, never in the text summary — read the trend off changePct instead. This is a SERVER-CACHED AGGREGATE that can run up to an hour behind — do not use it where you need second-fresh data. A null price means NO TRADES settled for that resource in the 24h window — read it as "no trades", never as free or as zero. This answers a different question than cpu_get_markets (the cheapest ask available right now, per hub): that is what you could buy at this instant; this is what the world actually paid, on average, over the last day. The two are never combined into one call — mixing them would read as one price when it is really two.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully discloses behavior: server-cached aggregate up to an hour behind, null price meaning 'no trades' not zero/free, and spark series only in JSON not text summary. These are critical semantics beyond the schema.

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?

Though longer than typical descriptions, every sentence earns its place: it front-loads the core purpose, then adds necessary caveats, output formatting details, and sibling differentiation. No fluff or redundancy.

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

Completeness5/5

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

Given no output schema and no annotations, the description is exceptionally complete: it covers all return fields, memory of spark series location, null semantics, caching latency, and comparison with the sibling tool. The tool's simplicity (no params) is fully addressed.

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

Parameters5/5

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

The schema has zero parameters, so baseline is 4; the description adds meaningful context about the output structure (one row per resource, volume in units not $CPU) and confirms no inputs needed. This goes beyond the minimal baseline.

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 tool returns a world price index with specific metrics (24h volume-weighted average price, percent change, volume in resource units) and explicitly distinguishes it from sibling tool cpu_get_markets by contrasting 'what the world actually paid' vs 'cheapest ask available right now'.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance: not for second-fresh data due to server caching, and directly names the alternative tool (cpu_get_markets) with a clear explanation of the different question each answers. Also warns against combining them into one call.

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/projectcpu/project-cpu-mcp'

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