Jeremiah Lowin commited on
Commit
c5a73a5
·
1 Parent(s): 65192bf

Update tool.py

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