Skip to main content
Glama
aliyun

Alibaba Cloud RDS OpenAPI MCP Server

Official
by aliyun

describe_sql_insight_statistic

Read-only

Query SQL log statistics for an RDS instance to analyze cost time, execution times, and account details within a specified time range, returned in CSV format.

Instructions

Query SQL Log statistics, including SQL cost time, execution times, and account.
Args:
    dbinstance_id (str): The ID of the RDS instance.
    start_time(str): the start time of sql insight statistic. e.g. 2025-06-06 20:00:00
    end_time(str): the end time of sql insight statistic. e.g. 2025-06-06 20:10:00
Returns:
    the sql insight statistic information in csv format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_timeYes
start_timeYes
dbinstance_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations provide 'readOnlyHint=true', which is consistent with the description's 'Query' nature. The description adds the return format (CSV) but lacks details on error handling, rate limits, or behavioral traits like data freshness or date range restrictions.

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?

The description is concise, front-loading the purpose and providing parameter details in a docstring-like format. No redundant sentences; however, the 'Args:' style is slightly informal for a JSON-based environment.

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

Completeness4/5

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

Given the tool's simplicity (3 required string parameters, read-only, CSV output), the description provides sufficient context. The output schema exists to detail return fields, so the description need not elaborate. It covers purpose and parameters adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description compensates well by explaining 'dbinstance_id' as the RDS instance ID and providing format examples for 'start_time' and 'end_time' (e.g., '2025-06-06 20:00:00'). This adds meaning beyond the schema's titles.

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 clearly states it queries SQL log statistics including cost time, execution times, and account, using the verb 'Query'. While it distinguishes itself from siblings like 'describe_db_instance_performance' and 'describe_slow_log_records' by focusing on 'SQL insight statistic', it could be more explicit about how it differs.

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 guidance on when to use this tool versus alternatives like 'describe_slow_log_records' or 'query_sql'. The description does not mention prerequisites, constraints, or when not to use it, lacking explicit usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aliyun/alibabacloud-rds-openapi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server