Skip to content

ulams reporting

Generated from front/cli (ulams schema)

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.

Terminal window
# Datasets and columns
ulams reporting datasets --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {}
}

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).
Terminal window
# Delete
ulams reporting delete 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --yes
Input 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"
]
}

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.

Terminal window
# Saved reports
ulams reporting list --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {}
}

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.
Terminal window
# Learners per course and month
ulams reporting query --file overdue-by-course.json --json
Input 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": {}
}
}
}

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).
Terminal window
# As JSON lines
ulams reporting run 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --format jsonl --json
# An Excel file
ulams reporting run 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --format xlsx --out report.xlsx
Input 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"
]
}

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.
Terminal window
# Save and share with tutors
ulams reporting save --name "Overdue by course" --file overdue-by-course.json --role tutor --json
Input 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"
]
}

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).
Terminal window
# A saved report
ulams reporting show 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --json
Input 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"
]
}

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.
Terminal window
# Turn the feed on
ulams reporting update 01J9Z3K8M2X4Q7R5T6V8W0Y1AB --feed on --json
Input 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"
]
}