Home / Servers / Cloudflare API / workers_kv_namespace_read_the_metadata_for_a_key
Get a key's metadata
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Get a key's metadata Returns the JSON metadata associated with the specified key in the Workers KV namespace, without… [GET /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/metadata/{key_name}]
Name on the gateway: cloudflare_api__workers_kv_namespace_read_the_metadata_for_a_key · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
namespace_id required | string | namespace_id parameter |
key_name required | string | key_name parameter |
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__workers_kv_namespace_read_the_metadata_for_a_key",
"arguments": {
"account_id": "…",
"namespace_id": "…",
"key_name": "…"
}
}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 a key's metadata tool with account_id set to ….