sls_get_current_time
Retrieve the current timestamp and formatted time string to set query time ranges or perform time calculations in SLS queries on Alibaba Cloud Observability MCP Server.
Instructions
获取当前时间信息。
        ## 功能概述
        该工具用于获取当前的时间戳和格式化的时间字符串,便于在执行SLS查询时指定时间范围。
        ## 使用场景
        - 当需要获取当前时间以设置查询的结束时间
        - 当需要获取当前时间戳进行时间计算
        - 在构建查询时间范围时使用当前时间作为参考点
        ## 返回数据格式
        返回包含两个字段的字典:
        - current_time: 格式化的时间字符串 (YYYY-MM-DD HH:MM:SS)
        - current_timestamp: 整数形式的Unix时间戳(秒)
        Args:
            ctx: MCP上下文
        Returns:
            包含当前时间信息的字典
        
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| No arguments | |||
Input Schema (JSON Schema)
{
  "properties": {},
  "title": "sls_get_current_timeArguments",
  "type": "object"
}