Skip to main content
Glama

Set value

kv_set

Write a small value with a TTL. Emails and card numbers are rejected. Call keys.create once. Pass caller_key on every later tools/call.

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>",
      "ttl_s": "<ttl_s>"
    },
    "name": "kv_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
ttl_sYes
valueYes
caller_keyNopf_ key from keys.create. Pass this on tools/call when Authorization and X-Caller-Key are not set. A header key wins if both are set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

The annotations only mark the tool as a non-destructive write. The description adds real behavioral context beyond that: values are small, a TTL is mandatory, PII content is rejected server-side, and caller_key must be passed on every tools/call. It still does not say what happens on overwrite of an existing key or what a rejection looks like.

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?

There are three short, front-loaded sentences with no filler. The auth sentence is terse to the point of being cryptic, but every sentence carries 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?

For a four-parameter write tool with no output schema, the definition covers auth and content restrictions but leaves out what a successful write returns, how overwrite behaves, and what the key and value constraints are. An agent can call the tool but not fully predict its result.

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 only 25%; only caller_key is documented in the schema, and the description repeats that documentation. The description also hints that value must be 'small' and that ttl_s is a TTL, but gives no size bound, no units, and no key-format guidance, so it only partly compensates for the gap.

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 concrete verb and resource: 'Write a small value with a TTL.' That is enough to separate it from read and delete siblings such as kv.get and kv.delete. It does not state a scope or explicitly name a sibling it differs from, so it falls 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 Guidelines3/5

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

It gives one useful prerequisite, 'Call keys.create once', and one constraint, that emails and card numbers are rejected. It does not say when to prefer this tool over alternatives, when a TTL is appropriate, or what to do when a write is refused.

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