60e0ffc959
Schema Crash Test / Real-world schema crash test (232K schemas) (push) Waiting to run
Run static analysis / static_analysis (push) Waiting to run
Tests / Tests: Python 3.10 on ubuntu-latest (push) Waiting to run
Tests / Tests: Python 3.13 on ubuntu-latest (push) Waiting to run
Tests / Tests: Python 3.10 on windows-latest (push) Waiting to run
Tests / Tests with lowest-direct dependencies (push) Waiting to run
Tests / Package install smoke (push) Waiting to run
Upgrade checks / Static analysis (push) Waiting to run
Upgrade checks / Tests: Python 3.10 on ubuntu-latest (push) Waiting to run
Upgrade checks / Tests: Python 3.13 on ubuntu-latest (push) Waiting to run
Upgrade checks / Tests: Python 3.10 on windows-latest (push) Waiting to run
Upgrade checks / Integration tests (push) Waiting to run
Upgrade checks / Notify on failure (push) Blocked by required conditions
Upgrade checks / Close issue on success (push) Blocked by required conditions
Update MCPServerConfig Schema / update-config-schema (push) Waiting to run
Update SDK Documentation / update-sdk-docs (push) Waiting to run
Tests / MCP conformance tests (push) Waiting to run
Tests / Integration tests (push) Waiting to run
28 lines
446 B
Plaintext
28 lines
446 B
Plaintext
---
|
|
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:
|
|
|
|
```python
|
|
from fastmcp import FastMCP
|
|
from fastmcp.types import Textarea
|
|
|
|
mcp = FastMCP("demo")
|
|
|
|
@mcp.tool()
|
|
def run_query(sql: Textarea) -> str:
|
|
...
|
|
```
|
|
|