Skip to main content
Glama

Time of Meeting

Business-hour overlap on a date

business_hours_overlap
Read-onlyIdempotent

Work-hour overlap for two to eight cities in different time zones on one date. Use when the user asks when the work hours of several cities overlap on a day. Uses the same overlap as the planner: work is 9:00–17:00 local, early or late is 7:00–9:00 and 17:00–19:00, and other hours are night. The result is that day's fair slot, with label best, fairest, or a shifted least-bad window, each city's local start and end, and the score. A public holiday in a city is named and lowers the score. date is YYYY-MM-DD.

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": {
      "cities": "<cities>",
      "date": "<date>"
    },
    "name": "business_hours_overlap"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe day to measure, YYYY-MM-DD. Also accepted: YYYY-MM-DDTHH:MM, YYYY-MM-DDTHH:MM:SSZ, YYYY/MM/DD, or YYYYMMDD.
citiesYesTwo to eight cities. A list of strings. Each item is one city. A comma in an item adds a region, state or country to that city; it is not a second city. One city: a name, a city id from a city search, an IANA time zone such as Europe/Copenhagen, or a zone abbreviation or fixed offset such as EST, CET, UTC or UTC+2. A comma adds a region, state or country to that one city, for example "Paris, France", "Paris, TX" or "Munich, Bavaria"; it is not a second city. Multiple cities must be separate list items, for example ["Berlin","Rome"]. Spelling and accents are flexible. When several cities share a name, the best match from the site search is used and the others come back in alternatives.

Output Schema

NameRequiredDescriptionDefault
endYes
dateYes
linkYes
errorNo
labelYes
scoreYes
startYes
weeksYesISO week (Monday start; week 1 contains the year's first Thursday) and US week (Sunday start; 1 January is week 1 of that calendar year).
citiesYes
reasonsYes
shiftedYes
candidatesNo
zone_notesNoPresent when a city argument was a time zone abbreviation or fixed offset such as EST or UTC+2. Says which time zone it was read as, and what else the abbreviation can mean.
match_notesNoPresent when the city name given was not an exact match, so the closest city was used. Says which city was used. Other close matches are in alternatives.
alternativesNoOther cities that matched the same name, after the best-ranked city was chosen. The order is the site search order: match, then priority, then population.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / cities / items / properties / kind / description
      Added value: +"Work-hour band: work (09:00–17:00), early_late (07:00–09:00 and 17:00–19:00), or night."
    • addedOutput schema / properties / cities / items / properties / kind / enum
      Added value: +[
      +  "work",
      +  "early_late",
      +  "night"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / cities / items / properties / dst / description
      Added value: +"The clock change in this city during the slot or within 24 hours of it, or null if there is none. Gives the time of the change in UTC (at), the offsets before and after, and the direction (forward or back)."
    • addedOutput schema / properties / match_notes
      Added value: +{
      +  "description": "Present when the city name given was not an exact match, so the closest city was used. Says which city was used. Other close matches are in alternatives.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / cities / description
      Previous value: -"Two to eight cities. An array, or one comma-separated string. City name, a city id from a city search, or an IANA time zone such as Europe/Copenhagen. Spelling and accents are flexible. When several cities share a name, the best match from the site search is used and the others come back in alternatives."New value: +"Two to eight cities. A list of strings. Each item is one city. A comma in an item adds a region, state or country to that city; it is not a second city. One city: a name, a city id from a city search, an IANA time zone such as Europe/Copenhagen, or a zone abbreviation or fixed offset such as EST, CET, UTC or UTC+2. A comma adds a region, state or country to that one city, for example \"Paris, France\", \"Paris, TX\" or \"Munich, Bavaria\"; it is not a second city. Multiple cities must be separate list items, for example [\"Berlin\",\"Rome\"]. Spelling and accents are flexible. When several cities share a name, the best match from the site search is used and the others come back in alternatives."
    • addedOutput schema / properties / zone_notes
      Added value: +{
      +  "description": "Present when a city argument was a time zone abbreviation or fixed offset such as EST or UTC+2. Says which time zone it was read as, and what else the abbreviation can mean.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed2 schema fields changed
    • changedInput schema / properties / cities / description
      Previous value: -"Two to eight cities. An array, or one comma-separated string. City name or a city id from a city search. Spelling and accents are flexible. When several cities share a name, the best match from the site search is used and the others come back in alternatives."New value: +"Two to eight cities. An array, or one comma-separated string. City name, a city id from a city search, or an IANA time zone such as Europe/Copenhagen. Spelling and accents are flexible. When several cities share a name, the best match from the site search is used and the others come back in alternatives."
    • changedInput schema / properties / date / description
      Previous value: -"The day to measure, YYYY-MM-DD."New value: +"The day to measure, YYYY-MM-DD. Also accepted: YYYY-MM-DDTHH:MM, YYYY-MM-DDTHH:MM:SSZ, YYYY/MM/DD, or YYYYMMDD."
  5. Changed1 schema field changed
    • changedInput schema / properties / cities / description
      Previous value: -"Two to eight cities. An array, or one comma-separated string. City name or a city id from search_cities. Spelling and accents are flexible. When several cities share a name, the best match from the site search is used and the others come back in alternatives."New value: +"Two to eight cities. An array, or one comma-separated string. City name or a city id from a city search. Spelling and accents are flexible. When several cities share a name, the best match from the site search is used and the others come back in alternatives."
  6. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's value is the logic it adds: the 9–17 / 7–9 / 17–19 / night banding, the fair-slot labeling, and the fact that a public holiday is named and lowers the score. It stops short of explaining tie-breaking or how the score is computed.

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 purpose and when-to-use, then the banding and return summary, which is the right order. The trailing "date is YYYY-MM-DD" duplicates the schema and the earlier date mention, a small redundancy.

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

Completeness4/5

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

With a rich input schema, an output schema, and full annotations, the remaining burden on the description is behavioral context, and it supplies the scoring/banding rules and holiday penalty. The one gap is explicit positioning against the meeting-slot sibling for users who phrase requests ambiguously.

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%, and the schema already details accepted date formats and city strings including comma-region parsing and alternatives. The description only restates the 2–8 city bound and the YYYY-MM-DD format, adding no meaning beyond the schema, so the baseline of 3 applies.

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 operation – computing work-hour overlap for 2–8 cities on one date – and pins the scope (single date, differing time zones). That scope, plus the work/early-late/night band definitions, makes it distinguishable from slot-finding siblings like find_best_meeting_time without opening a schema.

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?

"Use when the user asks when the work hours of several cities overlap on a day" gives a clear triggering condition. It does not state when NOT to use it or name an alternative for related questions (e.g. picking a concrete meeting time), so it falls short of full 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.

Resources