Skip to main content
Glama

das__CreateSqlLimitRules

Create SQL throttling rules for MySQL and PostgreSQL instances to limit query concurrency and prevent resource contention.

Instructions

[DAS] 添加SQL限流规则。目前仅支持MySQL和PostgreSQL数据库。

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>",
      "project_id": "<project_id>",
      "sql_limit_rules": "<sql_limit_rules>"
    },
    "name": "das__CreateSqlLimitRules"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes项目ID
instance_idYes实例ID
database_nameNo数据库名(PostgreSQL必填)
datastore_typeYes数据库类型
sql_limit_rulesYes需要创建的SQL限流规则列表,一次最多创建5个

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 one useful constraint (only MySQL and PostgreSQL are supported), but says nothing about permissions, whether rules take effect immediately, idempotency on duplicate patterns, or what the mutation returns.

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?

Two short sentences, front-loaded with the action and followed by the scope constraint; no filler or redundancy. It is efficient, though the brevity reflects thin content rather than tight editing of rich content.

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 write tool with five parameters, a nested array of rule objects, no annotations, and no output schema, the description is thin. It omits permissions, the effect and immediacy of the created rules, error behavior for unsupported datastore types, and any hint of the response.

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 every parameter, including the nested rule object fields and the "一次最多创建5个" cap, is already documented in the schema. The description adds only the datastore-type constraint, which restates the enum, 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?

States a specific verb+resource: "添加SQL限流规则" (add SQL limit rules), and bounds the scope with "目前仅支持MySQL和PostgreSQL数据库". It is clear what the tool does, but it never distinguishes itself from siblings such as das__UpdateSqlLimitRules or rds__CreateSqlLimit.

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?

The verb "添加" implies this is for creating new rules rather than modifying existing ones, and the database-support sentence implicitly scopes when the tool is applicable. However, there is no explicit when-to-use/when-not guidance, no mention of prerequisites, and no named alternative for updating or listing rules.

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