Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesValue to store
key_nameYesKey name to write (max 512 characters)
namespace_idYesKV namespace ID (32-character hex string)
expiration_ttlNoTime-to-live in seconds (minimum 60). Key is automatically deleted after this period.
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must fully disclose behavior. It mentions the write operation and optional TTL, but fails to indicate important traits such as overwrite behavior, size limits (value max 25 MB), or that the namespace must exist. This lack of detail is a significant gap for a mutating tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that immediately conveys the core purpose. Every word is essential, with no wasted or redundant content. It is perfectly front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple write tool with no output schema and no annotations, the description covers the basic action but lacks important context: it doesn't mention the return value (e.g., a success indicator), prerequisites (e.g., namespace must exist), or constraints (e.g., maximum value size). It is adequate but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with clear parameter descriptions. The description adds only 'optionally set a TTL for automatic expiration,' which is redundant with the schema description for 'expiration_ttl'. It does not provide additional meaning or usage context beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Write'), resource ('key in Workers KV namespace'), and optional TTL. It distinguishes itself from sibling tools like 'cloudflare_kv_read', 'cloudflare_kv_delete', and 'cloudflare_kv_list_keys'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use (writing a value) but provides no explicit guidance on when not to use or alternatives. For instance, it doesn't mention that if the key exists it will be overwritten, nor suggests using 'cloudflare_kv_read' for reading.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itunified-io/mcp-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server