MCP Tools Reference

July 4, 2026 ยท View on GitHub

Architecture

ComponentPathRole
Entrytools/mcp/index.mjsBootstrap and stdio transport
Servertools/mcp/server.mjsMcpServer class, JSON-RPC over stdio
Infrastructuretools/mcp/infra.mjsPlatform utils (paths, file I/O)
Domain modulestools/mcp/domain/Tool implementations by domain

Memory Domain (tools/mcp/domain/memory.mjs)

All memory operations route through a single unified Orchestrator_memory MCP tool with action-based routing:

ActionDescriptionKey Parameters
recallSearch memory with scope/type filtersquery, layer (all/semantic/episodic/procedural/knowledge), k, section
learnStore fact with type classificationkey, value, type, source (user_explicit/observed/inferred/external_unverified)
episodeRecord event or reflect on taskevent, outcome, op (reflect/blindspot/suggest/patterns)
procedureSave reusable workflowname, steps[], context
manageConsolidate, delete, update, seed, indexop (consolidate/delete/update/contradictions/seed/index)
sessionSession state managementop, notes, persist
systemSystem info and diagnosticsop

Knowledge Recall (layer: "knowledge")

When layer: "knowledge" is specified, recall routes to passage search over indexed articles:

Orchestrator_memory(action:"recall", query:"<topic>", layer:"knowledge", section:"<optional>")

Episode Reflect

Records task outcome with trust calibration:

Orchestrator_memory(action:"episode", op:"reflect", agent:"<name>", outcome:"success|partial|failure", worked:"<what>", failed:"<what>")

| memory_contradictions | Detect same-type facts that are similar but conflicting (flags, no auto-merge) | threshold (0-1, default 0.85) | | memory_delete | Delete memories by pattern (substring match). Destructive. | pattern, dry_run |

Reflection Domain (tools/mcp/domain/reflection.mjs)

ToolDescriptionKey Parameters
reflectRecord task reflection; outcome feeds success-weighted learningtask, worked, failed, pattern, outcome (success/partial/failure)
reflect_suggestRecall best-scoring past approach for a situationsituation
blindspotRecord or check blindspots. action=log records, action=check matches context.action (log/check), area, observation, context

Metrics Domain (tools/mcp/domain/metrics.mjs)

ToolDescriptionKey Parameters
dashboardFull overview of memory, metrics, patterns, procedures, micro-tools, rulessection (all/memory/metrics/patterns/procedures/tools/rules)

Session Domain (tools/mcp/domain/session.mjs)

ToolDescriptionKey Parameters
user_profileGet/update profile, or discover identity from all sourcesupdate, action (get/discover), persist, name
session_logTrack work duration, rest remindersaction (start/end/check), context
goalSet/check/done exit conditionsaction (set/check/done/status/clear), condition, max_turns
loopRecurring reminders at intervalsaction (start/stop/list/clear/check), prompt, interval
shutdown_ritualWind-down helperaction (configure/check/trigger/status/snooze), bedtime

Music Domain (tools/mcp/domain/music.mjs)

ToolDescriptionKey Parameters
play_musicYouTube/local player with taste learning, playlist, radio modeaction (play/stop/pause/next/prev/like/dislike/radio/...), query, source

Knowledge Domain (tools/mcp/domain/knowledge.mjs)

Knowledge Operations (via unified memory tool)

Knowledge operations are accessed through the same Orchestrator_memory tool:

OperationInvocationDescription
Index/seedaction:"manage", op:"seed"Scan knowledge/ markdown, store summaries + chunk bodies
Section listaction:"recall", layer:"knowledge", list_sections:trueList available knowledge sections
Passage searchaction:"recall", query:"...", layer:"knowledge", section:"..."Semantic passage search over article bodies

Audit Domain (tools/mcp/domain/audit.mjs)

ToolDescriptionKey Parameters
zara_self_auditValidate config integrity: agents vs prompt files, plugin modules, MCP domainsmap

Identity Domain (tools/mcp/domain/identity.mjs)

ToolDescriptionKey Parameters
user_profileGet/update user profile, or discover identity from all sources (env, git, OS, memory)action (get/discover), update, persist, name

Project Domain (tools/mcp/domain/project.mjs)

ToolDescriptionKey Parameters
project_learnExtract project knowledge (stack, structure, tests, CI) from workspace and store as scoped factspath

Improve Domain (tools/mcp/domain/improve.mjs)

ToolDescriptionKey Parameters
zara_self_improveRun self-improvement cycle: observe (gather signals) or orient (prioritize findings)phase (observe/orient/full)

Tool Count Summary

DomainTools
Memory7
Reflection6
Metrics3
Session5
Music1
Knowledge4
Audit2
Project1
Identity1
Improve1
Total31

Removed Tools (consolidated into existing)

RemovedAbsorbed By
memory_statsdashboard(section: "memory")
metrics_todaydashboard(section: "metrics")
micro_toolsdashboard(section: "tools")
workflow_rulesdashboard(section: "rules")
patternsdashboard(section: "patterns")
zara_evolve_statusdashboard(section: "all")
blindspot_logblindspot(action: "log")
blindspot_checkblindspot(action: "check")
user_identityuser_profile(action: "discover")
chm2mdCLI-only: node tools/chm2md.mjs
chm2md_improveCLI-only: node tools/chm2md.mjs --improve