Skip to main content
Glama
MCP server Python starter

MCP server Python starter

by opikdev

Get the current time

get_time
Read-onlyIdempotent

Retrieves the current date and time for any IANA time zone, defaulting to UTC, so agents can timestamp events or schedule tasks accurately.

Instructions

Returns the current date and time in an IANA time zone, such as Europe/Berlin.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
timezoneNoIANA time zone name. Defaults to UTC.UTC

Output Schema

NameRequiredDescriptionDefault
isoYesThe time in UTC, in ISO 8601.
localYesThe local date and time, for people to read.
timezoneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without prose. The description adds only that the result is timezone-scoped ('in an IANA time zone'), which is a modest but real addition. It says nothing about clock source, precision, or whether the response is localized.

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?

A single front-loaded sentence with zero filler; the scope constraint (time zone) follows immediately after the purpose. Nothing could be removed without losing information.

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?

The tool is simple, has one optional parameter fully documented in schema, and an output schema exists so return values need not be explained. The description covers the essentials for correct invocation, with only marginal gaps such as whether a default (UTC) applies when the parameter is omitted — which the schema already states.

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%: the timezone parameter already documents 'IANA time zone name. Defaults to UTC.' The description reinforces the IANA format and gives a concrete example ('Europe/Berlin'), which slightly aids correct value construction but does not exceed what the schema conveys. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb and resource ('Returns the current date and time') with an explicit scope qualifier ('in an IANA time zone'). That is unambiguous and trivially distinguishable from siblings like search_docs or whoami, which share no behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is the tool for fetching the present moment, but the description gives no explicit when-to-use or when-not-to-use guidance. No alternatives are named, though the sibling set contains no plausible substitute, so the practical cost is low.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools