Skip to main content
Glama

detect_timezone

Identify timezone from city, country, address, IP hint, or phone prefix input to determine accurate local time for scheduling and coordination.

Instructions

Detect timezone from any input — city, country, address, IP hint, phone prefix. Cost: $0.001 USDC. Service: timezonedetective.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYes

Implementation Reference

  • The MCP server dynamically fetches tools from a registry URL. 'detect_timezone' is not hardcoded but would be handled by this CallToolRequestSchema handler which dispatches requests to the external API defined in the registry.
    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),
              }),
            },
          ],
        };
      }
    });
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It usefully mentions the cost ($0.001 USDC) and service provider, which are important behavioral traits. However, it doesn't describe error handling, rate limits, accuracy expectations, or what happens with ambiguous inputs. The description adds some value but leaves significant gaps in behavioral understanding.

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?

The description is efficiently structured in a single sentence that packs multiple pieces of information: the core function, examples of acceptable inputs, cost, and service provider. There's no wasted text, though some might argue the cost/service information could be separated for better front-loading of the core 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 no annotations, 0% schema description coverage, and no output schema, the description provides basic but incomplete context. It covers the purpose and gives parameter examples, but doesn't explain return values, error conditions, or operational constraints. For a detection tool with monetary cost, more completeness would be expected regarding what constitutes successful detection versus failure.

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?

The input schema has 0% description coverage, so the description must compensate. It provides examples of what the 'input' parameter can contain (city, country, address, IP hint, phone prefix), which adds meaningful semantics beyond the bare schema. However, it doesn't specify format requirements, constraints, or how different input types affect results. The description partially compensates for the schema gap but not completely.

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: detecting timezone from various input types (city, country, address, IP hint, phone prefix). It specifies the verb 'detect' and resource 'timezone' with examples of acceptable inputs. However, it doesn't explicitly differentiate from sibling tools like 'convert_timezone' or 'find_timezone_overlap', which would be needed for a score of 5.

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 no guidance on when to use this tool versus alternatives. It mentions the service provider and cost, but doesn't indicate scenarios where this detection tool is preferred over sibling tools like 'convert_timezone' or 'find_timezone_overlap'. There's no mention of prerequisites, limitations, or comparative use cases.

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