kv_keys_count
Count total keys in a Cloudflare KV namespace, with an optional prefix filter to narrow the count and assess data volume.
Instructions
Count total keys in a KV namespace with optional prefix filter
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": {
"namespace_id": "<namespace_id>"
},
"name": "kv_keys_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | No | Optional key prefix filter | |
| namespace_id | Yes | KV namespace ID |