Skip to content

Commit f03c6e7

Browse files
committed
fix: remove timezone example from tool description to prevent LLM from guessing timezone
The Europe/Vilnius example in the tool description caused LLMs to supply a timezone even when the user did not request one. The parameter is optional and should only be set when the user explicitly asks for a specific timezone.
1 parent c99b497 commit f03c6e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/mcp/tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func toolDefinition() map[string]any {
1919
"Call this proactively before any query where recency matters — " +
2020
"e.g. \"latest\", \"recent\", \"today\", \"now\", or web searches for current information. " +
2121
"The format parameter accepts named formats (iso8601, rfc2822, etc.) or Go time layout strings. " +
22-
"The timezone parameter accepts IANA tz database identifiers (e.g. America/Los_Angeles, Europe/Vilnius, UTC).",
22+
"The timezone parameter accepts IANA tz database identifiers and should only be set when the user requests a specific timezone.",
2323
"inputSchema": map[string]any{
2424
"type": "object",
2525
"properties": map[string]any{

0 commit comments

Comments
 (0)