Generate a Mathter worksheet pack
generate_worksheet_packCreate a printable math worksheet pack as a local PDF and return its file path, using a selected skill and grade; call list_skills first to pick valid options.
Instructions
Generate a printable math worksheet pack as a PDF and save it to this computer, then return the file path. The pack is billed to the Mathter account that owns MATHTER_API_KEY, under that account's normal monthly allowance — the same as making it on mathter.ca. Call list_skills first to choose a valid skill for the grade. Logo and branding come from the account itself and cannot be set here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Fixes the random number generator, so the same seed reproduces the same pack. Default random. | |
| chart | No | Multiplication only: print a times-table chart instead of worksheets. "filled" is a reference chart, "blank" is one to fill in. | |
| focus | No | Single-number drill, e.g. 7 for the seven times table. Only applies to the four fact skills: addition, subtraction, multiplication, division. | |
| grade | Yes | Grade level, 0 (kindergarten) to 12. Must be a grade the chosen skill teaches — list_skills returns the grades for each skill. | |
| skill | Yes | Which math skill the pack drills, e.g. "multiplication". Call list_skills first and use one of the keys it returns: the set changes, and the skill must be one the chosen grade is taught. An unknown or out-of-grade skill is rejected with 400. | |
| style | No | Typography/layout preset, default "modern". Plan-gated and rejected outright if the account cannot use it: free accounts have "modern" only, Standard adds "classic" and "notebook", Premium has all six. Omit it unless the person asked for a look. | |
| theme | No | Colour palette for the pack. Available on every plan. Defaults to teal. | teal |
| timed | No | Mad-minute timed drill. Only applies to addition, subtraction, multiplication and division. | |
| title | No | Title printed on the pack, default "Math Lesson". Truncated at 80 characters. | |
| diagrams | No | Geometry skills only: labelled figures instead of text prompts. Ignored for other skills. | |
| shopName | No | Branding name printed on the pack. Premium only — on any other account it is silently replaced with "Mathter.ca" and the pack still generates. Members of a school organisation always get the organisation's own branding instead. | |
| difficulty | No | Difficulty band, default "medium". | |
| focusOrder | No | Order of a focus drill, default sequential. Only applies when focus is set. | |
| graphBlank | No | Coordinate grids are blank (unlabelled) by default so students set their own scale. Pass false for a labelled ±10 grid. Only meaningful where the skill prints a graph. | |
| unitSystem | No | Units for measurement questions, default metric. Mainly affects unit-conversion skills. | |
| includeCover | No | Print a cover page. Default true, but silently off for free accounts (Standard and up). | |
| includeLesson | No | Print the "how to" lesson page. Default true, silently off for free accounts (Standard and up). | |
| worksheetCount | No | How many worksheets in the pack. Clamped to the account's plan — free 2, Standard 10, Premium 25 — so asking for more is harmless but gets fewer. Omitted, it is 10 or the plan's cap, whichever is smaller: a free account's default pack is 2 sheets. | |
| problemsPerPage | No | Questions per page, default 12. Clamped down to whatever actually fits one page for this skill, grade and layout, so a large number simply gives the densest legal page. | |
| workedSolutions | No | Step-by-step worked solutions in the answer key. Only has an effect for skills that have steps authored; silently ignored elsewhere. | |
| includeAnswerKeys | No | Print answer keys. Default true on every plan; send false to omit them. |