Skip to main content
Glama
JMoak
by JMoak

TIME CALCULATOR

Calculate time differences, add/subtract durations, analyze time intervals, and sort timestamps using date arithmetic operations.

Instructions

Perform time arithmetic operations including duration calculations, date math, interval operations, statistical analysis, and sorting. Use for adding/subtracting time periods, calculating differences between dates, analyzing time-based datasets, or sorting arrays of timestamps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesType of calculation to perform
interaction_modeNoHow base_time and compare_time arrays interact. 'auto_detect' handles single-to-single, single-to-many, many-to-single automatically. Defaults to 'auto_detect'
base_timeNoBase ISO datetime(s). Single string or array. Defaults to current time if not provided
compare_timeNoCompare ISO datetime(s) for diff/duration_between operations. Single string or array
timezoneNoTimezone for base_time (e.g., 'America/New_York')
compare_time_timezoneNoTimezone for compare_time. If not provided, base_time timezone is used
yearsNoYears to add/subtract
monthsNoMonths to add/subtract
daysNoDays to add/subtract
hoursNoHours to add/subtract
minutesNoMinutes to add/subtract
secondsNoSeconds to add/subtract
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it mentions the types of operations, it doesn't disclose important behavioral traits like whether operations are read-only or mutating, error handling for invalid inputs, performance characteristics, or what the return values look like. For a complex tool with 12 parameters, this is a significant gap in behavioral transparency.

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 appropriately sized with two sentences that efficiently cover purpose and usage. The first sentence establishes the scope of operations, and the second provides specific use cases. There's no wasted text, and information is front-loaded, though it could be slightly more structured by grouping related operations.

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

Completeness2/5

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

For a complex tool with 12 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't address what the tool returns, how errors are handled, performance considerations, or provide guidance on parameter combinations for different operations. The schema covers parameter definitions well, but the description fails to provide the contextual understanding needed for effective tool use.

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 the schema already documents all parameters thoroughly. The description adds no specific parameter semantics beyond what's in the schema - it doesn't explain how parameters interact, which parameters are required for which operations, or provide additional context about parameter usage. Baseline 3 is appropriate when the schema does all the parameter documentation work.

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 description clearly states the tool performs 'time arithmetic operations' and lists specific functions like duration calculations, date math, and sorting. It distinguishes from the sibling 'GET TIME' by emphasizing calculations rather than retrieval, though it doesn't explicitly contrast them. The verb+resource combination is specific but could be more precise about the computational nature.

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

Usage Guidelines4/5

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

The description provides clear usage contexts with 'Use for adding/subtracting time periods, calculating differences between dates, analyzing time-based datasets, or sorting arrays of timestamps.' This gives explicit when-to-use guidance for different scenarios. However, it doesn't mention when NOT to use it or explicitly compare with the sibling 'GET TIME' tool.

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

Install Server

Other 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/JMoak/chrono-mcp'

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