json_schema
fastmcp.utilities.json_schema
Functions
compress_schema
Remove the given parameters from the schema.
Args:
schema
: The schema to compressprune_params
: List of parameter names to remove from propertiesprune_defs
: Whether to remove unused definitionsprune_additional_properties
: Whether to remove additionalProperties: falseprune_titles
: Whether to remove title fields from the schema