Skip to main content
Glama

get_current_time

Get the current local time for any timezone using IP geolocation. Provide an optional IP address to determine timezone and receive formatted time details.

Instructions

Get the current time based on the user's IP address.

This tool determines the user's timezone from their IP address using geolocation and returns the current local time in that timezone.

Args: ip_address: Optional IP address to determine timezone. If not provided or empty string, attempts to detect automatically or defaults to UTC.

Returns: Formatted string with current time, timezone, day, and ISO timestamp

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ip_addressNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations provided, the description fully discloses behavior: it determines timezone via IP geolocation, handles missing IP by auto-detection or UTC fallback, and returns a formatted string with time, timezone, day, and ISO timestamp. No contradictions exist.

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 concise (two short paragraphs), front-loaded with the purpose, and uses a clear docstring structure. Every sentence contributes value, with no redundancy or 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?

Given the low complexity (one optional parameter, no nested objects, output schema present), the description is complete. It explains input behavior and the output format (formatted string with time, timezone, day, ISO timestamp) without needing to detail the output schema further.

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 has only one parameter (ip_address) with no description, giving 0% schema coverage. The description adds full semantics: 'Optional IP address to determine timezone. If not provided or empty string, attempts to detect automatically or defaults to UTC.' This is essential context beyond the schema.

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?

The description clearly states the tool's purpose: 'Get the current time based on the user's IP address.' The verb 'get' and resource 'current time' are specific, and the method (IP-based geolocation) differentiates it from unrelated sibling tools like clear_old_cache and get_alerts.

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?

The description explains the use case (getting current time for a location) and the optional IP parameter. It does not explicitly state when not to use it or mention alternatives, but sibling tools are in different domains, so no confusion arises. The guidance is clear enough for an agent.

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/czabriskie/mcp-server'

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