Alibaba Cloud Observability MCP Server

sls_diagnose_query

Diagnose and analyze SLS query issues in Alibaba Cloud Observability. Identify query correctness, performance bottlenecks, and optimization suggestions based on error messages.

Instructions

诊断SLS查询语句。

## 功能概述 当 SLS 查询语句执行失败时,可以调用该工具,根据错误信息,生成诊断结果。诊断结果会包含查询语句的正确性、性能分析、优化建议等信息。 ## 使用场景 - 当需要诊断SLS查询语句的正确性时 - 当 SQL 执行错误需要查找原因时 ## 查询示例 - "帮我诊断下 XXX 的日志查询语句" - "帮我分析下 XXX 的日志查询语句" Args: ctx: MCP上下文,用于访问SLS客户端 query: SLS查询语句 error_message: 错误信息 project: SLS项目名称 log_store: SLS日志库名称 region_id: 阿里云区域ID

Input Schema

NameRequiredDescriptionDefault
error_messageYeserror message
log_storeYessls log store name
projectYessls project name
queryYessls query
region_idYesaliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'

Input Schema (JSON Schema)

{ "properties": { "error_message": { "description": "error message", "title": "Error Message", "type": "string" }, "log_store": { "description": "sls log store name", "title": "Log Store", "type": "string" }, "project": { "description": "sls project name", "title": "Project", "type": "string" }, "query": { "description": "sls query", "title": "Query", "type": "string" }, "region_id": { "description": "aliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'", "title": "Region Id", "type": "string" } }, "required": [ "query", "error_message", "project", "log_store", "region_id" ], "title": "sls_diagnose_queryArguments", "type": "object" }

You must be authenticated.

Other Tools from Alibaba Cloud Observability MCP Server

Related Tools

ID: 3ls5g1x8rn