Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Time Difference

calculate_time_difference
Read-onlyIdempotent

Compute the difference between two times or dates in seconds, minutes, hours, days. Use for project tracking, age, or scheduling. Inputs: start datetime, end datetime. Returns delta in multiple units. See list_bundles for related 'voyage' calculators.

Input Schema

NameRequiredDescriptionDefault
city1YesFirst city
city2YesSecond city

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is fully covered by structured fields. The description adds only 'Returns delta in multiple units,' which is thin but not contradictory; it discloses nothing about rounding, sign convention, or boundary handling.

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

Conciseness3/5

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

Front-loaded with the core action, but it runs four sentences where two would do, and one of them ('See list_bundles for related voyage calculators') carries no actionable information. Structure is acceptable; content economy is not.

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

Completeness1/5

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

For a two-required-parameter tool, the description never mentions the only inputs the schema accepts (cities) and instead describes a different signature entirely. An agent reading only the description would pass the wrong arguments; the presence of an output schema excuses only the return-value explanation.

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

Parameters1/5

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

The description asserts 'Inputs: start datetime, end datetime,' but the schema requires city1 and city2, both enums of ten city names, with additionalProperties false. This does not merely under-document the two parameters (whose schema coverage is 100%) — it actively misdescribes them, which is worse than silence.

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

Purpose3/5

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

States a specific verb ('Compute the difference') and resource ('two times or dates') with the output units enumerated, which is reasonably clear in isolation. However, the stated resource does not match the tool's actual inputs (cities), and it does nothing to separate itself from close siblings like calculate_days_between, calculate_age_in_units, or calculate_time_zone_difference.

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?

'Use for project tracking, age, or scheduling' gestures at contexts but gives no criteria for choosing this over the many sibling calculators that cover the same ground (calculate_days_between, calculate_age, calculate_time_zone_difference). The trailing pointer to 'list_bundles for related voyage calculators' is irrelevant noise rather than routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.