Skip to content

MCP server

LyricWinter MCP tools reference

Every tool exposed by the LyricWinter Studio MCP server, with inputs, required scopes, side effects, and the recommended agent workflow.

BetaUpdated

The LyricWinter MCP server exposes 13 tools. Read-only tools need the studio:read scope; tools that create or change Studio content need studio:write. Every tool calls the LyricWinter REST API as the connected user and returns its JSON response as text.

The server gives agents these instructions: use list_projects and list_project_sections to find IDs, read documents before changing them or generating audio, treat workflow starts as asynchronous and call get_workflow until they finish, and never repeat a paid audio start unless the user wants another run.

A typical session:

  1. list_projects to find the project, or create_story to start a new one.
  2. get_document to read the script and its versions.
  3. start_audio_workflow after the user confirms which sections to generate.
  4. get_workflow until the run reaches completed, partially_completed, failed, or cancelled.
  5. get_section_media or get_playback_manifest to return playable audio.

Tool summary#

ToolPurposeScopeSide effects
profileIdentify the connected accountstudio:readNone
list_projectsList projects and standalone storiesstudio:readNone
list_project_sectionsList a project's sections in orderstudio:readNone
get_documentRead a section's documentstudio:readNone
list_project_speakersList a project's speakersstudio:readNone
create_storyCreate a standalone storystudio:writeCreates content
create_sectionAdd a section to a projectstudio:writeCreates content
prepare_sectionsStructure sections into a scriptstudio:writeChanges documents
start_audio_workflowGenerate audiostudio:writeConsumes words
get_workflowCheck workflow progressstudio:readNone
cancel_workflowCancel a running workflowstudio:writeStops work
get_section_mediaGet per-block audio for a sectionstudio:readNone
get_playback_manifestGet the compiled playback timelinestudio:readNone

Results and errors#

A successful tool returns the REST API's JSON response, including data and request_id. Tools that accept a mutation_id wrap it as { "result": ..., "mutation_id": "..." } so the agent can retry the same change. A failed tool sets isError and returns the API error, plus the mutation_id when there is one. If LyricWinter could not confirm whether a write happened, the error says "No result was confirmed"; retry with the same mutation_id.

Account#

profile#

Identifies the connected LyricWinter account. Returns id, name, and email as structured content. Takes no input.

Projects and sections#

list_projects#

Lists the user's Studio projects and standalone stories with their IDs. Takes no input. Calls GET /studio/projects.

list_project_sections#

Lists the sections of one project in order, including each section's ID and the project's section_order_version. Calls GET /studio/projects/{projectId}/sections.

InputTypeRequiredDescription
project_idUUIDYesThe project to list.

create_story#

Creates a standalone Studio story from text. Calls POST /studio/sections.

InputTypeRequiredDescription
titlestring, 1–500 charactersYesStory title.
raw_textstring, 1–100,000 charactersYesThe story text.
mutation_idUUIDNoReuse only when retrying the exact same creation. Generated if omitted.

create_section#

Adds a section to an existing project. Read the project's sections first to get its current section_order_version. Calls POST /studio/projects/{projectId}/sections.

InputTypeRequiredDescription
project_idUUIDYesThe project to add to.
base_section_order_versioninteger or nullYesThe section_order_version from list_project_sections.
titlestring, 1–500 charactersYesSection title.
raw_textstring, 1–100,000 charactersYesThe section text.
mutation_idUUIDNoReuse only when retrying the exact same creation.

Documents and speakers#

get_document#

Reads a section's current document: its version, blocks, speakers, and edit targets. Agents should read the document before generating audio. Calls GET /studio/sections/{sectionId}/document.

InputTypeRequiredDescription
section_idUUIDYesThe section to read.

list_project_speakers#

Lists the speakers used in a project and their casting status. Calls GET /studio/projects/{projectId}/speakers.

InputTypeRequiredDescription
project_idUUIDYesThe project to inspect.

Workflows#

prepare_sections#

Starts an asynchronous workflow that structures sections into narration and dialogue without generating audio. Poll get_workflow for completion. Calls POST /studio/projects/{projectId}/workflows with workflow_kind: "prepare_sections".

InputTypeRequiredDescription
project_idUUIDYesThe project that owns the sections.
section_idsarray of UUIDs, 1–100YesSections to prepare.
mutation_idUUIDNoReuse only when retrying the same request.

start_audio_workflow#

Starts the paid, asynchronous Create Audio workflow for selected sections. It prepares text, casts voices, directs performances, adds sound effects, and generates audio. Confirm the scope and cost with the user first, then poll get_workflow. Calls POST /studio/projects/{projectId}/workflows with workflow_kind: "create_audio".

InputTypeRequiredDescription
project_idUUIDYesThe project that owns the sections.
section_idsarray of UUIDs, 1–12YesSections to generate.
include_generated_sfxbooleanNoAdd AI-generated sound effects. Defaults to true.
place_project_soundsbooleanNoPlace sounds linked to the project. Defaults to true.
mutation_idUUIDNoReuse only when retrying the same run. A new ID starts a new, separately billed run.

get_workflow#

Returns a workflow's status, current stage, step progress, warnings, and errors. Calls GET /studio/workflows/{workflowRunId}.

InputTypeRequiredDescription
workflow_idUUIDYesThe run.id returned when the workflow started.

cancel_workflow#

Requests cancellation of a running workflow. Agents should ask the user before cancelling. Calls POST /studio/workflows/{workflowRunId}/cancel.

InputTypeRequiredDescription
workflow_idUUIDYesThe workflow to cancel.

Media and playback#

get_section_media#

Returns the generated audio state of every block in a section, with short-lived signed playback URLs. Calls GET /studio/sections/{sectionId}/media.

InputTypeRequiredDescription
section_idUUIDYesThe section to inspect.

get_playback_manifest#

Returns the compiled playback timeline for a section. Pass the versions returned by get_document. Calls GET /studio/sections/{sectionId}/playback-manifest.

InputTypeRequiredDescription
section_idUUIDYesThe section to play.
document_versionintegerYesdocument.document_version from get_document.
speaker_registry_versionintegerYesdocument.speaker_registry_version from get_document.