Skip to content

Commit a98a5d7

Browse files
committed
Make description parameter in Tool initializer optional
1 parent 31fa614 commit a98a5d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MCP/Server/Tools.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public struct Tool: Hashable, Codable, Sendable {
8585
/// Initialize a tool with a name, description, input schema, and annotations
8686
public init(
8787
name: String,
88-
description: String,
88+
description: String?,
8989
inputSchema: Value,
9090
annotations: Annotations = nil
9191
) {

0 commit comments

Comments
 (0)