cloudflare_kv_write
Write values to Cloudflare Workers KV namespaces with optional TTL for automatic key expiration.
Instructions
Write a value to a key in a Workers KV namespace. Optionally set a TTL for automatic expiration.
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>",
"key_name": "<key_name>",
"value": "<value>"
},
"name": "cloudflare_kv_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value to store | |
| key_name | Yes | Key name to write (max 512 characters) | |
| namespace_id | Yes | KV namespace ID (32-character hex string) | |
| expiration_ttl | No | Time-to-live in seconds (minimum 60). Key is automatically deleted after this period. |