Home / Servers / Cloudflare API / usage_get

Get event count

An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.

Get event count Event counts and sizes broken down by dataset and service, bucketed by day, for up to 90 days. The… [GET /accounts/{account_id}/workers/observability/usage]

Name on the gateway: cloudflare_api__usage_get · read-only.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
from requiredstringUnix timestamp in milliseconds for the start of…
to requiredstringUnix timestamp in milliseconds for the end of…
tzstringIANA timezone used to align daily bins to local…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "cloudflare_api__usage_get",
  "arguments": {
    "account_id": "…",
    "from": "…",
    "to": "…"
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the get event count tool with account_id set to ….

More from Cloudflare API