get_user_template
Return the PDF template this user has saved, or a 404 if they have none.
Call it to answer "what format am I on?", BEFORE `save_user_template` when a
template may already exist (saving replaces it without history, so the user
should know what they are overwriting), and whenever you are about to compose
a PDF yourself from Flexreport data: lay the content out in this markup so the
document matches the user's format. A 404 there is the cue to offer drafting
one (`draft_user_template` -> previews -> `save_user_template`).
Returns {"template_type", "template_format", "anchor", "template", "created_at",
"updated_at"}. `template` is the sanitized markup as submitted (up to 200 KB) —
the compiled blueprint the backend renders from is not returned. To change the
format, draft again and pass the chosen variant to `update_user_template`
rather than editing this text blind.
An HTTP 404 means no template is saved — the standard layouts are in force. An
HTTP 503 means the backend's user_templates table has not been created yet, NOT
that nothing is saved; report that difference.
Requires auth (your MCP client attaches the OAuth bearer automatically).
Rate-limited 100/min.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anchor | No | Section an add_on applies to; null for bespoke. | |
| template | No | The sanitized markup as submitted (up to 200 KB). | |
| created_at | No | ||
| updated_at | No | ||
| template_type | No | "add_on" or "bespoke". | |
| template_format | No | "html". |