Skip to main content
Glama
Cloudflare MCP Server

Cloudflare MCP Server

by oh-my-oops

get_zone_analytics

Retrieve analytics data for a Cloudflare zone within a specified date range to monitor traffic and performance trends.

Instructions

Get analytics data for a zone

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": {
      "zone_id": "<zone_id>",
      "since": "<since>",
      "until": "<until>"
    },
    "name": "get_zone_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceYesStart date (ISO 8601 format, e.g., 2024-01-01T00:00:00Z)
untilYesEnd date (ISO 8601 format)
zone_idYesThe zone ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure and leaves major gaps. It does not state that this is a read-only operation, whether it requires analytics-scoped credentials, how large a date range is permitted, or what the response shape or aggregation granularity looks like. It does not contradict anything, but it discloses almost nothing beyond the tool's purpose.

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 definition is a single short sentence with zero padding and is front-loaded with the verb, which is structurally sound. But its brevity reflects under-specification rather than disciplined editing — there is simply not enough content to call it well-structured for a three-required-parameter analytics query.

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?

For a tool with three required parameters, no output schema, and no annotations, the description should explain what data is returned and any range or permission constraints. It says none of this, leaving the agent unable to predict the result set or set a sane date window without experimentation.

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 100%, with each of the three parameters (zone_id, since, until) documented including ISO 8601 format hints, so the baseline of 3 applies. The description adds no further parameter meaning — notably it does not constrain the maximum window between since and until or explain timezone handling.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Get analytics data for a zone" names a verb (get) and resource (analytics for a zone), which is enough to distinguish it from CRUD siblings like get_zone or list_zones. However, "analytics data" is vague — it does not say which metrics (requests, bandwidth, threats, cache ratio) or what time granularity is returned, so the agent cannot tell what it will actually receive.

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?

There is no when-to-use guidance at all: no mention of prerequisites (e.g. a zone must exist or the token needs analytics permission), no note on date-range limits, and no reference to any alternative tool. The agent must infer usage entirely from the name and required parameters.

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