Skip to main content
Glama
crunchtools

mcp-cloudflare-crunchtools

by crunchtools

get_traffic_by_country_tool

Retrieve country-level traffic breakdown for a Cloudflare zone using zone ID or name, returning request counts and bandwidth per country.

Instructions

Get traffic breakdown by country.

Provide either zone_id or zone_name, not both.

Args: zone_id: Zone ID (32-character hex string) zone_name: Zone name (domain like example.com) since: Start date ISO format (default: 30 days ago) until: End date ISO format (default: today) limit: Number of countries (default: 20)

Returns: Country breakdown with request counts and bandwidth

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
sinceNo
untilNo
zone_idNo
zone_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / limit / description
      Removed value: -"Number of countries (default: 20)"
    • removedInput schema / properties / since / description
      Removed value: -"Start date ISO format (default: 30 days ago)"
    • removedInput schema / properties / until / description
      Removed value: -"End date ISO format (default: today)"
    • removedInput schema / properties / zone_id / description
      Removed value: -"Zone ID (32-character hex string)"
    • removedInput schema / properties / zone_name / description
      Removed value: -"Zone name (domain like example.com)"
  2. First observedv0.5.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It implies a read via "Get" and usefully documents defaults (30 days ago, today, 20 countries) and the mutual exclusivity of zone_id/zone_name, but says nothing about permissions, rate limits, pagination of country results, or ordering. Adequate but thin for a zero-annotation tool.

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-loads the one-line purpose, then the mutual-exclusivity rule, then structured Args/Returns blocks. Every line is scannable and earns its place; minor redundancy between "default: 30 days ago" prose and the schema defaults, but not wasteful.

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?

An output schema exists, so the brief Returns note is sufficient rather than required. For a parameterless-required, read-only analytics query the description covers invocation adequately; the only real gap is sibling/alternative guidance and any pagination or rate-limit behavior.

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?

Schema description coverage is 0%, so the description has to compensate and does: it documents every one of the five parameters including type hints (32-character hex zone ID, domain zone name, ISO date format) and the defaults for since/until/limit. This is meaningfully more than the bare schema provides.

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?

States a specific verb+resource ("Get traffic breakdown by country") that distinguishes it from analytics siblings like get_top_pages_tool and get_zone_analytics_tool by naming the grouping dimension. However, it never explicitly contrasts itself with get_zone_analytics_tool, so the differentiation is inferential.

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?

Gives a concrete usage rule — "Provide either zone_id or zone_name, not both" — which prevents a real invocation error. It does not, however, say when to prefer this tool over get_zone_analytics_tool or get_top_pages_tool, so alternative routing is absent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.