ulams reporting
Generated from front/cli (ulams schema)
ulams reporting datasets
Section titled “ulams reporting datasets”The datasets you can build reports on, with every column and what it allows.
Per dataset: key, label, the permission it needs, the learner column used to protect small groups, and every column with its type, filter operators, whether it can be grouped or aggregated and whether it holds personal data. Use it to write a report definition. Figures are this academy’s own measurements. Groups with fewer learners than the threshold (10 by default), and the smallest group next to them when that is needed to keep them private, are withheld on purpose: they come back as one row marked _withheld with empty figures. Do not try to recover them by narrowing filters or by subtracting totals.
Kind: read (idempotent). Stability: stable. MCP tool: reporting_datasets. Scopes: reports:read.
Endpoints: GET /api/admin/reporting/datasets.
# Datasets and columnsulams reporting datasets --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}}ulams reporting delete
Section titled “ulams reporting delete”Delete a saved report (owner or reporting_manage).
Schedules that send the report then skip every recipient and tell their owner; feed readers get 404. The report cannot be restored through the API.
Kind: destructive (idempotent). Stability: stable. MCP tool: reporting_delete. Scopes: reports:write.
Endpoints: DELETE /api/admin/reporting/saved/{id}.
| Flag | Type | Required | Description |
|---|---|---|---|
--id (positional) |
string | yes | Saved report id (26 characters, from reporting list). |
# Deleteulams reporting delete 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --yesInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string", "description": "Saved report id (26 characters, from `reporting list`)." } }, "required": [ "id" ]}ulams reporting list
Section titled “ulams reporting list”Saved reports you can see: your own and those shared with your roles.
Each has can_edit, runnable (you hold the permission of its dataset) and needs_repair with the problems when its dataset or a column is gone.
Kind: read (idempotent). Stability: stable. MCP tool: reporting_list. Scopes: reports:read.
Endpoints: GET /api/admin/reporting/saved.
# Saved reportsulams reporting list --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}}ulams reporting query
Section titled “ulams reporting query”Preview a report definition: up to 500 rows or groups and the total.
Runs a definition with your own permissions and changes nothing (it is a read, so it works with –read-only). Row reports list columns; grouped reports list groupBy and aggregates. Figures are this academy’s own measurements. Groups with fewer learners than the threshold (10 by default), and the smallest group next to them when that is needed to keep them private, are withheld on purpose: they come back as one row marked _withheld with empty figures. Do not try to recover them by narrowing filters or by subtracting totals.
Kind: read (idempotent). Stability: stable. MCP tool: reporting_query. Scopes: reports:read.
Endpoints: POST /api/admin/reporting/query.
| Flag | Type | Required | Description |
|---|---|---|---|
--file |
string | Path of a JSON file holding the report definition. Alternative to passing the definition inline. | |
--definition |
object | A report definition as an object (schema report-definition/v1: dataset, columns or groupBy and aggregates, filters, dateRange, sort, limit). Alternative to –file. |
# Learners per course and monthulams reporting query --file overdue-by-course.json --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "file": { "description": "Path of a JSON file holding the report definition. Alternative to passing the definition inline.", "type": "string" }, "definition": { "description": "A report definition as an object (schema report-definition/v1: dataset, columns or groupBy and aggregates, filters, dateRange, sort, limit). Alternative to --file.", "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} } }}ulams reporting run
Section titled “ulams reporting run”Run a saved report with your own permissions: json, or a csv, jsonl or xlsx file.
json (default) answers like the preview: columns, up to 500 rows and the total. csv and jsonl stream every row (up to 1 000 000) to stdout or –out; xlsx needs –out. Every file is recorded as an export. Figures are this academy’s own measurements. Groups with fewer learners than the threshold (10 by default), and the smallest group next to them when that is needed to keep them private, are withheld on purpose: they come back as one row marked _withheld with empty figures. Do not try to recover them by narrowing filters or by subtracting totals.
Kind: read (idempotent). Stability: stable. MCP tool: reporting_run. Scopes: reports:read.
Endpoints: GET /api/admin/reporting/saved/{id}/run.
| Flag | Type | Required | Description |
|---|---|---|---|
--id (positional) |
string | yes | Saved report id (26 characters, from reporting list). |
--format |
string | json (default), csv, jsonl or xlsx. | |
--out |
string | Write the file to this path (- for stdout; csv and jsonl only). |
# As JSON linesulams reporting run 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --format jsonl --json# An Excel fileulams reporting run 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --format xlsx --out report.xlsxInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string", "description": "Saved report id (26 characters, from `reporting list`)." }, "format": { "description": "json (default), csv, jsonl or xlsx.", "type": "string", "enum": [ "json", "csv", "jsonl", "xlsx" ] }, "out": { "description": "Write the file to this path (- for stdout; csv and jsonl only).", "type": "string" } }, "required": [ "id" ]}ulams reporting save
Section titled “ulams reporting save”Save a report definition under a name, private or shared with tenant roles.
Needs reporting_create and the permission of the definition’s dataset. Sharing shares the definition, not the data: everyone runs it with their own permissions.
Kind: write. Stability: stable. MCP tool: reporting_save. Scopes: reports:write.
Endpoints: POST /api/admin/reporting/saved.
| Flag | Type | Required | Description |
|---|---|---|---|
--name |
string | yes | Name of the report. |
--description |
string | ||
--visibility |
string | private (default) or roles. | |
--role |
array | Role to share with (repeatable); implies visibility roles. | |
--file |
string | Path of a JSON file holding the report definition. Alternative to passing the definition inline. | |
--definition |
object | A report definition as an object (schema report-definition/v1: dataset, columns or groupBy and aggregates, filters, dateRange, sort, limit). Alternative to –file. |
# Save and share with tutorsulams reporting save --name "Overdue by course" --file overdue-by-course.json --role tutor --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 160, "description": "Name of the report." }, "description": { "type": "string", "maxLength": 2000 }, "visibility": { "description": "private (default) or roles.", "type": "string", "enum": [ "private", "roles" ] }, "role": { "description": "Role to share with (repeatable); implies visibility roles.", "type": "array", "items": { "type": "string" } }, "file": { "description": "Path of a JSON file holding the report definition. Alternative to passing the definition inline.", "type": "string" }, "definition": { "description": "A report definition as an object (schema report-definition/v1: dataset, columns or groupBy and aggregates, filters, dateRange, sort, limit). Alternative to --file.", "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} } }, "required": [ "name" ]}ulams reporting show
Section titled “ulams reporting show”One saved report with its definition, sharing and feed.
Kind: read (idempotent). Stability: stable. MCP tool: reporting_show. Scopes: reports:read.
Endpoints: GET /api/admin/reporting/saved/{id}.
| Flag | Type | Required | Description |
|---|---|---|---|
--id (positional) |
string | yes | Saved report id (26 characters, from reporting list). |
# A saved reportulams reporting show 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string", "description": "Saved report id (26 characters, from `reporting list`)." } }, "required": [ "id" ]}ulams reporting update
Section titled “ulams reporting update”Change a saved report (owner or reporting_manage); –feed on|off needs reporting_manage.
Kind: write (idempotent). Stability: stable. MCP tool: reporting_update. Scopes: reports:write.
Endpoints: PUT /api/admin/reporting/saved/{id}.
| Flag | Type | Required | Description |
|---|---|---|---|
--id (positional) |
string | yes | Saved report id (26 characters, from reporting list). |
--name |
string | ||
--description |
string | ||
--visibility |
string | ||
--role |
array | Role to share with (repeatable). | |
--file |
string | Path of a JSON file holding the report definition. Alternative to passing the definition inline. | |
--definition |
object | A report definition as an object (schema report-definition/v1: dataset, columns or groupBy and aggregates, filters, dateRange, sort, limit). Alternative to –file. | |
--feed |
string | Turn the read-only OData feed for BI tools on or off. |
# Turn the feed onulams reporting update 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --feed on --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string", "description": "Saved report id (26 characters, from `reporting list`)." }, "name": { "type": "string", "minLength": 1, "maxLength": 160 }, "description": { "type": "string", "maxLength": 2000 }, "visibility": { "type": "string", "enum": [ "private", "roles" ] }, "role": { "description": "Role to share with (repeatable).", "type": "array", "items": { "type": "string" } }, "file": { "description": "Path of a JSON file holding the report definition. Alternative to passing the definition inline.", "type": "string" }, "definition": { "description": "A report definition as an object (schema report-definition/v1: dataset, columns or groupBy and aggregates, filters, dateRange, sort, limit). Alternative to --file.", "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} }, "feed": { "description": "Turn the read-only OData feed for BI tools on or off.", "type": "string", "enum": [ "on", "off" ] } }, "required": [ "id" ]}