Skip to main content
Glama

ACTION_GET_TIME

Retrieve current date, time, timestamp, and weekday values for scheduling, logging, or conditional workflow logic, with optional formatting and saved output variables.

Instructions

获取当前时间及年月日时分秒。输出:current_time, current_timestamp, current_year, current_month, current_day, current_hour, current_minute, current_second, current_weekday, time_success。current_weekday 0=周日…6=周六(与 ACTION_PARSE_DATETIME 的 1=周一不同)。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
formatNo时间格式(SimpleDateFormat 模式)(默认 yyyy-MM-dd HH:mm:ss)
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
timestampNo目前不影响输出;毫秒时间戳总写在 current_timestamp(默认 false)
output_varNo格式化时间另存到的变量名(current_time 总会写)(默认 current_time)
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description meaningfully discloses the output variables, variable-snapshot JSON return format, ${var} interpolation, and the potentially error-prone Sunday-based weekday numbering. It does not explicitly discuss timezone behavior or state that the operation is side-effect free, but it covers the important behavior of this simple read-oriented tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the operation and then moves efficiently through outputs, compatibility details, and invocation behavior. The output enumeration is dense but justified by the absence of an output schema; the duplicated “。。” punctuation is a minor polish issue.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with no required parameters, the combined definition covers invocation defaults and error handling through the schema while the description supplies output names, return structure, and interoperability semantics. Enumerating the outputs is especially valuable because no output schema is provided.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the parameters are already well documented. The description adds value beyond that baseline by explaining that string parameters support ${var} interpolation, a cross-cutting invocation behavior absent from the individual parameter schemas.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening “获取当前时间及年月日时分秒” clearly states that the tool retrieves the current time and its date/time components. It does not differentiate its purpose from siblings such as ACTION_WAIT_UNTIL_TIME; the ACTION_PARSE_DATETIME reference concerns weekday encoding rather than tool selection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Retrieving the current time provides an implied use case, but there is no explicit guidance on when to choose this tool over parsing, waiting, or other time-related actions. The sibling cross-reference is still useful because it prevents incorrect weekday interpretation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.