recommend_template
Recommends matching built-in templates for a described document purpose, preventing conversion errors from incorrect template guesses.
Instructions
Suggest the best built-in template(s) for a described purpose. Use this when the user describes WHAT the document is (e.g. 'Q4 board pack', 'API reference', 'wedding invitation', 'legal contract') without naming a template. Returns ranked recommendations with rationale.
Why this exists: AI assistants often guess template names that don't exist. This tool maps purpose → real template names from MDMagic's catalog, so convert_document doesn't fail with 'template not found'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | Yes | Free-text description of the document's purpose. Examples: 'Q4 board pack for investors', 'restaurant menu', 'developer API documentation', 'wedding invitation'. | |
| topN | No | How many recommendations to return (1-5, default 3) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | Echoes back the purpose that was matched | |
| rationale | No | Why these templates were picked | |
| recommendations | Yes | Ranked list of template IDs to pass to convert_document |