Skip to content

ulams style-profiles

Generated from front/cli (ulams schema)

Approve a suggested profile (admins); it replaces the approved profile of its scope.

Review the diff first with style-profiles get. An approved profile is what the builder reads for the courses it drafts afterwards; courses that exist are not changed.

Kind: write. Stability: stable. MCP tool: style_profiles_approve. Scopes: builder:write.

Endpoints: POST /api/admin/course-builder/style-profiles/{profile}/approve.

Flag Type Required Description
--profile (positional) string yes Style profile id (from ulams style-profiles list).
Terminal window
# Approve
ulams style-profiles approve <profile> --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"profile": {
"type": "string",
"description": "Style profile id (from `ulams style-profiles list`)."
}
},
"required": [
"profile"
]
}

Check a course against a style profile: banned phrases, terminology, casing, landing components, image alt text, reading level.

A deterministic check, no model call, and nothing is changed. data.blocking lists banned phrases of a profile whose banned.blocking is on (they also block builder publish), data.warnings terminology, casing, components and image findings, data.hints reading level and sentence length (approximate formulas, never blocking). Every finding names the style guide passage it comes from. It works against a suggested profile too, to preview what approving it would flag. Exit code 0 even when there are findings; read data.blocksPublishing.

Kind: read (idempotent). Stability: stable. MCP tool: style_profiles_check. Scopes: builder:read.

Endpoints: GET /api/admin/course-builder/style-profiles/{profile}/check.

Flag Type Required Description
--profile (positional) string yes Style profile id (from ulams style-profiles list).
--course integer yes LMS course id of a course made with the builder (a variant’s course too).
Terminal window
# Preview a proposal on a course
ulams style-profiles check <profile> --course 12 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"profile": {
"type": "string",
"description": "Style profile id (from `ulams style-profiles list`)."
},
"course": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "LMS course id of a course made with the builder (a variant's course too)."
}
},
"required": [
"profile",
"course"
]
}

Delete a suggested or superseded profile.

An approved profile cannot be deleted (409): approve a revision to replace it.

Kind: destructive (idempotent). Stability: stable. MCP tool: style_profiles_delete. Scopes: builder:write.

Endpoints: DELETE /api/admin/course-builder/style-profiles/{profile}.

Flag Type Required Description
--profile (positional) string yes Style profile id (from ulams style-profiles list).
Terminal window
# Delete a proposal
ulams style-profiles delete <profile> --yes --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"profile": {
"type": "string",
"description": "Style profile id (from `ulams style-profiles list`)."
}
},
"required": [
"profile"
]
}

Edit a suggested profile (values and name); invalid values are dropped and reported.

Only a suggestion can be edited, by its creator or an admin. An approved profile is revised with style-profiles propose --from <profile>.

Kind: write. Stability: stable. MCP tool: style_profiles_edit. Scopes: builder:write.

Endpoints: PATCH /api/admin/course-builder/style-profiles/{profile}.

Flag Type Required Description
--profile (positional) string yes Style profile id (from ulams style-profiles list).
--values object Profile values as JSON, or @file.json / @file.yaml: voice, readingLevel, terminology, banned, components, imagery, theme, examples (schema: style-profile/v1).
--name string New name.
Terminal window
# Rename
ulams style-profiles edit <profile> --name "Northwind v2" --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"profile": {
"type": "string",
"description": "Style profile id (from `ulams style-profiles list`)."
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Profile values as JSON, or @file.json / @file.yaml: voice, readingLevel, terminology, banned, components, imagery, theme, examples (schema: style-profile/v1)."
},
"name": {
"description": "New name.",
"type": "string",
"maxLength": 255
}
},
"required": [
"profile"
]
}

Show a style profile with the passages it cites and its diff against the approved profile.

Kind: read (idempotent). Stability: stable. MCP tool: style_profiles_get. Scopes: builder:read.

Endpoints: GET /api/admin/course-builder/style-profiles/{profile}.

Flag Type Required Description
--profile (positional) string yes Style profile id (from ulams style-profiles list).
Terminal window
# Review a proposal
ulams style-profiles get <profile> --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"profile": {
"type": "string",
"description": "Style profile id (from `ulams style-profiles list`)."
}
},
"required": [
"profile"
]
}

List the style profiles of the academy, newest first.

A profile is suggested until an admin approves it; the approved one of a scope is what later steps read. data[].profile holds the values, data[].warnings what was dropped from a proposal.

Kind: read (idempotent). Stability: stable. MCP tool: style_profiles_list. Scopes: builder:read.

Endpoints: GET /api/admin/course-builder/style-profiles.

Flag Type Required Description
--status string Only profiles in this status.
Terminal window
# The approved profile
ulams style-profiles list --status approved --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"description": "Only profiles in this status.",
"type": "string",
"enum": [
"suggested",
"approved",
"superseded"
]
}
}
}

Propose a style profile from a style guide file (read and cited by the model), by hand, or as a revision of an existing profile.

With –file the style guide (Markdown, PDF or DOCX; untrusted input) is read by one model call that returns typed values, each citing the passage it comes from; values that are out of range, unknown or uncited are dropped and listed in data.warnings. Without AI, or with –profile, you give the values yourself. With –from the new profile starts from an existing one: that is how an approved rule changes. Nothing applies until an admin runs style-profiles approve.

Kind: write. Stability: stable. MCP tool: style_profiles_propose. Scopes: builder:write.

Endpoints: POST /api/admin/course-builder/style-profiles.

Flag Type Required Description
--file string Style guide file to read.
--profile object Profile values as JSON, or @file.json / @file.yaml: voice, readingLevel, terminology, banned, components, imagery, theme, examples (schema: style-profile/v1).
--from string Existing profile id to revise.
--name string Name of the profile.
--scope string tenant (default): the academy’s profile. brief: a named alternative that a Course Brief picks with builder brief set --style-profile-id.
--scope-id string Name (slug) of a brief profile; defaults to the slug of –name.
Terminal window
# Read a style guide
ulams style-profiles propose --file ./style-guide.md --json
# Change a rule of the approved profile
ulams style-profiles propose --from <profile> --profile '{"terminology":[{"use":"participant","avoid":["learner"]}]}' --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"file": {
"description": "Style guide file to read.",
"type": "string"
},
"profile": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Profile values as JSON, or @file.json / @file.yaml: voice, readingLevel, terminology, banned, components, imagery, theme, examples (schema: style-profile/v1)."
},
"from": {
"description": "Existing profile id to revise.",
"type": "string"
},
"name": {
"description": "Name of the profile.",
"type": "string",
"maxLength": 255
},
"scope": {
"description": "tenant (default): the academy's profile. brief: a named alternative that a Course Brief picks with `builder brief set --style-profile-id`.",
"type": "string",
"enum": [
"tenant",
"brief"
]
},
"scopeId": {
"description": "Name (slug) of a brief profile; defaults to the slug of --name.",
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
}
}
}