Skip to main content
Glama

Write key

put_key
Destructive

Create or replace UTF-8 text. Existing protection remains; absolute deadlines cannot extend. Preconditions prevent lost updates.

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": "put_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
valueYes
if_matchNo
ttl_modeNo
ttl_secondsNo
content_typeNotext/plain
if_none_matchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered; the description adds non-obvious behavior the annotations do not: existing protection survives a write and absolute deadlines cannot be extended. It still omits what happens to an existing value or TTL on overwrite and how precondition failure is surfaced.

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?

Three short declarative sentences, each carrying distinct information, with the core behavior front-loaded. Nothing is padded, though the terseness trades away detail an agent needs.

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

Completeness2/5

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

A 7-parameter destructive upsert with no output schema and zero schema descriptions needs the description to explain parameter semantics and failure behavior. The precondition gap matters most: an agent cannot tell whether a stale if_match returns an error, which field to use, or how TTL interacts with the existing key.

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

Parameters2/5

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

Schema coverage is 0% across 7 parameters, so the schema supplies no parameter meaning at all. The description gestures at if_match/if_none_match via "preconditions" and at ttl_mode/ttl_seconds via "absolute deadlines", but never maps guidance to the actual field names and says nothing about key format or content_type.

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?

"Create or replace UTF-8 text" gives a specific verb pair plus the resource, which distinguishes an upsert from a plain create or patch. It does not name the sibling it differs from (e.g. create_key or patch_key), so the differentiation is inferred rather than stated.

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?

"Preconditions prevent lost updates" implies the if_match/if_none_match path and when it matters, but the description never says when to pick put_key over create_key or patch_key, nor what happens on a failed precondition. Usage is implied rather than specified.

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