mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
25 lines
459 B
Text
25 lines
459 B
Text
---
|
|
title: types
|
|
sidebarTitle: types
|
|
---
|
|
|
|
# `fastmcp.types`
|
|
|
|
|
|
Reusable type annotations for FastMCP tool parameters.
|
|
|
|
These types can be used in tool function signatures to influence how
|
|
parameters are presented in UIs (e.g. ``fastmcp dev apps``) and
|
|
serialized in JSON Schema.
|
|
|
|
Example::
|
|
|
|
from fastmcp import FastMCP
|
|
from fastmcp.types import Textarea
|
|
|
|
mcp = FastMCP("demo")
|
|
|
|
@mcp.tool()
|
|
def run_query(sql: Textarea) -> str:
|
|
...
|
|
|