Skip to main content
Glama

kvs__BatchWriteKv

Executes batch key-value write requests to upload or delete KV entries across one or more KVS tables.

Instructions

[KVS] 批量写请求,其中可以携带一或多个表的不同kv的写操作,上传kv/删除kv。

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__BatchWriteKv"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it only states that writes and deletions occur. It says nothing about atomicity, partial-failure behavior, batch size limits, permissions, or irreversibility of the delete portion, which are the facts an agent needs before invoking a mutating batch tool.

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?

One compact sentence with the [KVS] prefix and the action front-loaded; no filler. The density is partly achieved by omitting important detail, but structurally it is clean.

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 mutating batch operation with no annotations and no output schema, the description is thin. It never explains where the batch payload lives, how many entries can be sent, or what the result reports, leaving a substantial gap for an agent trying to call it correctly.

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% for the single store_name parameter, so the baseline is 3. The description's mention of 'one or more tables' and multiple KV operations does not map to any visible parameter and is slightly at odds with a schema that exposes only store_name, adding no usable parameter detail.

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 gives a specific verb and resource (batch write of KV entries) and clarifies it can bundle writes for multiple tables and covers both uploading and deleting KV pairs. This distinguishes it reasonably well from the single-record siblings PutKv/DeleteKv, though the wording stays generic.

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 guidance on when to choose this over kvs__PutKv or kvs__DeleteKv, nor any prerequisites or exclusions. The 'batch' framing implies the alternative scenario, but the agent must infer that on its own.

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