Skip to main content
Glama

kvs__ScanKv

Scan all key-value entries in a specified KVS table and apply optional filters to identify matching records.

Instructions

[KVS] 指定表,扫描表下所有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__ScanKv"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, yet it does not mention permissions, result-size limits, pagination, ordering, or return shape for what is inherently a potentially large full-table scan. Worse, it advertises 'filter conditions' that have no corresponding parameter in the schema, which could send an agent looking for a filter argument that doesn't exist.

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 compact, front-loaded clause with no filler, which is appropriate for a simple tool. Its brevity is only a problem insofar as it omits needed information, not because of wasted wording.

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?

With no annotations, no output schema, no required parameters, and a schema that contradicts the description's mention of tables and filters, the definition leaves an agent without enough to call this correctly or predict its cost. It should at minimum state that the table/store scope is derived from store_name and that no filter argument exists.

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 store_name parameter, which would normally warrant a baseline of 3. However, the description instead talks about a table and filter conditions that are absent from the schema, adding confusion rather than meaning, and it does not clarify the role of store_name (the warehouse name) or why zero parameters are required despite the tool being table-scoped.

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: scan all KVs under a specified table, with an optional filter. That is clear enough for an agent to know what it does. It does not, however, distinguish the tool from the sibling kvs__ScanSkeyKv or explain how a full-table scan differs from kvs__BatchGetKv/kvs__GetKv, so it falls short of a 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 when-to-use guidance: nothing says to prefer this over ScanSkeyKv, BatchGetKv, or GetKv, and there is no warn-off for large tables or expensive full scans. The only usage hint is the implied 'scan everything in a table', which an agent could infer without the description.

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