Skip to main content
Glama
aliyun

Alibaba Cloud Observability MCP Server

Official
by aliyun

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Other Tools

Related 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-observability-mcp-server'

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