Something went wrong. Try again.
mirror of github.com/PrefectHQ/fastmcp
Something went wrong. Try again.
1234567891011121314151617181920212223242526---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::
from fastmcp import FastMCP from fastmcp.types import Textarea
mcp = FastMCP("demo")
@mcp.tool() def run_query(sql: Textarea) -> str: ...