Alibaba Cloud Observability MCP Server

sls_describe_logstore

Retrieve detailed structure and index information for a specified SLS log store, including field types, aliases, and case sensitivity. Use this tool to analyze log data schema and optimize query building.

Instructions

获取SLS日志库的结构信息。

## 功能概述 该工具用于获取指定SLS项目中日志库的索引信息和结构定义,包括字段类型、别名、是否大小写敏感等信息。 ## 使用场景 - 当需要了解日志库的字段结构时 - 当需要获取日志库的索引配置信息时 - 当构建查询语句前需要了解可用字段时 - 当需要分析日志数据结构时 ## 返回数据结构 返回一个字典,键为字段名,值包含以下信息: - alias: 字段别名 - sensitive: 是否大小写敏感 - type: 字段类型 - json_keys: JSON字段的子字段信息 ## 查询示例 - "我想查询 XXX 的日志库的 schema" - "我想查询 XXX 的日志库的 index" - "我想查询 XXX 的日志库的结构信息" Args: ctx: MCP上下文,用于访问SLS客户端 project: SLS项目名称,必须精确匹配 log_store: SLS日志库名称,必须精确匹配 region_id: 阿里云区域ID Returns: 包含日志库结构信息的字典

Input Schema

NameRequiredDescriptionDefault
log_storeYessls log store name,must exact match,not fuzzy search
projectYessls project name,must exact match,not fuzzy search
region_idYesaliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'

Input Schema (JSON Schema)

{ "properties": { "log_store": { "description": "sls log store name,must exact match,not fuzzy search", "title": "Log Store", "type": "string" }, "project": { "description": "sls project name,must exact match,not fuzzy search", "title": "Project", "type": "string" }, "region_id": { "description": "aliyun region id,region id format like 'xx-xxx',like 'cn-hangzhou'", "title": "Region Id", "type": "string" } }, "required": [ "project", "log_store", "region_id" ], "title": "sls_describe_logstoreArguments", "type": "object" }

You must be authenticated.

Other Tools from Alibaba Cloud Observability MCP Server

Related Tools

ID: 3ls5g1x8rn