Skip to main content
Glama

KV get

kv_get
Read-onlyIdempotent

Use when an agent needs a value it stored earlier with /kv/put: returns the text (and parsed json when it was stored as JSON), size. Returns the paid x402 request for your input (GET /kv/get, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. A missing or expired key is refused (404) before any charge; to see key names use kv_list.

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": {
      "key": "<key>"
    },
    "name": "kv_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey, 1-128 characters from A-Z a-z 0-9 . _ : / -

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the bar is lower, yet the description adds real behavioral context: the $0.001 per-call price, the x402/MPP two-step flow, and that both bad input and a 404 missing/expired key are refused before any charge. That billing-failure guarantee is exactly the kind of thing annotations cannot express. The only deduction is that the value-vs-payment-request return behavior is described ambiguously.

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

Conciseness3/5

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

The use case is front-loaded, which is good, but the return-value sentence is a fragment ('returns the text ..., size') that is hard to parse, and the x402/pricing material is spread across three sentences with a parenthetical '(schema linked)' that adds little. Roughly a third of the text could be tightened without losing information.

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?

There is no output schema, so the description must explain return values, and it half-does: text, parsed JSON, and size are named, but the competing claim that it returns a paid x402 request leaves the actual response shape unresolved. Pricing, error codes, and the kv_list pointer are complete. For a paid retrieval endpoint with no output schema, the return-format ambiguity is a meaningful gap.

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?

There is a single parameter with 100% schema description coverage, including the full character pattern and length bounds, so the schema carries the semantics. The description adds only the provenance hint that the key must match something stored via /kv/put; it adds nothing about case sensitivity or path-like key behavior. Baseline 3 is appropriate.

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+resource pairing: retrieve a value previously stored with /kv/put, returning text (and parsed JSON when applicable) plus size. It clearly differs from kv_list and kv_put. It loses a point because the return semantics are muddled by the sentence 'Returns the paid x402 request for your input', which makes it unclear whether the tool returns the value or a payment challenge.

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

Usage Guidelines4/5

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

Explicit when-to-use is given ('when an agent needs a value it stored earlier with /kv/put') and it names the alternative for a related need ('to see key names use kv_list'). It does not cover the write-side alternative or when to avoid re-fetching, so it stops short of full routing guidance.

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