Skip to main content
Glama

Opsphere — DevOps & SRE Intelligence

Cloudflare: KV value read

cf_kv_value_get
Read-only

Read a single KV value by key. Large values are truncated (~8k chars) with truncated=true.

Input Schema

NameRequiredDescriptionDefault
keyYesKV key name
zoneOrIdNoZone name (e.g. your-tenant.com) or zone ID to resolve account.id
accountIdNoCloudflare account ID; overrides CLOUDFLARE_ACCOUNT_ID and zone.account.id
context_idNoOptional explicit Connection Hub work context (ctx_*). Omit to use the conversation's active workspace; global Hub tools ignore it.
namespaceIdYesKV namespace ID
account_slugNoCloudflare account slug. Required when the workspace has multiple accounts and the zone is not yet cataloged.
environment_slugNoCloud Catalog environment used as an account-routing preference when no zone is provided.

Output Schema

NameRequiredDescriptionDefault
okYes
dataYes
contractVersionYes
dataSchemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • changedOutput schema / properties / data / additionalProperties
      Previous value: -trueNew value: +false
    • removedOutput schema / properties / data / properties / count
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / data / properties / errors
      Removed value: -{
      -  "items": {
      -    "$ref": "#/properties/data/properties/result/anyOf/0/items"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / data / properties / gaps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / data / properties / items
      Removed value: -{
      -  "$ref": "#/properties/data/properties/result/anyOf/0"
      -}
    • addedOutput schema / properties / data / properties / key
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / messages
      Removed value: -{
      -  "items": {
      -    "anyOf": [
      -      {
      -        "type": "string"
      -      },
      -      {
      -        "$ref": "#/properties/data/properties/result/anyOf/0/items"
      -      }
      -    ]
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / data / properties / metadata
      Added value: +{
      +  "additionalProperties": {
      +    "type": [
      +      "string",
      +      "number",
      +      "boolean",
      +      "null"
      +    ]
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / data / properties / partial
      Added value: +{
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / data / properties / result
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "additionalProperties": true,
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "$ref": "#/properties/data/properties/result/anyOf/0/items"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / data / properties / result_info
      Removed value: -{
      -  "$ref": "#/properties/data/properties/result/anyOf/0/items"
      -}
    • removedOutput schema / properties / data / properties / success
      Removed value: -{
      -  "type": "boolean"
      -}
    • addedOutput schema / properties / data / properties / truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / value
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / warnings
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / required
      Added value: +[
      +  "key",
      +  "value",
      +  "partial",
      +  "truncated",
      +  "warnings",
      +  "gaps"
      +]
    • addedOutput schema / properties / dataSchemaVersion
      Added value: +{
      +  "const": 2,
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "contractVersion",
      -  "ok",
      -  "data"
      -]New value: +[
      +  "contractVersion",
      +  "dataSchemaVersion",
      +  "ok",
      +  "data"
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds a genuinely useful, non-obvious behavior: values above ~8k chars are truncated and flagged via truncated=true, which affects how an agent should interpret the result.

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?

Two short sentences, front-loaded with the core action and immediately followed by the truncation caveat. No filler.

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

Completeness4/5

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

With an output schema present, the description needn't explain return shape, and the truncation note covers the main interpretation pitfall. The remaining gap is the discovery path (keys and namespaces must come from the sibling list tools), which an agent would need to infer.

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%, so all seven parameters (including account routing fields and context_id) are documented in the schema itself. The description mentions only 'by key' and adds nothing about namespaceId, accountId, zoneOrId or routing precedence, so the baseline 3 applies.

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?

States a specific verb and resource ('Read a single KV value by key'), which an agent can map directly onto cf_kv_keys_list and cf_kv_namespaces_list without ambiguity. It does not explicitly name those siblings to differentiate, keeping it just short of a 5.

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

Usage Guidelines2/5

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

No guidance on when to use this versus cf_kv_keys_list (key discovery) or how to obtain a namespaceId. The description gives a precondition-free read recipe but never says what to do first or when not to call it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources