Skip to main content
Glama
WarToolsAI MCP Server

WarToolsAI MCP Server

kv.set

Persists a JSON value under a namespace and key with an optional TTL, giving AI agents deterministic key-value memory that survives across calls.

Instructions

Persist a JSON value under a namespace/key with optional TTL.

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.set"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
valueYes
namespaceNo
sessionIdNo
ttlSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses only that the operation is a write with an optional TTL. It does not say whether setting an existing key overwrites or errors, whether the previous value is returned, what permissions or session scoping are required, or what a successful response looks like — critical gaps for a mutation tool with zero annotation coverage.

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?

A single tight sentence with the core operation front-loaded and no filler. Its brevity is a virtue structurally, though the same brevity is what leaves behavior undocumented.

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?

For a five-parameter mutation tool with no annotations, no output schema and fully undocumented parameters, one sentence is insufficient. An agent still cannot determine overwrite semantics, sessionId's role, or the return shape before calling.

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 description coverage is 0%, so the description must compensate for all five parameters, and it only loosely gestures at key, value, namespace and ttlSeconds. sessionId is never mentioned at all, and there is no clarification of TTL units, whether ttlSeconds is nullable, or what JSON value types are accepted.

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 verb 'Persist' plus the resource 'a JSON value under a namespace/key' states a concrete write operation, and the optional TTL is named, so an agent can tell this apart from the read/delete siblings (kv.get, kv.delete). It stops short of 5 only because it never explicitly contrasts itself with those siblings.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says when to prefer kv.set over other write paths, when to supply namespace versus sessionId, or how to pick a TTL. The word 'Persist' implies a write, but every decision an agent must make before calling 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.

This server cannot be deployed

Other Tools