From 32f6945336eb9b3ee989445cceebc4a21d41b7f7 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 27 May 2025 13:04:17 -0400 Subject: [PATCH] Update tool.py --- src/fastmcp/tools/tool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fastmcp/tools/tool.py b/src/fastmcp/tools/tool.py index f9beaeea9..f556bafa7 100644 --- a/src/fastmcp/tools/tool.py +++ b/src/fastmcp/tools/tool.py @@ -36,7 +36,9 @@ class Tool(BaseModel): fn: Callable[..., Any] name: str = Field(description="Name of the tool") - description: str | None = Field(default=None, description="Description of what the tool does") + description: str | None = Field( + default=None, description="Description of what the tool does" + ) parameters: dict[str, Any] = Field(description="JSON schema for tool parameters") tags: Annotated[set[str], BeforeValidator(_convert_set_defaults)] = Field( default_factory=set, description="Tags for the tool"