Skip to main content
Glama

KV put

kv_put
Read-onlyIdempotent

Returns the paid x402 request that would store your value (POST /kv/put, $0.001 per call; schema linked); this call stores nothing, and a value is stored only if your own client pays that request. Use when an agent needs memory between runs without an account: store value (text or JSON, up to 8 KB) under key in a private namespace keyed to the wallet that pays. POST that JSON body to the URL with an x402 or MPP client to store it. Bad input is refused before any charge. Overwrites an existing key; the key expires after ttl (60 s to 90 days, default 30 days) and there is no delete. Values are stored unencrypted: do not store secrets. Read back with kv_get or 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>",
      "value": "<value>"
    },
    "name": "kv_put"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey, 1-128 characters from A-Z a-z 0-9 . _ : / -
ttlNoSeconds to keep the key
valueYesText, or JSON stored as text (max 8 KB)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: per-call price, refusal of bad input before charging, overwrite semantics, no delete operation, TTL bounds and default, 8 KB cap, and an unencrypted-storage warning. The description reinforces rather than contradicts readOnlyHint ('this call stores nothing'); the only soft spot is the vague 'schema linked' pointer for the returned payload.

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?

Front-loads the surprising fact (returns a payment request, stores nothing) before mechanics, pricing, and caveats. It is dense and long for one sentence-chain, but nearly every clause carries operational weight; only 'schema linked' is 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?

No output schema exists, and the description does address the return value as an x402 request to be POSTed, plus limits, cost, and lifetime. The exact JSON body shape is only pointed at rather than described, which is the one gap for a tool whose whole output is that request.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, and the description earns a bump by adding constraints the schema does not state: the 8 KB value cap, the TTL human range (60 s to 90 days, default 30 days), and the fact that keys live in a private namespace keyed to the paying wallet.

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?

States a specific verb and resource plus the crucial twist: it 'Returns the paid x402 request that would store your value (POST /kv/put, $0.001 per call)' and 'this call stores nothing'. That distinguishes it from kv_get, kv_list, and the x402_* siblings without opening another schema.

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

Usage Guidelines5/5

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

Gives an explicit use condition ('when an agent needs memory between runs without an account'), explicit next-step instructions ('POST that JSON body to the URL with an x402 or MPP client to store it'), and names alternatives ('Read back with kv_get or kv_list'). Nothing is left to inference.

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