AI-ready output: the context pack
The context pack is one file with everything your company defined in Matso: your KPI framework, the reference tables you keep in Normly and your dimensional design. Give it to an AI assistant, put it in the knowledge of a Copilot agent, or let a script refresh it. It comes as JSON, in a documented and versioned shape, and as Markdown that an AI reads well.
What the pack holds
The pack has one section for each product your company uses. A section is only in the pack when your company has the product.
| Section | Holds |
|---|---|
modules.kpiKPI Platform |
The KPI cascade (name, level, owner, unit, the target per year and the description of every KPI, with the KPIs below it under children), the organisation units and the meetings where the KPIs are reviewed. |
modules.normlyNormly |
Every table of your company: name, description, type, version, active period, owner, and its columns with their data type, whether they are required, their description and their validation rules in words (for example between 0 and 100, one of North, South, East, West or unique). Values only for the tables you opted in (see below). |
modules.designData Design |
Your dimensional design, in the terms of Kimball: the business processes with owner and description, the bus matrix, every fact (grain, type, keys with their roles, and measures with their data type and how far each one adds up) and every dimension (keys, attributes with their data type, and what happens when one changes), each with what its Kimball terms mean. A draft, or an entry that is not complete, is marked as such and lists what is still missing, so an AI does not take it for agreed. |
Never in the pack: tokens, passwords, the history of a target, and the draft, pending, rejected or deleted rows of a Normly table. A draft fact or dimension of the Data Design is in the pack, marked as a draft. Matso adds no e-mail addresses of its own (an owner or a chair is a name or a role, and empty when a person only has an address); text you typed and the values of opted-in tables are included as typed.
Normly values are opted in, per table
The description, the columns and the rules of every Normly table are in the pack, so an AI knows what your reference data looks like. The values of a table are only in the pack when you switch on Visible to AI (values) for that table.
- The switch is on the table's Data definitions page. A company administrator or the owner of the table can set it. It is off for every table until someone switches it on.
- With the switch on, the pack holds the table's approved, current rows: the same rows the API returns for the table. Drafts, pending and rejected rows, earlier versions of a row and deleted rows never appear.
- With the switch off, the pack holds no values of the table at all, not even how many rows it has. The table's entry says
"visible_to_ai": falseand has norows. - A new version of a table starts with the switch off.
- The rules of a table's columns, including lists of allowed values and patterns, are part of its definition. They are always in the pack, also when the table's values are not.
Download it in the app
Company administrators find the pack under AI-ready output on the company page, with a button for the JSON file and one for the Markdown file. The pack is made when you download it, so it holds the current state. Because the pack can hold values of tables a colleague may not view, only company administrators can download it.
Fetch it with your API token
API access is enabled per company, on request: ask Matso to enable it for your company. Then create a token on the
company page under API tokens, and send it in the Authorization header. The token must
come from a company administrator, as with the download in the app.
GET /api/context-pack/?format=json
GET /api/context-pack/?format=md
curl -H "Authorization: Bearer YOUR_TOKEN" \
"https://matso.nl/api/context-pack/?format=md" \
-o matso-context-pack.md
| Parameter | Meaning |
|---|---|
format | json (default) or md. The Markdown holds the same content as the JSON; it is made from it. |
The answer is the pack of the company the token belongs to, and never another company's. It is never stored by a
cache (Cache-Control: private, no-store). The headings and sentences of the Markdown are English when you fetch it through the API; the download in the app
follows the language you use the app in. The content does not change.
| Status | When |
|---|---|
| 400 | A format other than json or md; the body has an error message. |
| 401 | Missing, invalid or revoked token. |
| 403 | API access is not enabled for your company, or the token is not a company administrator's. |
The JSON and its schema
{
"schema": "matso-context-pack",
"version": "1.0",
"generated_at": "2026-10-31T12:00:00Z",
"company": {"name": "Acme"},
"modules": {
"normly": {
"tables": [{
"id": "12", "name": "Cost centres", "description": "...", "table_type": "mapping",
"version_number": 2, "version_name": "", "active_from": "2026-01-01", "active_to": null,
"owner": "Finance Controller", "visible_to_ai": true,
"columns": [{"name": "CC code", "data_type": "text", "required": true,
"description": "Cost centre code", "rules": ["unique"]},
{"name": "Segment", "data_type": "text", "required": false,
"description": "", "rules": ["one of North, South"]}],
"rows": [{"CC code": "1001", "Segment": "North"}]
}]
},
"kpi": {
"kpis": [{
"id": "8", "level": "strategic", "name": "Growth", "description": "...",
"owner": "Group CEO", "unit": "%", "targets": {"2026": "15"},
"org_unit_ids": ["1"], "parent_id": null, "children": [ ... ]
}],
"org_units": [ ... ],
"meetings": [ ... ]
}
}
}
The pack is described by a JSON Schema file (Draft 2020-12) for version 1.0. Ids are strings and only identify rows inside the pack. A choice (level, type, frequency) is a code that reads the same in every language.
major.minor. Within 1.x a field can be added, but never
renamed or removed, so read the fields you know and ignore the others. The major version changes only when a field
is renamed or removed.
The Markdown
The Markdown file has a heading for each product, the KPI cascade as a nested list and the Normly tables with their columns and rules; the values of an opted-in table follow as a compact table. The Data Design is the bus matrix as one table, then a section for each process with its facts, and the dimensions; a draft or an incomplete entry is marked DRAFT or INCOMPLETE. It is written in plain sentences, so you can paste it into a chat or add it as a knowledge file.
# Context pack of Acme
## Normly
### Cost centres
Type: mapping. Version: 2027. Active from 2027-01-01. Owner: Olga Owner.
Columns:
- **CC code** (text, required). Cost centre code. Rules: unique.
- **Segment** (text). Rules: one of North, South.
Values: the approved rows of this table.
| CC code | Segment |
| --- | --- |
| 1001 | North |
## KPI Platform
### KPIs
- **Growth** (strategic). Owner: Group CEO. Unit: %. Target 2026: 15. Premium growth per year.
- **Claims handled** (tactical). Unit: claims per day.
Handle it with care
The pack can hold values your colleagues may not view in Normly. Share it only with people and tools that may read it, and revoke the API token of a script you no longer use.