Tool Reference

Complete API reference for all Cutline MCP tools including pre-mortem analysis, AI persona feedback, wiki management, and product validation. Includes parameters, examples, and response formats.

Complete documentation for all Cutline MCP tools available through the Model Context Protocol.

Audit Tools

These tools scan your codebase for active issues — real vulnerabilities and anti-patterns in your code as written today.

engineering_audit

šŸ”“ FREE — Engineering audit that evaluates your codebase against a stack-aware constraint graph covering security, reliability, and scalability. No deep dive or product_id required. 3 scans/month on free tier.

Parameters:

ParameterTypeRequiredDescription
project_rootstringYesAbsolute path to the workspace root
task_descriptionstringNoContext about what you're building
max_file_bytesnumberNoMax bytes per file (default: 50000)

Response: Readiness scores (engineering, security, reliability, scalability), binding coverage, top finding with fix guidance, and SCA vulnerability summary.


code_audit

šŸ”’ PREMIUM — Security-focused code audit that cross-references the product constraint graph, runs LLM extraction for security gaps, and builds an RGR remediation plan.

Parameters:

ParameterTypeRequiredDescription
product_idstringYesProduct ID from .cutline/config.json
project_rootstringYesAbsolute path to workspace root
file_pathsstring[]NoSpecific files to audit
task_descriptionstringNoWhat you're building
audit_modestringNosecurity (default) or full
max_file_bytesnumberNoMax bytes per file (default: 50000)
auto_startbooleanNoQueue a deep dive job (default: true)

Response: RGR plan, security gaps, extracted risks, checklist summary, SCA findings, constraint graph updates, and next-step RGR instructions.


Constraint Tools

These tools are available through the cutline-constraints server. They power the constraint graph, NFR boundary enforcement, and the adaptive Red-Green-Refactor workflow.

rgr_plan

Assess constraint complexity for a file and return an adaptive execution plan. Call this before implementing any feature.

Parameters:

ParameterTypeRequiredDescription
product_idstringYesProduct ID
file_pathstringYesFile path to assess (e.g., src/api/upload.ts)
depthnumberNoBFS traversal depth (default: 2)
auth_tokenstringNoFirebase ID token

Response: Returns strategy ("full" or "phased"), an array of phases with names, categories, and constraint counts, plus a rationale string.


graph_get_boundaries

Get constraint boundaries for a specific file path. Returns functional context (features, components, data types) and applicable NFRs. Supports RGR phased delivery.

Parameters:

ParameterTypeRequiredDescription
product_idstringYesProduct ID
file_pathstringYesFile path to look up constraints for
depthnumberNoBFS traversal depth (default: 2)
max_tokensnumberNoToken budget for output (default: 2000)
phasestringNoRGR phase filter: test_spec, functional, security, performance, economics, full, or auto (default: full)
auth_tokenstringNoFirebase ID token

Response: Imperative Markdown with functional context and NFRs, formatted for the requested phase.


constraints_auto

Proactive constraint injection. Analyzes your current file/code context and automatically surfaces relevant constraints.

Parameters:

ParameterTypeRequiredDescription
product_idstringYesProduct ID
file_pathsstring[]NoFiles you're working on
code_snippetstringNoCurrent code context (500 char max)
task_descriptionstringNoWhat you're trying to accomplish
modestringNoOutput mode: silent, advisory, blocking, deep, auto (default: auto)
max_constraintsnumberNoMax constraints to return (default: 5)
phasestringNoRGR phase filter (same options as graph_get_boundaries)
auth_tokenstringNoFirebase ID token

rgr_complete_phase

šŸ”’ PREMIUM — Mark an RGR phase as complete. Updates the constraint graph and recomputes readiness scores with the phase bonus.

Parameters:

ParameterTypeRequiredDescription
product_idstringYesProduct ID
phasestringYesPhase to complete: test_spec, functional, security, performance, or economics

Response: Updated readiness scores and completed phases list.


generate_cutline_md

šŸ”’ PREMIUM — Generate and write Cutline config files. Creates .cutline.md (constraint routing engine), Cursor rules, Claude Code config, and RGR workflow rules. If project_root is provided, files are written directly to disk.

Parameters:

ParameterTypeRequiredDescription
product_idstringYesProduct ID
product_namestringNoHuman-readable product name
project_rootstringNoWorkspace root — writes files directly when provided
project_typestringNoPrimary framework/stack (auto-detected if omitted)
mcp_serverstringNoMCP server name to reference (default: cutline-constraints)
max_embedded_constraintsnumberNoMax critical constraints to embed (default: 7)

Response: When project_root is set, returns list of files written. Otherwise returns content for manual saving.


Pre-mortem Tools

These tools are available through the cutline-premortem server.

premortem.run

Generate a complete pre-mortem analysis synchronously.

Parameters:

ParameterTypeRequiredDescription
inputobjectYesPre-mortem input configuration
input.productNamestringYesName of the product or feature
input.productDescriptionstringYes2-3 sentence description
input.referenceClassesstring[]NoIndustry/domain references
input.pessimismnumberNoPessimism level (0.0 - 1.0, default: 0.5)
auth_tokenstringNoFirebase ID token (auto-filled by CLI)

Example:

{
  "input": {
    "productName": "Mobile Analytics Dashboard",
    "productDescription": "A mobile app that provides real-time analytics for e-commerce stores, helping merchants track sales and customer behavior on the go.",
    "referenceClasses": ["Mobile apps", "Analytics tools", "E-commerce"],
    "pessimism": 0.6
  }
}

Response: Full pre-mortem document with assumptions, risks, experiments, and recommendations.


