Skip to main content

fastmcp.server.transforms.tool_transform

Transform for applying tool transformations.

Classes

ToolTransform

Applies tool transformations to modify tool schemas. Wraps ToolTransformConfig to apply argument renames, schema changes, hidden arguments, and other transformations at the transform level. Methods:

list_tools

list_tools(self, call_next: ListToolsNext) -> Sequence[Tool]
Apply transforms to matching tools.

get_tool

get_tool(self, name: str, call_next: GetToolNext) -> Tool | None
Get tool by transformed name.