Jeremiah Lowin Copilot commited on
Commit
65192bf
·
unverified ·
1 Parent(s): 3d3691f

Update src/fastmcp/tools/tool.py

Browse files

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Files changed (1) hide show
  1. src/fastmcp/tools/tool.py +1 -1
src/fastmcp/tools/tool.py CHANGED
@@ -36,7 +36,7 @@ class Tool(BaseModel):
36
 
37
  fn: Callable[..., Any]
38
  name: str = Field(description="Name of the tool")
39
- description: str | None = Field(description="Description of what the tool does")
40
  parameters: dict[str, Any] = Field(description="JSON schema for tool parameters")
41
  tags: Annotated[set[str], BeforeValidator(_convert_set_defaults)] = Field(
42
  default_factory=set, description="Tags for the tool"
 
36
 
37
  fn: Callable[..., Any]
38
  name: str = Field(description="Name of the tool")
39
+ description: str | None = Field(default=None, description="Description of what the tool does")
40
  parameters: dict[str, Any] = Field(description="JSON schema for tool parameters")
41
  tags: Annotated[set[str], BeforeValidator(_convert_set_defaults)] = Field(
42
  default_factory=set, description="Tags for the tool"