Decompose is the missing cognitive primitive for AI agents. Text in, classified structured units out. No LLM. No setup. One function call.
Before / After
Real output from the MCP Transport Specification.
attention — 0–10 priority score. Unit 3 scores 4.5 (security risk + directive authority). The overview scores 0.0. Your agent knows where to focus.
risk: security — "attackers", "DNS rebinding", "authentication" trigger security risk detection. The overview and guidelines carry no risk signal.
authority — MUST/MUST NOT = mandatory/prohibitive. SHOULD = directive. Plain prose = informational. Your agent knows what's binding vs. advisory.
actionable — Unit 3 requires action: validate Origin headers, bind to localhost, implement auth. The overview requires nothing.
source — This is real output. Run it yourself: curl spec.modelcontextprotocol.io | python -m decompose
What it does
Mandatory, prohibitive, directive, permissive, informational, conditional. Knows the difference between "shall" and "should" and "may."
Safety-critical, compliance, financial, contractual, advisory. Each chunk gets scored and labeled by risk category.
Standards, dates, dollar amounts, percentages. Deterministic regex. No hallucinations. No API calls.
Detects content that must be preserved verbatim — legal mandates, threshold values, safety limits. Tells your model what it cannot summarize.
Header-aware Markdown chunking. Sentence-boundary text splitting. Each chunk preserves its heading path and structural context.
Every unit gets an attention score from 0–10. Your agent knows which chunks matter most without reading all of them.
Install
MCP Integration
Add one block to your MCP config. Your agent gets two tools: decompose_text and decompose_url.
Benchmarks
Real numbers from the test suite. 5 documents, 15,683 characters, run on Apple Silicon.
Your model is only as good as what you feed it. Feed it structure.