fastmcp.utilities.json_schema
Functions
dereference_refs
schema: JSON schema dict that may contain $ref references
- A new schema dict with defs removed
- when no longer needed
resolve_root_ref
schema: JSON schema dict that may have $ref at root level
- A new schema dict with root-level $ref resolved, or the original schema
- if no resolution is needed
compress_schema
schema: The schema to compressprune_params: List of parameter names to remove from propertiesprune_additional_properties: Whether to remove additionalProperties: falseprune_titles: Whether to remove title fields from the schema

