Skip to main content
Glama

find_timezone_overlap

Calculate overlapping working hours between multiple timezones to schedule meetings efficiently. Supports 2-5 locations with customizable work hours.

Instructions

Find working hours overlap between 2-5 locations for scheduling. Cost: $0.002 USDC. Service: timezonedetective.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timezonesYes
work_hours_startNo
work_hours_endNo

Implementation Reference

  • The `find_timezone_overlap` tool (along with all other tools) is handled dynamically by this request handler, which looks up the tool definition from a remote registry and executes the corresponding API call using `callTool`.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      const { name, arguments: args } = request.params;
    
      let registry: Registry;
      try {
        registry = await fetchRegistry();
      } catch (error) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({ error: "Failed to fetch tool registry", detail: String(error) }),
            },
          ],
        };
      }
    
      const tool = registry.tools.find((t) => t.name === name);
      if (!tool) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({
                error: `Tool '${name}' not found`,
                available_tools: registry.tools.map((t) => t.name),
              }),
            },
          ],
        };
      }
    
      try {
        const result = await callTool(tool, args as Record<string, unknown>);
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(result, null, 2),
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify({
                error: "Tool call failed",
                tool: name,
                service: tool.service,
                detail: String(error),
              }),
            },
          ],
        };
      }
    });
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It adds some context: the cost ('$0.002 USDC') and service provider ('timezonedetective'), which are useful. However, it lacks critical details such as whether this is a read-only or mutating operation, error handling, rate limits, or what the output looks like (since no output schema exists). For a tool with no annotations, this is insufficient.

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 highly concise and front-loaded: it states the core purpose in the first clause, followed by cost and service details. Every sentence earns its place with no wasted words, making it easy to scan and understand quickly.

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?

Given the tool's complexity (involving timezone calculations and scheduling), lack of annotations, and no output schema, the description is incomplete. It omits details on output format, error cases, behavioral traits, and parameter semantics. While concise, it doesn't provide enough context for an agent to use the tool effectively without guesswork.

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

Parameters2/5

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

Schema description coverage is 0%, meaning parameters are undocumented in the schema. The description mentions '2-5 locations' and 'working hours,' which loosely maps to 'timezones' and implies 'work_hours_start/end,' but it doesn't explain parameter meanings, formats (e.g., timezone strings like 'UTC'), or constraints beyond the array size. It fails to compensate for the lack of schema documentation.

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's purpose: 'Find working hours overlap between 2-5 locations for scheduling.' It specifies the verb ('Find'), resource ('working hours overlap'), and scope ('between 2-5 locations'). However, it doesn't explicitly differentiate from sibling tools like 'convert_timezone' or 'detect_timezone', which might have related but distinct purposes.

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?

The description provides minimal guidance: it implies usage for scheduling with 2-5 locations, but offers no explicit when-to-use rules, exclusions, or alternatives. For example, it doesn't clarify when to use this versus 'convert_timezone' or other time-related siblings, nor does it mention prerequisites or constraints beyond the basic scope.

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/yantrix-ai/yantrix-mcp'

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