Litplan MCP: ingest papers (PDF via GROBID or TEI fixtures), compile PipelineSpec, plan_compile (NL goal via planner/critic then merge+compile), approve runs, execute approved runs (Prefect), read unified run status (LangGraph + Prefect), export audit bundles, export engine-native workflows (Snakemake / Nextflow / Airflow).
Litplan defines 9 tools with complete input schemas and descriptions. Naming follows verb_noun convention (ingest, compile, plan_compile, run_status, approve, execute, destructive_op, export_audit_bundle, export_workflow). Descriptions are substantive (100-250 chars) and explain WHAT and WHEN. However, output schemas are not documented in the source, responses are inferred from code logic rather than explicitly declared. Parameter descriptions are present but some lack format/constraint details (e.g., 'run_id' lacks guidance on format). Error handling is minimal, no recovery guidance or categorization visible. Security concerns: destructive_op accepts gate_token as a parameter (should use server-side injection); no visible permission checks or audit logging. Composition is sound, tools chain logically (ingest → compile → approve → execute). Overall: solid foundation with gaps in output documentation, error guidance, and security hardening.
Human gate: set run row status (default ``approved``) and optionally deep-merge metadata JSON.
Validate and compile a PipelineSpec JSON string; optionally persist revision and create a pipeline run. When ``create_run`` is true, ``run_id`` is required; ensures the spec revision exists and inserts the run row.
Gated destructive simulation for runs/<run_id>/workspace (two-person rule on this surface).
Start Prefect execution for an approved run (persisted spec revision); idempotent if already completed.
Write spec.json, document_manifest.json, and lock_fingerprint.txt for a run (see litplan.audit_bundle).
Export Snakemake, Nextflow, or Airflow artifacts from the run's persisted approved spec (human gate: not pending).
Output schemas not documented. Tool descriptions explain inputs but not return types, fields, or structure. LLMs cannot plan downstream calls or extract required data without knowing what each tool returns.
gate_token and second_factor_token exposed as parameters in destructive_op. Credentials must use server-side injection via environment variables or vault, not tool parameters. Agent traces log all parameters, secrets leak into logs.
No error handling guidance visible. Tools lack recovery hints (e.g., 'If run not found, call list_runs()'), error categorization (retryable vs fatal), or actionable error messages. LLMs cannot self-correct on failures.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 56 | 2026-07-28+ | v2 |
Parse a PDF (GROBID) or TEI XML file into DocumentIR; optionally attach manifest fields to a run. parser_route: ``auto`` chooses by extension (``.pdf`` → live GROBID; otherwise TEI fixture replay). When ``run_id`` is set, merges parser_route / hashes / chunking profile into that run's metadata_json (run must exist). Successful responses include ``chunk_count``, ``chunking_profile``, and ``chunking_profile_sha256`` (T2.11 policy).
Natural-language goal → LangGraph planner/critic → merged PipelineSpec → same compile path as ``compile`` (no spec JSON upfront).
Unified compile (LangGraph SQLite) + execute (Prefect / node checkpoints) view for a run.
Parameter descriptions lack format/constraint details. 'run_id' and 'pipeline_id' lack guidance on format (UUID? alphanumeric? length?). 'project_home' lacks default behavior. LLMs cannot validate inputs without explicit constraints.
No visible permission checks or audit logging. destructive_op and execute are high-risk operations but lack permission gates or audit trails. No evidence of 'who called what, when, with what result' logging for compliance.