Skip to main content
Glama

P0: agent memory and utilities

KV put

kv_put
Read-onlyIdempotent

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. Returns the exact paid x402 request for your input (POST /kv/put, $0.001 per call), with a link to the full schema; POST that JSON body to the URL with an x402 or MPP client to get the data. Bad input is refused before any charge.

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. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: 8 KB value cap, private per-paying-wallet namespace, $0.001 per call, endpoint POST /kv/put, the two-step flow (this tool returns the paid x402 request; the caller POSTs it), and the guarantee that bad input is rejected before charge. There is mild tension with readOnlyHint=true since the description's 'store value' implies a write, but the description does explain that the mutation only happens when the returned request is POSTed, so it is clarified rather than contradicted. Overwrite semantics for an existing key are left implicit (inferred only from idempotentHint).

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 'Use when' condition and keeps everything to two sentences with no filler. The second sentence is dense and run-on, packing pricing, endpoint, schema link, and client requirements into one chain, but each clause carries real information.

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?

For a tool with no output schema, the description does the necessary work of explaining exactly what comes back (the exact paid x402 request plus a schema link) and how to consume it. Pricing, size limit, and pre-charge validation are all covered; only overwrite/expiry semantics are slightly under-explained.

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 description coverage is 100%, so the schema already defines key pattern, value types, and ttl defaults/limits; the description only restates the 8 KB value cap. TTL/expiry behavior and the consequence of key collisions are not elaborated in the description, so 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 concrete action and resource: store a text or JSON value (up to 8 KB) under a key in a private, wallet-scoped namespace. This clearly positions it against kv_get/kv_list by implication (write vs. read/list), though it never names those siblings explicitly, which is the only thing separating it from 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 Guidelines4/5

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

Opens with an explicit conditioning clause: 'Use when an agent needs memory between runs without an account,' which gives a clear triggering context. It does not spell out when-not-to-use or name kv_get/kv_list as alternatives, so the agent must infer the complement from the sibling list.

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