Skip to main content
TRW
Skip to content
TRWMCP Tools Reference

MCP tools reference

Use this page to identify tools and understand their roles. TRW registers 15 registered MCP tools. An ordinary session gets the always-on tools, plus each config-gated tool whose flag is on in .trw/config.yaml; tool_resolution_mode: all also turns on the peer messaging tools and trw_assess. Reviewer sessions get only trw_recall and trw_code.

Start here

For a typical task, start with trw_session_start, then use trw_recall when prior project knowledge may help. After implementation, run your project checks and record them with trw_build_check; use trw_deliver when the delivery gate is satisfied. The catalog below lists every registered tool and its surface.

Quick reference

Complete registered tool catalog. Surface describes default eligibility, not a guarantee that every session can call the tool.

The trw-mcp server registers 15 tools. Every session gets the always-on kernel; a few more tools are config-gated behind a project flag, and reviewer sessions receive a separate, smaller read-only surface. Registration does not imply that every session can call every tool. See the MCP server reference for runtime details and lifecycle for the delivery gate.

trw_session_startInspect
Description
Load prior learnings and any active run so you start with full context.Parameters: query, verbose
Surface
always-on
trw_initInspect
Description
Create a run directory and register it as the active run.Parameters: task_name, objective, prd_scope, run_type, task_type, complexity_hint, advanced
Surface
always-on
trw_statusInspect
Description
Report the active run's phase, progress and last activity.Parameters: run_path, delivery, feedback, detail
Surface
always-on
trw_recallInspect
Description
Retrieve prior learnings, or with graph_id=<id> that learning's graph neighbours.Parameters: query, tags, status, max_results, ids, options, graph_id
Surface
always-on
trw_learnInspect
Description
Record or correct a durable technical discovery.Parameters: summary, detail, tags, evidence, impact, type, confidence, evidence_level, scope, learning_id, status, metadata
Surface
always-on
trw_checkpointInspect
Description
Append a progress snapshot so work survives context compaction.Parameters: run_path, message, shard_id, heartbeat, pre_compact, directive, context_anchor, blocked_decision, slice_done
Surface
always-on
trw_deliverInspect
Description
Persist learnings and progress so future sessions inherit this session's work.Parameters: run_path, skip_reflect, skip_index_sync, allow_unverified, unverified_reason, delivery_id, capability_token
Surface
always-on
trw_build_checkInspect
Description
Record build/test results for ceremony tracking and delivery gates.Parameters: tests_passed, test_count, failure_count, coverage_pct, static_checks_clean, scope, options
Surface
always-on
trw_reviewInspect
Description
Compute a pass/warn/block review verdict and persist review.yaml.Parameters: findings, mode, reviewer_findings, reviewer_identity, review_completed, options
Surface
always-on
trw_prd_validateInspect
Description
Score a PRD against the validation suite; returns a READY/NEEDS-WORK verdict.Parameters: prd_path, fast, verbose
Surface
always-on
trw_codeInspect
Description
Find a symbol's definition in the local code index, or get before-edit hints.Parameters: mode, query, files, repo_root, top_k, path
Surface
always-on
trw_dispatchInspect
Description
Delegate a prompt to another agent CLI, or read a job or evidence.Parameters: prompt, action, client, role, effort, timeout_s, read_only, allow_writes, cwd, isolate, posture, with_trw, wait, verbose, target
Surface
config-gated
trw_sendInspect
Description
Send a bounded, durable message to a formation peer (pull-only).Parameters: request_key (required), body (required), recipient_member_id, scope, kind, delivery_class, handoff
Surface
config-gated
trw_inboxInspect
Description
Fetch, acknowledge or inspect peer messages, or run a peer action such as enroll or heartbeat.Parameters: action, message_ids, cursor, wait_seconds, pause_id, next_read, handoff
Surface
config-gated
trw_assessInspect
Description
Ask an opt-in calibrated judge typed questions about a state and get advisory probabilities.Parameters: questions (required), state (required), items
Surface
config-gated

Session and workflow

These tools manage one work session. trw_session_start explicitly requests prior learnings and active-run state; checkpoints preserve milestones that a later session can recover after interruption or compaction.

