Skip to main content
Glama

kvs__PutKv

Creates or overwrites a key-value entry in a specified KVS table while enforcing its key schema, with support for conditional execution.

Instructions

[KVS] 指定表,新建kv或覆盖已有kv,且满足表的key schema描述;允许指定条件执行。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "kvs__PutKv"
  }
}

Input Schema

NameRequiredDescriptionDefault
store_nameNo仓名,全域唯一,不同租户的仓名不能相同。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the most important behavioral trait — existing values are overwritten rather than preserved — plus the key-schema validation constraint and optional conditional execution. It omits permission requirements, failure/error behavior when the condition fails or the key schema is violated, and any return information.

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 front-loaded sentence with the [KVS] namespace tag and no filler. The semicolon-chained clauses are dense but all carry content, so length is appropriate for the information conveyed.

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 write/overwrite operation with conditional execution, no annotations, and no output schema, the description leaves too much unsaid: no permissions, no error semantics, no return shape. The gap is aggravated by the schema exposing only store_name while the description implies table, key, and condition inputs the agent cannot see.

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 100% for the single declared parameter (store_name), which would normally set a baseline of 3. However, the description talks about tables, keys, key-schema conformance, and execution conditions — none of which exist in the schema — creating a mismatch that leaves an agent unsure which inputs it must actually supply.

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 specific verb+resource with upsert semantics: '新建kv或覆盖已有kv' in a specified table, which tells an agent this is create-or-overwrite rather than a pure create or a pure update. It does not name a sibling (e.g., UpdateKv or BatchWriteKv) to sharpen the distinction, so it stops short of 5.

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 explicit when-to-use/when-not guidance and no reference to alternatives such as UpdateKv or BatchWriteKv, even though those siblings exist. '允许指定条件执行' hints at a conditional-execution mode but never explains when an agent should use it or what happens if the condition fails.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools