Skip to main content
Glama

duration_elapsed

Track elapsed time for tasks: records a start moment on first call, then returns how long has passed, with reset to begin a new timer.

Instructions

任务时长感知:记录任务起始时刻并返回「已过去多久」。首次调用自动开始计时,后续调用返回累计时长;可用 reset=true 重新计时。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNo可选任务描述,原样返回给调用方
resetNo重置该任务的起始时刻为当前(或 started_at),作为新一轮计时开始
task_idNo任务 id,用于区分同一会话下的多个任务,缺省为 main
timezoneNo结果显示所用 IANA 时区,缺省系统时区
session_idNo会话 id,缺省为 default(同一 MCP 连接内默认使用一个会话)
started_atNo可选:手动指定任务的起始时刻(ISO 8601 字符串)。不给则首次调用自动记录为当前时刻

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the stateful lifecycle: auto-start on first call, cumulative return thereafter, and reset behavior. It omits other traits an agent would want, such as whether state persists across sessions/connections, what happens with a supplied started_at, or any error behavior.

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?

Compact and front-loaded: the core purpose comes first, followed by the lifecycle rules in semicolon-separated clauses. Every clause earns its place with no filler, though the density leaves some behavior (return format) unaddressed rather than wasted.

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

Completeness3/5

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

No output schema exists, so the description should at least sketch what is returned; it states only conceptually that it returns 'how long has elapsed' without unit/format. Given all six parameters are well documented in the schema and the lifecycle is covered, the definition is adequate but not fully complete.

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

Parameters3/5

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

Schema description coverage is 100%, so all six parameters are already documented in the schema and the baseline is 3. The description reinforces the reset (restart timing) and auto-start (started_at) semantics but adds no syntax, format, or default details beyond what the schema already states.

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?

States a specific verb+resource: it records a task start moment and returns elapsed time, which is a clear, distinct purpose. It does not explicitly name or contrast against siblings such as time_until, current_time, or agent_clock, so an agent must infer the difference from the cumulative-per-session semantics.

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?

The description clearly explains the call lifecycle (first call auto-starts, later calls return cumulative duration, reset=true restarts), which is useful implied usage guidance. However, it never states when to prefer this tool over siblings like time_until or current_time, so alternative routing is left to inference.

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