Something went wrong. Try again.
mirror of github.com/PrefectHQ/fastmcp
Something went wrong. Try again.
12345678910111213141516171819202122232425262728---title: typessidebarTitle: types---
# `fastmcp.types`
Reusable type annotations for FastMCP tool parameters.
These types can be used in tool function signatures to influence howparameters are presented in UIs (e.g. `fastmcp dev apps`) andserialized in JSON Schema.
Example:
```pythonfrom fastmcp import FastMCPfrom fastmcp.types import Textarea
mcp = FastMCP("demo")
@mcp.tool()def run_query(sql: Textarea) -> str: ...```