project_query
List accessible projects, read one project by stable id, re-find a project by exact name, or inspect canonical Novel development, adaptation source, Chapter, manuscript, Voice, audit, canon, candidate, and export-readiness state.
When to use
- Use when the caller wants lightweight project discovery, one project summary, or to recover a project id by exact name before follow-up mutations.
- Use `mode=novel` plus `novel_mode` for complete author reads without requiring resource support. Blueprint and Voice include complete author content; Chapter plans, manuscript prose, Canon and Audit findings are paginated. Manuscript and Audit default to one complete item per page.
- Source is a paginated unit index; use source_unit with its observed source_id for complete captured text. Candidate with child_job_id and voice_proposal with job_id reopen complete saved proposals for review, with no generation or Apply.
- Read manuscript_metadata for the document revision and manuscript_revisions with chapter_card_id for paginated checkpoint summaries before exact novel_mutate saves/restores. Follow next_cursor for more history; summaries omit full Chapter bodies. Use `novel_mode=prose_vitals` with `chapter_card_id` for free deterministic craft diagnostics on a saved Chapter.
- Use `novel_mode=changes` to inspect Chapters flagged by upstream changes and open shared manuscript proposals (Audit suggestions, prose edits); the query returns a `story_review_run(novel_operation=change_proposal, phase=review)` call per open proposal, and decisions use its `apply` phase after the author reviews the before/after.
When not to use
- Do not use for screenplay content or story-graph mutations.
Examples
- “List my projects.”
- “Read the project with id 123.”
- “Find the project named Scenario MCP Test.”
- “Read the canonical manuscript Chapter with `mode=novel`, `novel_mode=manuscript_chapter`, and `chapter_card_id`.”
- “Read saved original/adapted Novel development, including unfinished Foundation, with `mode=novel` and `novel_mode=blueprint`.”
Anti-examples
- Rewrite scene 5 in my screenplay.
Backend capabilities
project.listproject.getnovel.query
Linked resources
Tool calls may return resource_links pointing at these resource families.
project_canon_summarynovel_sourcenovel_source_unitnovel_blueprintnovel_manuscriptnovel_chapternovel_canonnovel_auditsnovel_candidatenovel_voicenovel_voice_proposalnovel_changes
Input schema
project_query input
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"type": "string",
"enum": [
"list",
"get",
"name_exact",
"search",
"novel"
]
},
"project_id": {
"type": "integer"
},
"name": {
"type": "string",
"minLength": 1
},
"query": {
"type": "string",
"minLength": 1
},
"cursor": {
"type": [
"string",
"null"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"description": "Novel manuscript/Audit reads default to one complete item per page; other Novel collections default to 20. Follow next_cursor for more."
},
"novel_mode": {
"type": "string",
"enum": [
"source",
"source_unit",
"blueprint",
"chapters",
"chapter_graph",
"manuscript",
"manuscript_metadata",
"manuscript_revisions",
"manuscript_chapter",
"prose_vitals",
"candidates",
"candidate",
"voice",
"voice_proposal",
"audit_runs",
"changes",
"canon",
"export_readiness"
]
},
"chapter_card_id": {
"type": "integer",
"minimum": 1
},
"source_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Observed identity required only for novel_mode=source_unit."
},
"child_job_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Observed identity required only for novel_mode=candidate."
},
"job_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Observed identity required only for novel_mode=voice_proposal."
}
},
"allOf": [
{
"if": {
"properties": {
"mode": {
"const": "get"
}
}
},
"then": {
"required": [
"project_id"
]
}
},
{
"if": {
"properties": {
"mode": {
"const": "name_exact"
}
}
},
"then": {
"required": [
"name"
]
}
},
{
"if": {
"properties": {
"mode": {
"const": "search"
}
}
},
"then": {
"required": [
"query"
]
}
},
{
"if": {
"properties": {
"mode": {
"const": "novel"
}
},
"required": [
"mode"
]
},
"then": {
"required": [
"project_id",
"novel_mode"
]
}
},
{
"if": {
"properties": {
"mode": {
"const": "novel"
},
"novel_mode": {
"enum": [
"manuscript_chapter",
"manuscript_revisions",
"prose_vitals"
]
}
},
"required": [
"mode",
"novel_mode"
]
},
"then": {
"required": [
"chapter_card_id"
]
}
},
{
"if": {
"properties": {
"mode": {
"const": "novel"
},
"novel_mode": {
"const": "source_unit"
}
},
"required": [
"mode",
"novel_mode"
]
},
"then": {
"required": [
"source_id"
]
},
"else": {
"properties": {
"source_id": false
}
}
},
{
"if": {
"properties": {
"mode": {
"const": "novel"
},
"novel_mode": {
"const": "candidate"
}
},
"required": [
"mode",
"novel_mode"
]
},
"then": {
"required": [
"child_job_id"
]
},
"else": {
"properties": {
"child_job_id": false
}
}
},
{
"if": {
"properties": {
"mode": {
"const": "novel"
},
"novel_mode": {
"const": "voice_proposal"
}
},
"required": [
"mode",
"novel_mode"
]
},
"then": {
"required": [
"job_id"
]
},
"else": {
"properties": {
"job_id": false
}
}
}
],
"additionalProperties": false
}Output schema
project_query output
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"mode"
],
"properties": {
"mode": {
"type": "string"
},
"projects": {
"type": "array",
"items": {
"type": "object"
}
},
"project": {
"type": "object"
},
"project_id": {
"type": [
"integer",
"null"
]
},
"project_name": {
"type": [
"string",
"null"
]
},
"project_mode": {
"type": [
"string",
"null"
]
},
"project_updated_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"recommended_screenplay_workflow": {
"type": [
"string",
"null"
],
"description": "Recommended screenplay_generation_run workflow for this project's template mode."
},
"template_pipeline": {
"type": "object",
"description": "Compact MCP routing hints derived from the project's template pipeline."
},
"project_summary": {
"type": [
"object",
"null"
],
"description": "Compact 'what already exists' signal for a single-project get: derived `state` (empty_project | story_outline_ready | screenplay_ready | media_ready | active_job) and `card_counts` (story_cards, scenes, episodes, screenplay, shots, media). Use it to avoid re-running a stage whose output already exists.",
"properties": {
"state": {
"type": [
"string",
"null"
]
},
"card_counts": {
"type": "object"
}
}
},
"match_count": {
"type": "integer"
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"resource_links": {
"type": "array",
"items": {
"type": "object"
}
}
},
"additionalProperties": true
}← All toolsv1 · query_tool