Skip to main content
Glama

get_x_post_counts

Read-onlyIdempotent

How many X posts mentioned a crypto asset's cashtag, per hour or per day, over the last 1 to 31 days. This is the XPostCount series the x_attention signals (x_post_count_spike, x_attention_elevated, x_attention_price_divergence) read. Counts exclude reposts and promoted posts; x_query=en_original also drops replies and keeps English only. The series ends at the last settled bucket (closed at least five minutes ago). Use it to show a token's attention trend, to explain why an X signal fired, or to pick a z_threshold. Counts are post volume, not sentiment. Repeat reads are served from cache.

[Access: pay 0.02 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]

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": {
      "symbol": "<symbol>"
    },
    "name": "get_x_post_counts"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesAsset symbol, e.g. BTC or ETH.
x_queryNoall (default) or en_original (no replies, English only).all
days_backNoWindow in days ending now, 1 to 31.
granularityNohour or day.hour

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds material behavior: reposts and promoted posts are excluded, en_original also strips replies and non-English, the series ends at the last bucket settled at least five minutes ago, and repeat reads come from cache. It also discloses the x402 pay-per-call versus API-key auth path — exactly the kind of context annotations can't express.

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?

Purpose and scope are front-loaded in sentence one, and the subsequent sentences each add either filtering semantics, freshness, use cases, or payment requirements. The trailing bracketed access note is long but necessary for invocation; the only minor redundancy is restating en_original's meaning already present in the schema.

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 compensates by describing the series shape, its cutoff semantics, and caching, and annotations cover safety. It still does not describe the response fields (timestamps, count keys) an agent would need to parse results, leaving a modest gap for a data-returning read tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns an increment by clarifying that the window 'ends now' but is actually truncated at the last settled bucket, which changes how days_back is interpreted, and by restating the practical effect of x_query on the returned counts.

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 first sentence names the exact resource (X post counts per cashtag), the aggregation unit (per hour or per day), and the time range (1-31 days). It also explicitly distinguishes itself from the sentiment-oriented siblings with 'Counts are post volume, not sentiment,' and ties itself to the x_attention signals that consume the series.

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?

It enumerates concrete use cases: showing attention trends, explaining why an X signal fired, and picking a z_threshold. It also implicitly routes away from social-sentiment tools via the 'not sentiment' caveat, but it never names those siblings or states when to prefer them.

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.