trw_session_startInspect
What it does
Load prior learnings and any active run so you start with full context.
When to use
Start of every session
trw_initInspect
What it does
Create a run directory and register it as the active run.
When to use
New tasks beyond quick fixes
trw_statusInspect
What it does
Report the active run's phase, progress and last activity.
When to use
Resuming after interruption
trw_checkpointInspect
What it does
Append a progress snapshot so work survives context compaction.
When to use
After each milestone; pre_compact=True before a context compaction

Learning and knowledge

These tools record, retrieve, and update durable discoveries. Recall is explicit and ranked against the current query; delivery does not promote arbitrary learning text into your client's instruction file.

trw_learnInspect
What it does
Record or correct a durable technical discovery.
When to use
On errors, gotchas, or patterns; when an issue is fixed
trw_recallInspect
What it does
Retrieve prior learnings, or with graph_id=<id> that learning's graph neighbours.
When to use
Before starting unfamiliar work

Quality and verification

Quality tools record validation outcomes, produce structured review artifacts, and enforce the delivery receipt boundary. Run the real project commands first; these tools preserve and evaluate the evidence rather than replacing the test runner.

trw_build_checkInspect
What it does
Record build/test results for ceremony tracking and delivery gates.
When to use
After implementation
trw_reviewInspect
What it does
Compute a pass/warn/block review verdict and persist review.yaml.
When to use
Before committing changes
trw_deliverInspect
What it does
Persist learnings and progress so future sessions inherit this session's work.
When to use
End of every task

Requirements

Requirements are the bridge between what you want and what your agent builds. trw_prd_validate checks an AARE-F PRD with EARS-format requirements for completeness before implementation begins; the trw-mcp prd create command drafts one.

trw_prd_validateInspect
What it does
Score a PRD against the validation suite; returns a READY/NEEDS-WORK verdict.
When to use
Before implementation begins

Code

trw_code answers code questions from a local index: symbol lookup and before-edit hints that pair a file with the learnings recorded about it. For text search, use rg or grep. Build or refresh the index with the trw-mcp code index command; a query never rebuilds it.

trw_codeInspect
What it does
Find a symbol's definition in the local code index, or get before-edit hints.
When to use
Before editing unfamiliar code: mode="symbol" or "hint"

Feedback

Send the TRW maintainer a bug report, install issue, feature request, or general feedback without leaving your editor. Submissions go through the authenticated platform endpoint, and PII - license keys, API key prefixes, your home path, and sensitive env vars - is redacted client-side before anything leaves your machine.

trw_statusInspect
What it does
Report the active run's phase, progress and last activity.
When to use
When you hit a bug or want to send feedback: trw_status(feedback={...})

Config-gated tools

Each of these tools appears only while its flag is on in .trw/config.yaml. The peer messaging tools (comms_enabled) are on by default; trw_assess (assess_enabled) and trw_dispatch (dispatch_tools_exposed) are off until you turn them on.

trw_sendInspect
What it does
Send a bounded, durable message to a formation peer (pull-only).
When to use
Messaging a formation peer; on by default (comms_enabled)
trw_inboxInspect
What it does
Fetch, acknowledge or inspect peer messages, or run a peer action such as enroll or heartbeat.
When to use
Reading or acknowledging peer messages; on by default (comms_enabled)
trw_assessInspect
What it does
Ask an opt-in calibrated judge typed questions about a state and get advisory probabilities.
When to use
Only when assess_enabled is true and assessment is appropriate
trw_dispatchInspect
What it does
Delegate a prompt to another agent CLI, or read a job or evidence.
When to use
Handing a second-opinion review to another coding CLI; needs dispatch_tools_exposed

Usage examples

A connected agent calls these tools when the workflow requires them. These examples show the activity shape you may see as a task moves from startup to delivery.

Common patterns

Tools combine differently depending on task risk and client capability. Start with the smallest pattern that preserves the evidence and handoff the task actually needs.

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. Unlike tools, resources are not filtered by task type — all of them are readable in every session.

Resource
trw://framework/config
What it provides
Current TRW configuration - ceremony mode, trust level, target platforms
Resource
trw://framework/versions
What it provides
Framework and package versions for compatibility checks
Resource
trw://run/state
What it provides
Active run phase, checkpoints, and progress metrics
Resource
trw://learnings/summary
What it provides
Recent high-impact learnings for the current project
Resource
trw://templates/prd
What it provides
PRD requirements-document template (AARE-F)
Resource
trw://templates/shard-card
What it provides
Shard-card scaffold for decomposing larger requirements

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.