Skip to main content
Glama

dws__ListQueries

Queries the real-time SQL list for a DWS cluster, supporting conditional filters and paginated results.

Instructions

[DWS] 该接口用于查询实时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": {
      "cluster_id": "<cluster_id>",
      "conditions": "<conditions>",
      "limit": "<limit>",
      "offset": "<offset>",
      "project_id": "<project_id>",
      "target": "<target>"
    },
    "name": "dws__ListQueries"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes每页显示的条目数量。
offsetYes偏移量,表示从此偏移量开始查询,offset>=0。
targetYes固定值db_queries
order_byNo排序字段
cluster_idYes**参数解释**:
conditionsYes查询条件数组
project_idYes**参数解释**:

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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 disclosure burden, yet it says nothing about permissions, whether this hits a running cluster, pagination behavior, or cost of the call. The word 'real-time' hints at live data but does not explain what that implies. For a 7-parameter list operation with required conditions, this is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no wasted wording and the purpose is front-loaded. However, the brevity comes at the cost of under-specification rather than tightness; the one clause is all the definition offers for a fairly involved query tool.

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 6 required parameters, a nested condition array, no annotations, and no output schema, the definition should explain query construction and result shape. Instead it gives one clause and leaves target, conditions, and pagination behavior unexplained by the prose. It is insufficient relative to the tool's complexity.

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 already has an inline description. The prose adds no meaning beyond the schema — no explanation of the conditions array semantics or how order_by interacts with offset/limit. The baseline 3 for full schema coverage is appropriate.

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: 'query the real-time SQL list' (查询实时SQL列表). An agent can tell it lists live/running queries rather than something else. It does not name or differentiate from nearby siblings such as ListStoredQueries or ListAuditLog, 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 Guidelines2/5

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

There is no statement of when to use this tool, no prerequisites, and no pointer to alternatives. An agent must infer usage entirely from the tool name and required parameters. Nothing indicates when a live-query listing is preferable to the stored-query or audit-log siblings.

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