fastmcp
fastmcp copied to clipboard
I've found that currently, the FastMCP framework is unable to write the descriptions of the parameters. Could you please provide support for this?
I've found that currently, the FastMCP framework is unable to write the descriptions of the parameters. Could you please provide support for this?
If you use pedantic models for the parameters the descriptions will be in the schema.
class FunctionParams(BaseModel):
arg1 = Field(description="cool description")
def function(args: FunctionParams):
pass
Also normally the doctoring for your tool will be included with the schema and so you can document the parameters in the doctoring
def function(arg1, arg2):
"""
This function does something
args:
arg1: this arg does something
arg2: this arg does something else
"""
I believe what @strawgate says is correct, if there's a specific case that isn't working please open an issue with an MRE!