Skip to main content
Glama

time_math

Read-onlyIdempotent

Perform compound time-math operations such as adding days, calculating differences, converting time zones, parsing natural language time expressions, and formatting durations.

Instructions

Performs compound time-math operations. Dispatches to the appropriate sub-operation based on the 'operation' parameter. Operations: add_days, add_business_days, diff, convert_tz, parse_nl, format_duration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesThe time arithmetic operation to perform. Each operation expects specific operands.
operandsYesKey-value pairs matching the chosen operation's expected fields. See operation documentation for required keys.
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true. The description adds the dispatch behavior, which is useful but not extensive. There is no contradiction with annotations.

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

Conciseness5/5

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

The description is extremely concise: two sentences that front-load the main purpose and list the operations. No redundant words; every sentence serves a clear purpose.

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?

Given the complexity of multiple sub-operations and the absence of an output schema, the description lacks details about expected return values, operand structures for each operation, and examples. It is minimally viable but not richly informative.

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 coverage is 100% with both parameters described. The description lists the operation enum values but does not add new information beyond the schema. It does not specify the required keys for the 'operands' object per operation.

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 it performs compound time-math operations and dispatches to sub-operations, listing the six operations. However, it does not differentiate when to use this tool versus standalone sibling tools like add_business_days or convert_timezone, which overlap with the sub-operations.

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

Usage Guidelines2/5

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

No guidance is provided on when to use time_math vs. the separate sibling tools that perform overlapping sub-operations. The agent receives no criteria for choosing between the two paths, leading to potential confusion.

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/KyaniteLabs/Epoch'

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