list_fonts
List all uploaded custom fonts to view available typography options for document generation, including PDF/DOCX/Excel, invoicing, and signing.
Instructions
List all uploaded custom fonts.
Returns: JSON array of font info objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- mcp/src/docgen_mcp/server.py:497-506 (handler)The 'list_fonts' MCP tool handler function. It fetches the DocGen client via _get_client(), calls dg.fonts.list(), and returns the JSON-serialized list of fonts.
@mcp.tool() def list_fonts() -> str: """List all uploaded custom fonts. Returns: JSON array of font info objects. """ dg = _get_client() fonts = dg.fonts.list() return json.dumps(fonts)