alibabacloud-observability-cloud-sso-mcp

v0.3.0
alibabacloud-observability-cloud-sso-mcp Checked 19 hours ago Published 9 months ago

aliyun observability mcp server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sls_list_projects

列出阿里云日志服务中的所有项目。 ## 功能概述 该工具可以列出指定区域中的所有SLS项目,支持通过项目名进行模糊搜索。如果不提供项目名称,则返回该区域的所有项目。 ## 使用场景 - 当需要查找特定项目是否存在时 - 当需要获取某个区域下所有可用的SLS项目列表时 - 当需要根据项目名称的部分内容查找相关项目时 ## 返回数据结构 返回的项目信息包含: - project…

ParameterTypeDescription
regionId *stringaliyun region id
limitintegerlimit,max is 100
projectNamestringproject name,fuzzy search

sls_list_logstores

列出SLS项目中的日志库。 ## 功能概述 该工具可以列出指定SLS项目中的所有日志库,如果不选,则默认为日志库类型 支持通过日志库名称进行模糊搜索。如果不提供日志库名称,则返回项目中的所有日志库。 ## 使用场景 - 当需要查找特定项目下是否存在某个日志库时 - 当需要获取项目中所有可用的日志库列表时 - 当需要根据日志库名称的部分内容查找相关日志库时 - 如果从上ä…

ParameterTypeDescription
project *stringsls project name,must exact match,should not contain chinese characters
regionId *stringaliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'
isMetricStorebooleanis metric store,default is False,only use want to find metric store
limitintegerlimit,max is 100
logStorestringlog store name,fuzzy search
logStoreTypestringlog store type,default is logs,should be logs,metrics

sls_describe_logstore

获取SLS日志库的结构信息。 ## 功能概述 该工具用于获取指定SLS项目中日志库的索引信息和结构定义,包括字段类型、别名、是否大小写敏感等信息。 ## 使用场景 - 当需要了解日志库的字段结构时 - 当需要获取日志库的索引配置信息时 - 当构建查询语句前需要了解可用字段时 - 当需要分析日志数据结构时 ## 返回数据结构 返回一个字典,键为字段名,值包含以下信息ï…

ParameterTypeDescription
logStore *stringsls log store name,must exact match,not fuzzy search
project *stringsls project name,must exact match,not fuzzy search
regionId *stringaliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'

sls_execute_sql_query

执行SLS日志查询。 ## 功能概述 该工具用于在指定的SLS项目和日志库上执行查询语句,并返回查询结果。查询将在指定的时间范围内执行。 ## 使用场景 - 当需要根据特定条件查询日志数据时 - 当需要分析特定时间范围内的日志信息时 - 当需要检索日志中的特定事件或错误时 - 当需要统计日志数据的聚合信息时 ## 查询语法 查询必须使用SLS有效的查询语法,而非自然语…

ParameterTypeDescription
fromTimestampInSeconds *integerfrom timestamp,unit is second,should be unix timestamp, only number,no other characters
logStore *stringsls log store name
project *stringsls project name
query *stringquery
regionId *stringaliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'
toTimestampInSeconds *integerto timestamp,unit is second,should be unix timestamp, only number,no other characters
limitintegerlimit,max is 100

sls_diagnose_query

诊断SLS查询语句。 ## 功能概述 当 SLS 查询语句执行失败时,可以调用该工具,根据错误信息,生成诊断结果。诊断结果会包含查询语句的正确性、性能分析、优化建议等信息。 ## 使用场景 - 当需要诊断SLS查询语句的正确性时 - 当 SQL 执行错误需要查找原因时 ## 查询示例 - "帮我诊断下 XXX 的日志查询语句" - "帮我分析下 XXX 的日志查询语句" Args: ctx: MCP上下…

ParameterTypeDescription
errorMessage *stringerror message
logStore *stringsls log store name
project *stringsls project name
query *stringsls query
regionId *stringaliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'

sls_get_regions

获取阿里云的部分区域列表。 ## 功能概述 该工具用于获取阿里云的部分区域列表,便于在执行SLS查询时指定区域。 ## 使用场景 - 当需要获取阿里云的部分区域列表时 - 当需要根据区域进行SLS查询时 - 当用户没有明确指定区域ID 时,可以调用该工具获取区域列表,并要求用户进行选择 ## 返回数据格式 返回包含区域列表的字典,每个字典包含region_id和region_name。 ## 查…

sls_get_current_time

获取当前时间。 ## 功能概述 1. 获取当前时间,会返回当前时间字符串和当前时间戳(毫秒) ## 使用场景 1. 只有当无法从聊天记录里面获取到当前时间时候才可以调用该工具

cms_execute_promql_query

执行Prometheus指标查询。 ## 功能概述 该工具用于在指定的SLS项目和时序库上执行查询语句,并返回查询结果。查询将在指定的时间范围内执行。 如果上下文没有提到具体的时间戳,必须优先使用 sls_get_current_time 工具生成时间戳参数,默认为最近15分钟 ## 使用场景 - 当需要根据特定条件查询日志数据时 - 当需要分析特定时间范围内的日志信息时 - 当需要检索日志中的特定事件或错误时…

ParameterTypeDescription
fromTimestampInSeconds *integerfrom timestamp,unit is second,should be unix timestamp, only number,no other characters
metricStore *stringsls metric store name
project *stringsls project name
query *stringquery
regionId *stringaliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'
toTimestampInSeconds *integerto timestamp,unit is second,should be unix timestamp, only number,no other characters