Skip to main content
Glama

das__ShowSqlSwitchStatus

Queries whether DAS full SQL or slow SQL collection is enabled for a specified paid instance, using the instance ID, project ID, database type, and switch type.

Instructions

[DAS] 查询DAS收集全量SQL和慢SQL的开关状态。该功能仅支持付费实例。

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>",
      "type": "<type>"
    },
    "name": "das__ShowSqlSwitchStatus"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes开关类型。取值DAS SQL Explorer和DAS Slow Query Log,分别表示DAS收集全量SQL开关和DAS收集慢SQL开关。
project_idYes项目ID。
instance_idYes实例ID。
datastore_typeYes数据库类型。当前全量SQL支持的数据库类型包括MySQL和GaussDB(for MySQL),慢SQL支持的类型:MySQL、GaussDB(for MySQL)、PostgreSQL。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/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 does disclose a meaningful constraint (paid-instance-only), but the read-only nature is conveyed only implicitly by the verb 查询, and it says nothing about permissions, what the returned status values look like, or per-database-type limitations for the other parameters.

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 with the purpose front-loaded and the instance-tier restriction immediately after; nothing is redundant. The only minor noise is the bracketed "[DAS]" service tag, which adds little for an agent that already saw the tool namespace.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only status query with four fully documented required parameters and no output schema, the description covers enough to call it. Still, it omits how results map to the `type` switch kinds and gives no hint that a sibling tool performs the corresponding change, leaving the agent to infer the read/write pairing.

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% and every parameter, including the enum-like values for `type`, is documented in the schema itself. The description adds no syntax, formatting, or defaulting information for any parameter, 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 (查询/query) and resource (DAS full-SQL and slow-SQL collection switch status), plus the "[DAS]" service prefix. It is clear what the tool returns-in-principle, but it does not explicitly distinguish itself from the sibling mutation tool das__ChangeSqlSwitch or the other *SwitchStatus tools, so it stops 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one real precondition — the feature only works on paid instances (仅支持付费实例) — which helps an agent decide feasibility before calling. However, there is no explicit when-to-use vs. when-not guidance and no pointer to the counterpart tool for actually toggling the switch, so the routing signal is only implied.

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