premortem.list

List all pre-mortems for the authenticated user.

Parameters:

ParameterTypeRequiredDescription
limitnumberNoMaximum results (default: 10)
auth_tokenstringNoFirebase ID token

Example:

{
  "limit": 5
}

Response: Array of pre-mortem summaries with IDs, names, status, and dates.


premortem.queue

Queue an asynchronous pre-mortem job for longer/complex analyses.

Parameters:

ParameterTypeRequiredDescription
inputobjectYesSame as premortem.run
auth_tokenstringNoFirebase ID token

Response: Job ID for tracking progress.


premortem.status

Check the status of a queued pre-mortem job.

Parameters:

ParameterTypeRequiredDescription
jobIdstringYesJob ID from premortem.queue
auth_tokenstringNoFirebase ID token

Response: Job status, progress percentage, and current stage.


premortem.kick

Execute or resume a queued pre-mortem job.

Parameters:

ParameterTypeRequiredDescription
jobIdstringYesJob ID to execute
auth_tokenstringNoFirebase ID token

premortem.regen_assumptions

Regenerate the assumptions section of an existing pre-mortem.

Parameters:

ParameterTypeRequiredDescription
inputobjectYesOriginal input parameters
docobjectYesExisting pre-mortem document
auth_tokenstringNoFirebase ID token

premortem.regen_experiments

Regenerate the experiments section of an existing pre-mortem.

Parameters:

ParameterTypeRequiredDescription
inputobjectYesOriginal input parameters
docobjectYesExisting pre-mortem document
auth_tokenstringNoFirebase ID token

Persona Tools

These tools are available through the cutline-tools server.

personas.list

List all personas for the authenticated user.

Parameters:

ParameterTypeRequiredDescription
productIdstringNoFilter by product ID
auth_tokenstringYesFirebase ID token

Response: Array of persona objects with demographics, personality, and behaviors.


personas.get

Get a specific persona by ID.

Parameters:

ParameterTypeRequiredDescription
personaIdstringYesPersona ID
auth_tokenstringYesFirebase ID token

Response: Complete persona object.


personas.chat

Have a conversation with a persona about your product or feature.

Parameters:

ParameterTypeRequiredDescription
personaobjectYesPersona object
userMessagestringYesYour message to the persona
conversationHistoryarrayNoPrevious messages for context
productobjectNoProduct context
auth_tokenstringYesFirebase ID token

Example:

{
  "persona": {
    "name": "Debra",
    "description": "Technical solopreneur running multiple SaaS businesses",
    "role": "Founder",
    "segment": "Startup"
  },
  "userMessage": "What do you think about adding a mobile app to our analytics platform?",
  "product": {
    "name": "Cutline",
    "brief": "AI product management suite"
  }
}

Response: Persona's response in character, based on their profile.


Wiki Tools

These tools are available through the cutline-tools server.

wiki.load

Load the wiki/documentation for a project.

Parameters:

ParameterTypeRequiredDescription
projectIdstringYesProject ID
auth_tokenstringNoFirebase ID token

Response: Wiki content in markdown format.


wiki.save

Save updated wiki content.

Parameters:

ParameterTypeRequiredDescription
projectIdstringYesProject ID
markdownstringYesWiki content in markdown
auth_tokenstringNoFirebase ID token

wiki.apply_edits

Apply specific edits to wiki content.

Parameters:

ParameterTypeRequiredDescription
editsarrayYesArray of edit operations
auth_tokenstringNoFirebase ID token

Agent Tools

agent.chat

Chat with the Cutline AI assistant about your wiki or product.

Parameters:

ParameterTypeRequiredDescription
promptstringYesYour question or request
wikiMarkdownstringNoWiki context for the chat
auth_tokenstringNoFirebase ID token

Example:

{
  "prompt": "What are the main risks identified in my product wiki?",
  "wikiMarkdown": "# My Product\n\n## Risks\n- Market timing..."
}

trial.generate

Generate a trial run scenario for testing.

Parameters:

ParameterTypeRequiredDescription
promptstringYesDescription of what to test

Example:

{
  "prompt": "Generate a trial run for testing our checkout flow with 100 users"
}

Output Tools

These tools are available through the cutline-output server.

premortem.render_pdf

Generate a PDF from a pre-mortem document.

Parameters:

ParameterTypeRequiredDescription
docobjectYesPre-mortem document
storebooleanNoStore PDF in cloud (default: false)
auth_tokenstringNoFirebase ID token

Response: Signed URL to download the PDF.


premortem.qa_answer

Answer questions about a pre-mortem document.

Parameters:

ParameterTypeRequiredDescription
docobjectYesPre-mortem document
questionstringYesQuestion to answer

Example:

{
  "doc": { ... },
  "question": "What are the top 3 risks identified?"
}

Integration Tools

These tools are available through the cutline-integrations server.

integrations.create_issues

Create issues in an external issue tracker from pre-mortem results.

Parameters:

ParameterTypeRequiredDescription
schema_jsonobjectYesIssue schema and data
limitnumberNoMaximum issues to create
auth_tokenstringNoFirebase ID token

Error Handling

All tools may return errors in this format:

{
  "error": "MCP error -32600: Permission denied"
}

Common Error Codes:

CodeMeaningSolution
-32600Permission deniedCheck authentication
-32601Method not foundVerify tool name
-32602Invalid paramsCheck required parameters
-32603Internal errorContact support

Rate Limits

TierEngineering AuditsCode AuditsPre-mortems
Free3/month——
PremiumUnlimitedUnlimitedUnlimited
EnterpriseUnlimitedUnlimitedUnlimited

Next Steps