Skip to main content
Glama

世界时间时区

world_time
Read-onlyIdempotent

查询指定时区的当前日期时间、星期与夏令时状态。Example: {"timezone":"Asia/Shanghai"}

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "timezone": "Asia/Shanghai"
    },
    "name": "world_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
timezoneYesIANA 时区名,如 Asia/Shanghai、America/New_York、Europe/London

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "timezone": "Asia/Shanghai"
      +  }
      +]
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety behavior is covered. The description adds that DST status is returned and implies weekday/current datetime, which is useful, but it does not describe response format or error behavior.

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 purpose is front-loaded in a single clause, and the example is compact. No redundant or filler sentences are present.

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?

For a simple one-parameter read-only lookup, the description tells the agent what the tool does and what fields it returns. With schema and annotations carrying the parameter and safety details, it is nearly complete, though it could clarify output formatting or differentiation from time_now.

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?

With one parameter at 100% schema coverage, the schema already documents timezone as an IANA name with examples. The description repeats the same Asia/Shanghai example and adds no syntax or validation semantics beyond the schema, so baseline 3 applies.

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 states a specific verb (查询) and resource (指定时区的当前日期时间、星期与夏令时状态), so an agent knows exactly what data it returns. It does not distinguish this tool from siblings such as time_now or timestamp_convert, which keeps it below 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?

No sentence states when to use this tool versus time_now, timestamp_convert, or holiday_cn. The example demonstrates invocation but is not usage guidance, so there is effectively no when/when-not 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.