Skip to main content
Glama

kvs__UpdateKv

Updates part of a key-value document for a specified primary key in a KVS table, targeting named fields or a binary offset and length, and supports conditional execution.

Instructions

[KVS] 指定表,指定主键,指定更新文档的部分内容,如果是自描述文档,指定字段名;如果是二进制文档,指定偏移位置和长度;允许指定条件执行。

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses partial-update semantics, binary offset/length handling, and conditional execution, but it omits mutation details such as missing-key behavior, atomicity, permissions, and error or return semantics.

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?

The definition is a single dense sentence with no filler and front-loads the update operation. The semicolon-separated clauses are efficient, though the mixed document modes could be easier to scan if structured more explicitly.

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 KVS mutation tool with no annotations and no output schema, the description covers update modes and conditional execution but leaves out mutation safety, failure behavior, and response expectations. The unexplained mismatch with the one-parameter schema also reduces completeness.

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%, so store_name is already documented in the schema, and the description adds no meaning for that parameter. Instead, it describes table, primary key, field name, offset, length, and condition, none of which appear in the supplied input schema, creating a mismatch rather than useful parameter clarification.

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 specific verb and resource: updating part of a document in KVS by specified table and primary key. It distinguishes partial updates from full writes implicitly, but it does not explicitly name a sibling such as PutKv or BatchWriteKv as the alternative.

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 provides useful mode-specific guidance for self-describing documents (field name) versus binary documents (offset and length) and mentions conditional execution. However, it does not say when to use this tool instead of PutKv, BatchWriteKv, or DeleteKv, nor does it state prerequisites or exclusions.

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