Skip to main content
Glama

kvs__DeleteKv

Deletes a document from a specified KVS table by primary key, with an optional condition to control when deletion runs. Use it to remove key-value records only when defined criteria match.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/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 behavioral burden. It discloses that deletion is conditional-capable, but says nothing about irreversibility, behavior when the primary key is absent, what a failed condition returns, or rate/permission constraints — significant omissions for a destructive operation.

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 prefixed with the [KVS] namespace tag; there is no filler. It loses a point only because the clause about table and primary key adds ambiguity rather than precision given the actual schema.

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 destructive KVS operation with no annotations and no output schema, the description should cover deletion semantics, the condition mechanism, and error behavior, none of which appear. The mismatch between the described table/primary-key inputs and the single store_name parameter leaves the agent without enough 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 coverage is 100% for the single parameter, so the baseline is 3, and the description adds no meaning about store_name beyond its existing schema text. Worse, it references 'specified table' and 'specified primary key' which do not appear in the schema at all, which can mislead an agent about what it must 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?

The description states a concrete verb and resource: delete a document in a KVS table identified by primary key, and it is distinguishable from sibling kvs__DeleteTable which drops a table rather than a document. It does not, however, explicitly name any sibling or scope boundary to reinforce that distinction.

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?

Usage is implied by the delete-a-document framing, and the phrase 'allows conditional execution' hints at a guarded-delete mode, but there is no explicit statement of when to use this versus kvs__UpdateKv, kvs__BatchWriteKv, or kvs__DeleteTable, and no preconditions are given.

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