Docs/Tool Reference

title: Tool Reference description: Complete reference for the 100+ MCP tools provided by phorvec.

Tool Reference

phorvec exposes its capabilities as MCP tools. Every tool listed here is available to any MCP-compatible client connected to a running phorvec server. Tools are invoked by name with a JSON arguments object.

Tools are grouped below by functional category.


Context

The context tools manage an agent's short-term working memory. Context items decay over time (configurable), can be organized into branches, and can be promoted to long-term memory.

ToolDescription
context_storeWrite a content item with role, optional metadata (tags, file references), and project. Auto-deduplicates within a 5-minute window.
context_retrieveHybrid search (vector + BM25 + RRF) over a project's context. Returns ranked items with metadata._item_id matching the store ID.
context_clearDelete the project's context agent and all its items.
context_compressMerge semantically similar items to reduce item count.
context_snapshot_saveExport the current context branch (or full store) to a .vlbrain bundle file.
context_snapshot_listList saved snapshots for the project.
context_snapshot_restoreLoad a .vlbrain bundle back into the agent's context store.
context_snapshot_deletePermanently delete a saved snapshot.
context_branch_createCreate a new named context branch.
context_branch_switchSet a named branch as the active branch for subsequent context operations.
context_branch_mergeMerge a source branch into the current active branch with deduplication.
context_branch_deletePermanently delete a named context branch and all its items.
context_timelineReturn a chronological event log of context writes and retrievals on the current branch.
context_decay_previewShow projected importance scores for current items at a specified future time, without modifying data.
context_taggingAdd or remove tags on a context item by item ID.
context_pinMark a context item as exempt from decay and automatic cleanup.
context_optimizeAnalyze the current branch and apply or suggest compaction operations (merge duplicates, archive low-importance items).
context_linkCreate an explicit cross-reference between two context items by ID.
context_merge_sessionsCombine context items from two session IDs into the current active branch.

Memory

The memory tools manage an agent's long-term memory store. Items here persist across sessions and are subject to consolidation and retention policies.

ToolDescription
memory_storeWrite a memory item with optional tags, source, and importance weight.
memory_recallRetrieve relevant memories using hybrid search. Supports tag filters and time range filters.
memory_consolidateRun the four-phase consolidation process: deduplication, archival, association, and garbage collection.
memory_gcRemove purge-queue items, clean up orphaned graph nodes, and reclaim disk space.
memory_exportSerialize the memory store (or a filtered subset) to a portable JSON file.
memory_importLoad a previously exported JSON file into the agent's memory with deduplication.
memory_promoteElevate a context item into the long-term memory store with an optional importance adjustment.
memory_block_createCreate a new named memory block — durable, cross-agent content (preferences, style guides, stable facts).
memory_block_readRead a block's content by name.
memory_block_writeUpdate an existing block's content. Auto re-embeds for vector search.
memory_block_listList blocks in a project or agent.
memory_block_deletePermanently delete a memory block.
memory_block_shareGrant another agent read access to a block — no copy, just access.

Search & RAG

Hybrid search (vector + BM25 + RRF fusion) is the default retrieval mode for context_retrieve and rag_search. Each takes an optional mode (hybrid, vector, keyword) and alpha (vector/keyword blend, 0.0–1.0).

ToolDescription
rag_index_fileIndex a single file. Language-aware chunking respects functions, classes, headings. Stored in the project's code_* agent.
rag_index_directoryRecursively index a directory, respecting .gitignore rules and skipping binaries.
rag_refreshRe-index files whose modification time has changed since the last run.
rag_searchSearch indexed code chunks by query. Returns chunks with file_path, score, and surrounding context.

Team

The team tools coordinate knowledge sharing and task routing across multiple agents. See Core Features — Team Collaboration for conceptual background.

ToolDescription
team_setupInitialize a new team, assign an owner agent, and set the sharing mode (FULL, PROTECTED, or ISOLATED).
team_manageUpdate team metadata, sharing mode, or membership rules for an existing team.
team_createCreate a sub-team or project-scoped team under an existing team.
team_add_memberAdd an agent to a team with a specified role.
team_searchQuery the team's shared knowledge pool using hybrid search.
team_dispatchSend a task or query to one or more team members and collect their responses.
team_consolidateRun the four-phase consolidation process over the team's shared knowledge pool.
team_feedReturn a chronological stream of events from the team's shared pool.
team_personaAssociate a role description and behavioral profile with an agent within the team context.
team_workflowDefine or execute a named multi-step workflow that routes tasks between team members.

Quantization

The quantization tools manage vector quantization for the HNSW index. See Core Features — Vector Quantization for background on quantization modes.

ToolDescription
quantization_statusReport the current quantization mode, index size, and size-reduction ratio.
quantization_migrateMigrate an existing index from one quantization mode to another (e.g., float32 to int8).

Graph

The graph tools operate on the knowledge graph stored inside each agent's .avdb file. See Core Features — Knowledge Graphs for background.

