get_time_by_timezone
Pack: timezone · Endpoint: https://gateway.pipeworx.io/timezone/mcp
Get the current date and time in a specific IANA timezone (e.g. “America/New_York”, “Europe/London”, “Asia/Tokyo”).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
timezone | string | yes | IANA timezone string, e.g. “America/New_York” |
Example call
Arguments
{
"timezone": "America/New_York"
}
curl
curl -X POST https://gateway.pipeworx.io/timezone/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_time_by_timezone","arguments":{"timezone":"America/New_York"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_time_by_timezone', {
"timezone": "America/New_York"
});
More examples
{
"timezone": "Asia/Tokyo"
}
Response shape
Always returns: datetime, timezone, utc_offset, day_of_week, day_of_year, week_number
| Field | Type | Description |
|---|---|---|
datetime | string | ISO 8601 datetime in the requested timezone |
timezone | string | IANA timezone name |
utc_offset | string | UTC offset in ±HH:MM format |
day_of_week | number | Day of week (0-6) |
day_of_year | number | Day of year (1-366) |
week_number | number | Week number of the year |
Full JSON Schema
{
"type": "object",
"properties": {
"datetime": {
"type": "string",
"description": "ISO 8601 datetime in the requested timezone"
},
"timezone": {
"type": "string",
"description": "IANA timezone name"
},
"utc_offset": {
"type": "string",
"description": "UTC offset in ±HH:MM format"
},
"day_of_week": {
"type": "number",
"description": "Day of week (0-6)"
},
"day_of_year": {
"type": "number",
"description": "Day of year (1-366)"
},
"week_number": {
"type": "number",
"description": "Week number of the year"
}
},
"required": [
"datetime",
"timezone",
"utc_offset",
"day_of_week",
"day_of_year",
"week_number"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"timezone": {
"url": "https://gateway.pipeworx.io/timezone/mcp"
}
}
}
See Getting Started for client-specific install steps.