Skip to main content
Contexity exposes tools through MCP (Model Context Protocol) so agent hosts can retrieve and write context without direct access to the local store. These tools are called automatically by hosts like Codex and Claude Code — you do not call them manually during normal work.

Core Run Tools

These tools manage the lifecycle of a single agent run: starting it, recording events during execution, and closing it out with metrics and checkpoint data.
ToolUse
context_start_runStart a host-visible task run
context_get_run_policyRead current host contract and policy
context_record_run_eventAppend replayable run events
context_close_runClose a run and write metrics/checkpoint data
context_get_run_reportRead local run report and metrics

Project Context Tools

These tools give the agent access to project context: attaching a project, bootstrapping a fresh session, retrieving a bounded context pack, and recording or invalidating facts.
ToolUse
context_attach_projectAttach an initialized project
context_bootstrap_sessionInitialize, attach, and fast-analyze frictionlessly
context_retrieve_packRetrieve bounded task-aware context
context_append_eventCapture project execution context
context_invalidate_factMark context stale, superseded, or invalidated

Project Intelligence Tools

These tools expose the project graph so the agent can reason about structure, search for relevant code surfaces, and map the impact of changes before and after edits.
ToolUse
context_analyze_projectRefresh project intelligence
context_get_project_graph_summaryRead graph and project map summary
context_search_projectSearch project intelligence before broad grep
context_impactMap impact for known files or routes
context_detect_changesDetect changed files and impact after edits
context_route_mapList route surfaces
context_list_project_issuesList intelligence and freshness issues

External Context Tools

These tools let the agent capture and manage external references — Slack threads, issue links, documentation pages, or inspiration sources — and the signals extracted from them.
ToolUse
context_capture_external_referenceCapture Slack, issue, docs, repo, or inspiration sources plus extracted signals
context_list_external_contextList captured references and signals
context_invalidate_external_contextInvalidate an external reference or signal

Global Preference Tools

These tools manage global preferences that persist across all projects on the machine: reading verified preferences, storing explicit ones, removing outdated ones, and proposing uncertain candidates for later verification.
ToolUse
context_get_global_profileRead active verified global preferences
context_upsert_global_factStore explicit user-directed global preferences
context_delete_global_factForget/remove global facts
context_propose_global_factPropose uncertain candidates
context_list_global_candidatesInspect pending global candidates

Metrics Display Tools

These tools let the host read and update the metrics display policy, controlling whether post-run usage summaries are shown to you in the terminal.
ToolUse
context_get_metrics_displayRead metrics display policy
context_set_metrics_displayEnable or disable visible metrics
MCP tools are intended for hosts. During normal work, you should not need to call them manually.