ToolDescription
graph_entity_searchFind graph entities by name, type, or property value.
graph_queryTraverse the graph with a pattern query. Returns matching nodes and the edges between them.
graph_linkCreate a typed relationship edge between two entities by ID.
graph_entity_add_customManually add a new entity node with arbitrary properties and an optional type label.
graph_statsReturn aggregate counts of nodes, edges, and unique relationship types in the graph.

Security

The security tools interact with the audit log and perform compliance-related scans. See Security & Compliance for full documentation.

ToolDescription
security_auditQuery the audit log with filters for time range, agent, operation name, and status. Returns matching JSONL records.
failure_summaryAggregate failed operations by type and agent over a configurable time window. Useful for identifying recurring error patterns.
security_scanScan stored content (memory, context, or RAG index) for secrets and PII. Reports matches with severity and location. Does not modify data.

Testing

The testing tools validate agent memory behavior against known-good baselines and measure retrieval quality. See Enterprise Features — Agent Testing for detailed documentation.

ToolDescription
agent_testRun a YAML-defined test suite against the agent's memory. Returns a structured pass/fail report with per-case details.
agent_baselineCapture a baseline snapshot of the agent's current retrieval performance across a standard query set.
agent_baselinesList all saved baselines for an agent with timestamps and summary metrics.
agent_benchmarkRun a full performance benchmark measuring query latency, recall@k, and throughput.
agent_regression_checkCompare current retrieval performance against a saved baseline. Reports precision, recall, F1 delta, and overall regression score.

Enterprise

The enterprise tools cover compute governance, health monitoring, and cross-agent insight discovery. See Enterprise Features for full documentation.

ToolDescription
discover_insightsRun the Divergent Reasoning Engine (DRE) to generate cross-agent insights from divergent knowledge pairs. Returns insights with full provenance.
repair_searchDetect and recover from geometric retrieval failures. Classifies the failure type and applies the appropriate repair strategy.
set_budgetAssign an energy budget to a specific agent for a given time window.
allocate_budgetsDistribute a total energy pool across multiple agents according to weights or reliability-based rules.
get_spendReturn current energy spend, remaining budget, and denial count for an agent or the full fleet.
agent_healthReturn all six EMA health metrics for a single agent, with threshold status and intervention suggestions.
fleet_healthReturn a summary health report for all active agents, sortable by any metric.

Utility

General-purpose tools for project setup, diagnostics, analytics, and miscellaneous operations.

ToolDescription
project_initInitialize a phorvec project in the current directory: creates config.toml, sets up the data directory, and optionally indexes an initial file set.
analyticsReturn usage analytics for an agent: operation counts, retrieval frequency, memory growth over time.
metricsReturn low-level system metrics: handle pool occupancy, index size, cache hit rate, query latency percentiles.
query_explainShow how a query will be executed: which indexes will be used, estimated result count, and the fusion plan.
query_profileExecute a query with detailed timing instrumentation and return a profiling report.
cache_clearFlush the in-memory query and embedding cache for an agent or globally.
storage_verifyVerify the integrity of an agent's .avdb file. Reports any detected corruption without modifying data.
storage_repairAttempt to repair a corrupted .avdb file by rebuilding affected index segments.
skill_storeSave a named skill (procedure, prompt template, or task strategy) to the agent's skill library.
skill_searchSearch the skill library by semantic query to find relevant skills even without knowing the exact name.
conflict_checkScan a scope (team pool, memory block, or full store) for multi-agent decision conflicts. Returns conflicts with severity classifications.
conflict_dismissMark a detected conflict as reviewed and suppressed. Recorded in the audit log.
retention_statusReturn the current retention zone and policy settings for a specific memory item or agent. Allows setting per-item anchor flags.
retention_sweepProcess the purge queue, permanently deleting items that have passed their grace period. Respects anchor exemptions.

Skill Library

The skill library stores reusable procedures, prompt templates, and task strategies as named, searchable artifacts.

ToolTierDescription
skill_searchCommunityVector-search the local and synced library by query — finds skills even when you don't know the exact name.
skill_getCommunityRead a skill by name.
skill_listCommunityEnumerate skills in a scope.
skill_storeCommunitySave a new skill to the local library.
skill_publishMCP ProPublish a tuned skill into the shared library so other agents can discover it.
skill_deprecateMCP ProMark a published skill as deprecated; consumers see a warning but it remains callable.
skill_library_syncMCP ProPush/pull local changes against the shared library.
skill_library_statusMCP ProReport sync state, pending changes, and last sync timestamp.
skill_ingestMCP ProBulk-import skills from a .vlbrain bundle.
skill_export_bundle / skill_import_bundleCommunityMove skill collections between machines as .vlbrain files.

Conflict Detection

ToolTierDescription
conflict_checkMCP MaxScan a team or project for contradictory decisions across agents. Uses regex-based negation detection plus semantic similarity — no LLM call. Returns conflicts with severity (low, medium, critical).
conflict_dismissMCP MaxMark a detected conflict as reviewed; recorded in the audit log and suppressed from future scans.