Home / Servers / Cloudflare API / profile_worker_version
Profile Worker Version
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Profile Worker Version Captures a CPU or heap profile from a recently active isolate running the specified Worker… [POST /accounts/{account_id}/workers/workers/{worker_id}/versions/{version_id}/profile]
Name on the gateway: cloudflare_api__profile_worker_version · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
worker_id required | string | worker_id parameter |
version_id required | string | version_id parameter |
actor_id | string | Identifies the exact Durable Object actor to… |
duration_ms required | integer | Profile duration in milliseconds. |
namespace_id | string | Identifies the Durable Object namespace… |
profile_type | cpu | heap |
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__profile_worker_version",
"arguments": {
"account_id": "…",
"worker_id": "…",
"version_id": "…",
"duration_ms": 0
}
}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 profile worker version tool with account_id set to ….