Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -703,18 +703,29 @@ await server.withMethodHandler(ListTools.self) { _ in
name: "weather",
description: "Get current weather for a location",
inputSchema: .object([
"type": .string("object"),
"properties": .object([
"location": .string("City name or coordinates"),
"units": .string("Units of measurement, e.g., metric, imperial")
"location": .object([
"type": .string("string"),
"description": .string("City name or coordinates")
]),
"units": .object([
"type": .string("string"),
"description": .string("Units of measurement, e.g., metric, imperial")
])
])
])
),
Tool(
name: "calculator",
description: "Perform calculations",
inputSchema: .object([
"type": .string("object"),
"properties": .object([
"expression": .string("Mathematical expression to evaluate")
"expression": .object([
"type": .string("string"),
"description": .string("Mathematical expression to evaluate")
])
])
])
)
Expand Down