Skip to main content
Glama

Cloudflare: Get kv value

cloudflare_get_kv_value
Read-only

Retrieve a single stored Workers KV value by key name and namespace ID, returning its content as text for use in AI assistant workflows.

Instructions

[UNIFIED] Read a single KV value by key name (Workers KV Storage Read permission). Returns the stored value as text.

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": {
      "site": "<site>",
      "namespace_id": "<namespace_id>",
      "key_name": "<key_name>"
    },
    "name": "cloudflare_get_kv_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes
key_nameYes
account_idNo
namespace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.14.0

TDQS

B3.2/5.0
Behavior3/5

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

The description adds useful context beyond the readOnlyHint annotation: the required 'Workers KV Storage Read permission' and that the value is returned as text. It does not say what happens when the key is missing (null vs error), whether binary values are truncated, or anything about consistency/pagination.

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

Conciseness4/5

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

Two short sentences, front-loaded with the core action and followed by the permission and return-type details. The '[UNIFIED]' tag is minor noise but nothing is padded or redundant.

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 read tool with readOnly annotations and no output schema, the return-value note ('as text') is helpful. Still, a 4-parameter tool with zero schema documentation and no account_id/site guidance leaves real gaps an agent must resolve by trial and error.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description carries the full burden. It explains only key_name ('by key name') and implies namespace scoping; site, namespace_id, and the optional nullable account_id are left entirely unexplained, forcing the agent to guess at their formats and whether account_id is needed.

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

Purpose4/5

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

The description states a specific verb and resource: 'Read a single KV value by key name.' It also narrows scope to Workers KV Storage, which separates it from the many DNS, R2, and Workers script siblings, though it never explicitly names the adjacent KV tools such as list_kv_keys or put_kv_value.

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 read-only nature of the operation is implied by 'Read a single KV value', and the required permission is noted. However, it offers no guidance on how to obtain namespace_id or key_name (presumably via list_kv_namespaces/list_kv_keys), and no explicit when-not-to-use versus put/delete KV tools.

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

Deploy Server

Other Tools