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
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
from required | string | Unix timestamp in milliseconds for the start of… |
to required | string | Unix timestamp in milliseconds for the end of… |
tz | string | IANA 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:
{
"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:
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 ….