Skip to main content
Glama

gaussdbfornosql__CreateDbCacheRule

Create a memory acceleration cache rule mapping source database table columns to key-value pairs in a target database, enabling faster read access for GaussDB NoSQL data.

Instructions

[GAUSSDBFORNOSQL] 创建内存加速规则。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "dbcache_mapping_id": "<dbcache_mapping_id>",
      "key_columns": "<key_columns>",
      "key_prefix": "<key_prefix>",
      "key_separator": "<key_separator>",
      "name": "<name>",
      "project_id": "<project_id>",
      "source_db_schema": "<source_db_schema>",
      "source_db_table": "<source_db_table>",
      "storage_type": "<storage_type>",
      "target_database": "<target_database>",
      "value_columns": "<value_columns>"
    },
    "name": "gaussdbfornosql__CreateDbCacheRule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNokey的生存时间。单位:ms。不传该值,默认取2592000000,表示30天。
nameYes内存加速规则名称。不超过256字符,需要确保在当前映射下唯一。
key_prefixYes键前缀。最长限制1024字符。需确保key_prefix和target_database在当前映射下唯一。
project_idYes租户在某一region下的project ID。
key_columnsYes映射的key使用的column列表。
storage_typeYes目标数据存储类型。 取值为: hash。
key_separatorYes映射的key分隔符。只允许一个字符。
value_columnsYes映射的value使用的column列表。
source_db_tableYes源端数据表。
target_databaseYes目标数据库。取值范围: [0-999]。
value_separatorNo映射的value分隔符。只允许一个字符。
source_db_schemaYes源端数据库。
dbcache_mapping_idYes内存加速映射ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior1/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, yet it discloses nothing beyond the tool name: no statement that this is a mutating operation, no permission or auth requirements, no note that names and key_prefix/target_database combos must be unique within the mapping, and no indication of what is returned. The single sentence merely restates the title.

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?

It is a single, front-loaded sentence with no filler or redundancy. Brevity here reflects an under-specified definition rather than an efficient one, but structurally there is nothing to trim.

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 tool with 13 parameters, 11 of them required, no annotations, and no output schema, the definition is far too thin. The schema covers field-level details, but the description gives no framing about the mapping-rule relationship, uniqueness constraints, or side effects that an agent would want before invoking a create operation.

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 all 13 parameters (including ttl defaults, key/value column lists, separators, and storage_type) are already documented in the schema. The description adds no extra meaning about how parameters interact or which combinations are valid, so the baseline of 3 applies.

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 ("创建内存加速规则" / create an in-memory acceleration rule), which lets an agent distinguish it from DeleteDbCacheRule, UpdateDbCacheRule, and ListDbCacheRules by operation and object. It stops short of differentiating itself explicitly from other create operations such as CreateDbCacheMapping, but the verb+resource pairing is unambiguous.

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, no prerequisites (for example, that the parent mapping identified by dbcache_mapping_id must already exist), and no mention of alternatives. The agent must infer from the name alone that this is the creation counterpart to the delete/update/list rule tools.

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