Skip to main content
Glama

das__ParseSqlLimitRules

Generates SQL throttling keywords from an original SQL statement for MySQL, MariaDB, and GaussDB(for MySQL), enabling creation of SQL rate-limiting rules.

Instructions

[DAS] 根据原始SQL生成SQL限流关键字,目前支持MySQL、MariaDB、GaussDB(for MySQL)三种引擎。

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": {
      "datastore_type": "<datastore_type>",
      "instance_id": "<instance_id>",
      "keep_operators": "<keep_operators>",
      "original_sql": "<original_sql>",
      "project_id": "<project_id>",
      "use_template": "<use_template>"
    },
    "name": "das__ParseSqlLimitRules"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID
instance_idYes实例ID
original_sqlYes原始SQL语句
use_templateYes是否校验SQL语句
datastore_typeYes数据库类型,目前支持MySQL、MariaDB、GaussDB(for MySQL)三种引擎。
keep_operatorsYes是否保留操作符

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?

No annotations are provided, so the description carries the full burden, and it mostly restates the engine enum already present in the schema. It does not say whether anything is persisted, whether it requires prior rule configuration, what happens on unsupported SQL, or what the generated keywords look like — significant gaps with no output schema.

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 with no filler and the tool's purpose stated immediately. It is efficient, though the brevity comes at the cost of missing usage and behavioral detail.

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 six required parameters, no annotations, and no output schema, the description leaves the agent guessing about the return value (keyword format), persistence side effects, and how the two boolean flags affect the result. Given the missing output schema, explaining the generated output was required and is absent.

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%, with all six parameters documented including the datastore_type enum. The description adds no meaning beyond the schema — notably it says nothing about how use_template or keep_operators change the generated keywords, which is the crux of this tool.

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?

States a specific verb+resource: generate SQL throttling keywords from an original SQL statement, and names the supported engines. It is distinguishable from rule-CRUD siblings like CreateSqlLimitRules/ListSqlLimitRules, but it never explicitly says it is the preprocessing step that feeds them.

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?

No when-to-use guidance: nothing says this is a pre-step before creating a throttling rule, what to do with the generated keywords, or when not to call it. Only the engine support list is given, which is already in the enum.

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