Skip to main content
Glama

time_business_elapsed

Read-only

Business time elapsed (SLA clock) — How much business time has passed between two moments: counts only working hours on working days in any IANA time zone, skips weekends and US federal holidays (observed dates), subtracts pauses (waiting-on-customer), and with target_hours reports SLA used %, remaining time, ON TRACK / AT RISK / BREACHED and the exact due or breach time. Params: start (required; local ISO in tz, or with Z/offset, or unix), end (default now), tz (default America/New_York), hours (09:00-17:00 or 24h), days (mon-fri, mon,wed,fri, all), holidays (us|none), exclude (extra closed dates YYYY-MM-DD,...), pauses (start~end,...), target_hours or target_minutes. Per-day breakdown included. Example: /v1/time/business-elapsed?start=2026-11-25T16:00&end=2026-12-01T09:30&tz=America/Chicago&target_hours=8 Price: $0.002 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "start": "<start>"
    },
    "name": "time_business_elapsed"
  }
}

Input Schema

NameRequiredDescriptionDefault
startYes2026-11-16T09:00

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / start / description
      Previous value: -"2026-11-25T16:00"New value: +"2026-11-16T09:00"
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (which only cover read-only, open-world, non-destructive): it discloses the counting rules (working hours only, skips weekends and US federal holidays including observed dates), that pauses are subtracted as waiting-on-customer time, that a per-day breakdown is returned, and that calls are metered at $0.002 USDC via x402 — a payment prerequisite the agent could not otherwise infer.

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?

Front-loaded with the core concept and the SLA output before the parameter catalog, so the agent gets the gist in the first clause. It is dense and runs long in a single paragraph, but nearly every token is functional (rules, defaults, formats, example, price) with little filler.

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?

There is no output schema, so the description must describe results — and it does: SLA used %, remaining time, ON TRACK / AT RISK / BREACHED status, exact due or breach time, and a per-day breakdown. Combined with documented defaults and an end-to-end example, nothing essential for correct invocation is missing.

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

Parameters5/5

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

The input schema exposes only `start` with a bare example, while the description documents the full query surface: end (default now), tz, hours, days, holidays (us|none), exclude, pauses (start~end), and target_hours/target_minutes, including accepted formats (local ISO, Z/offset, unix) and date syntax. This adds substantial meaning the structured schema does not carry.

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

Purpose5/5

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

States a specific verb and resource — computes business-time elapsed (SLA clock) between two moments — and immediately scopes it (working hours, working days, IANA tz, holidays, pauses). An agent can distinguish it from sibling time_business_days / time_business_hours because the description defines it as an interval computation with SLA output rather than a single-unit conversion.

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?

Clear usage context: it is for measuring elapsed business time between two instants, optionally against a target to produce SLA status. It gives concrete defaults (end=now, tz=America/New_York, hours 09:00-17:00) and an example call. It stops short of explicitly naming when to prefer time_business_days or time_business_hours instead, so no exclusions are stated.

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.

Resources