Skip to main content
TRW
Skip to content
TRWMCP Tools Reference

MCP tools reference

MCP tools are the low-level primitives your AI uses while it works. You usually do not type them directly; they show up in activity traces as the agent loads memory, checkpoints progress, verifies quality, and closes the session. TRW exposes 32 MCP tools across six reader-friendly groups so you can tell what the agent is doing and why.

Quick reference

All 32 tools at a glance. The Phase column shows where each tool typically fires in the six-phase lifecycle.

ToolDescriptionPhase
trw_session_startLoad prior learnings and recover any active run.Research
trw_initCreate a run directory for progress tracking.Plan
trw_statusShow current phase, progress, and next steps.Any
trw_checkpointSave an atomic progress snapshot.Implement
trw_pre_compact_checkpointEmergency checkpoint before context compaction.Any
trw_learnRecord a discovery for all future sessions.Review
trw_learn_updateMark learnings as resolved or obsolete.Any
trw_recallSearch past learnings by keyword, tags, or impact.Research
trw_instructions_syncRefresh the client instruction file (CLAUDE.md / AGENTS.md / etc.) with the latest TRW protocol.Deliver
trw_build_checkRecord pytest, mypy, and coverage results for delivery gates.Validate
trw_reviewIndependent code review with rubric scoring.Review
trw_deliverPersist learnings, sync artifacts, close run.Deliver
trw_prd_createGenerate an AARE-F requirements document.Plan
trw_prd_validateCheck requirements quality and completeness.Plan

Session and workflow

These tools manage the lifecycle of a single work session. They ensure your agent never starts from scratch — prior learnings load automatically, and checkpoints survive context compaction so interrupted work resumes where it left off.

ToolWhat it doesWhen to use
trw_session_startLoad prior learnings and recover any active run.Start of every session
trw_initCreate a run directory for progress tracking.New tasks beyond quick fixes
trw_statusShow current phase, progress, and next steps.Resuming after interruption
trw_checkpointSave an atomic progress snapshot.After each milestone
trw_pre_compact_checkpointEmergency checkpoint before context compaction.Automatically before context window fills

Learning and knowledge

The knowledge layer is what makes TRW compound. These tools capture discoveries, search prior learnings, and promote high-impact knowledge into your project's permanent instruction surfaces. Session 50 surfaces the gotcha that session 3 discovered.

ToolWhat it doesWhen to use
trw_learnRecord a discovery for all future sessions.On errors, gotchas, or patterns
trw_learn_updateMark learnings as resolved or obsolete.When issues are fixed
trw_recallSearch past learnings by keyword, tags, or impact.Before starting unfamiliar work
trw_instructions_syncRefresh the client instruction file (CLAUDE.md / AGENTS.md / etc.) with the latest TRW protocol.During delivery or after major discoveries

Quality and verification

Quality gates prevent rework. Build checks catch failures before code review, independent reviews score against DRY/KISS/SOLID rubrics, and delivery gates ensure learnings persist. Without these gates, AI-generated code ships untested.

ToolWhat it doesWhen to use
trw_build_checkRecord pytest, mypy, and coverage results for delivery gates.After implementation
trw_reviewIndependent code review with rubric scoring.Before committing changes
trw_deliverPersist learnings, sync artifacts, close run.End of every task

Requirements

Requirements are the bridge between what you want and what your agent builds. These tools create AARE-F compliant PRDs with EARS-format requirements, then validate them for completeness before implementation begins.

ToolWhat it doesWhen to use
trw_prd_createGenerate an AARE-F requirements document.Defining new features
trw_prd_validateCheck requirements quality and completeness.Before implementation begins

Usage examples

Your AI calls these tools automatically. These examples show the shape of the activity you should expect to see while a task moves from startup to delivery.

Common patterns

Tools combine into patterns depending on task complexity. Your agent selects the right pattern automatically, but understanding these helps you predict what your agent will do.

MCP resources

In addition to tools, TRW exposes 6 read-only MCP resources. Your AI reads these for configuration, state, and templates without making a tool call.

ResourceWhat it provides
trw://configCurrent TRW configuration — ceremony mode, trust level, target platforms
trw://versionFramework and package versions for compatibility checks
trw://run-stateActive run phase, checkpoints, and progress metrics
trw://learningsRecent high-impact learnings for the current project
trw://templatesPRD templates, commit formats, and skill scaffolds
trw://analyticsHistorical build pass rates, ceremony compliance, and learning yield

TRW ships 32 MCP tools. In large sessions, tool descriptions alone can consume a significant share of the context window. MCP Tool Search defers tool schemas until they are actually needed, keeping the active context lean.

BehaviorDetails
Default stateEnabled — auto-activates when tool descriptions exceed 10% of the context window
MechanismTool schemas are deferred and fetched on demand, reducing prompt overhead for tools not used in the current session
Opt outSet ENABLE_TOOL_SEARCH=false in the env section of a client config file such as .claude/settings.json
Force enableSet ENABLE_TOOL_SEARCH=true to activate regardless of context window size
client config example (.claude/settings.json)
{
  "env": {
    "ENABLE_TOOL_SEARCH": "false"  // disable deferred schemas
  }
}

Next steps

Tools are the primitives. Skills show the packaged workflows built on top of them, agents show who uses them, and lifecycle explains when each one should appear.

Next

Tools are the primitives. Skills and agents show how TRW composes them into larger workflows and delegated work.