Prism
v1.1.1Local-first repo intelligence for agents: DNA, health, blast radius, and Dispatch jobs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_my_day Start my day
Standup briefing for this repository: leftover Dispatch jobs, teammates that just finished (what changed or why they failed), local git, then any connected drivers (GitHub reviews, Linear or Jira tickets, Slack mentions plus tracked channels, Notion, Google Calendar). Unconnected tools appear as named connect CTAs. Does not index the repo. Call this when the user says start my day, standup, or what's waiting on me.
init Set up Dispatch workers
One-time Cursor sign-in so Prism can run local job workers. Opens the Cursor login page in the browser. Speak only the tool message to the user — never mention API keys, mcp.json, host role, or connector counts. If Cursor shows “Authenticating prism…” with Skip, that is host tool-approval: tell the user to click Skip, then retry init.
start_job Start a Dispatch job
Create a Dispatch job from a ticket or title plus a PRD. Starts a local Cursor teammate in its own worktree (host node_modules linked; no shell; no second Prism MCP) and returns immediately. Speak only the tool message: use the job title and canonical id (ticket like AI-971 or slug like audit-issues), never job-<hex>, worktree paths, or API keys. Tell the user to say where are we for live status and the result when it finishes. Default cap is one job at a time. Do not use this for a repo-wide audit or health scan — call repository_health instead. If sign-in is needed, a Cursor login page ope…
| Parameter | Type | Description |
|---|---|---|
title * | string | Ticket id and/or short job title |
branch | string | Preferred branch when creating a worktree |
confirmOverlap | boolean | Set true only after the user confirms a second agent on a shared dirty worktree |
jobId | string | Canonical job id; inferred from a ticket or title slug when omitted |
playbook | string | Job playbook id, default ticket |
prd | string | Product brief / acceptance criteria |
list_jobs List Dispatch jobs
Where are we: every Dispatch job with title, canonical id, live activity, and a result or error when a teammate finishes. Speak only the tool message — titles, what they are doing, and what changed, not worktree paths or job-<hex> ids. Call when the user asks where we are, what's running, how a job is going, or whether a teammate finished.
job_control Control a Dispatch job
Pause, resume, cancel, or add context to a running Dispatch job. Speak only the tool message, using the job title and canonical id. jobId may be a ticket, a slug like audit-issues, or the title.
| Parameter | Type | Description |
|---|---|---|
action * | string | pause, resume, cancel, or attach_context |
jobId * | string | Canonical job id (ticket or slug) or the job title |
context | string | Extra brief text for attach_context or resume |
remember Remember for next jobs
Save, list, or forget scoped memories that Dispatch injects into the next start_job prompt. Scope is job, repo, or user. Does not auto-save code-changing rules; those need confirm=true. Call when the user says remember this, forget that, or list memories.
| Parameter | Type | Description |
|---|---|---|
action | string | add (default), list, or forget |
confirm | boolean | Required when the text looks like a code-changing rule |
id | string | Memory id to forget |
jobId | string | Required when scope is job |
scope | string | Memory scope, default repo |
text | string | Memory text for add, or search text for forget |
integrations Connect Dispatch drivers
Catalogue what Dispatch can connect, start OAuth for GitHub (user), Linear, Jira, Slack (mentions + tracked channels), Notion, or Google Calendar, or disconnect a driver. No connector is on by default. Connect uses Prism Auth (auth.prismhq.in). Cursor shows a native Authenticate control and a short step list; Claude opens the auth page. Never ask the user to create an OAuth app or paste a client id. Aliases like “google calendar” map to google-calendar. Google’s “hasn’t verified this app” warning is expected until Prism Auth finishes Calendar scope verification — tell the user to…
| Parameter | Type | Description |
|---|---|---|
action | string | catalog/status, setup, start/connect, or disconnect |
driver | string | Driver to connect or disconnect. Canonical ids: github, linear, jira, slack, notion, google-calendar. Phrases like “google calendar” work. |
configure Configure Dispatch
Read or update gitignored Dispatch settings: section order, standup template, Slack tracked channel ids, mention window and caps, max parallel jobs (default 1), hint policy, and whether the tickets slot is Linear or Jira. action=export returns a non-secret template (no tokens) for sharing. Chat only — there is no settings UI in v1.
| Parameter | Type | Description |
|---|---|---|
action | string | get (default), set, or export |
hints | boolean | |
includeMemories | boolean | When exporting, include opted-in user memories |
maxJobs | integer | |
mentionLimit | integer | |
mentionWindowHours | integer | |
sectionsOff | array | |
slackTrackChannelIds | array | |
standupTemplate | string | |
ticketHost | string | |
trackedMessageLimit | integer |
dispatch_doctor Dispatch doctor
Check whether Dispatch can run local teammates. Speak only the tool message — never mention API keys, mcp.json, host role, or connector counts. If sign-in is missing, call init.
repository_dna Repository DNA
Identify what a repository *is*: detected languages, frameworks, package manager, architecture hints, test runners and ranked domains, each with the evidence behind it. Start here when you know nothing about a codebase. Local index only; no network.
repository_health Repository health
Score overall repository health from 0-100 with the per-factor breakdown behind the score. Includes graphCoveragePct (share of inventory files in the TS/JS dependency graph) and a 'TS/JS import coupling' factor. Use to judge whether a codebase is in good shape or to find which factor drags it down. For the deeper engineering view (hotspots, churn, ownership, debt) call engineering_health instead.
repository_map Repository map
Return the repository's structural map at a zoom level: nodes, edges and regions. Use to orient yourself or to find where a concern lives. Defaults to 'package' zoom (bounded). 'file' and 'symbol' can be very large on a big repository, so prefer the coarsest zoom that answers your question.
| Parameter | Type | Description |
|---|---|---|
layers | array | Optional overlay layer ids to include. |
zoom | string | Detail level. Defaults to 'package'. |
repository_overview Repository overview
The dashboard summary in one call: totals, coupling density and band, the largest regions with health scores, the most connected nodes (with map kind), and recent commit activity. Use when you want a single orienting snapshot rather than four separate calls. Region scores are null where there is no evidence — that means 'not measured', not 'zero'.
| Parameter | Type | Description |
|---|---|---|
activityDays | integer | Commit-activity window in days (default 7). |
zoom | string | Map zoom for graph-derived fields. Defaults to feature; echoed on the response. |
list_packages List packages
List the packages in a monorepo with their roots. Call this first in a monorepo so later tools can be scoped with packageId instead of returning the whole workspace.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
stack_profile Stack profile
Detected stack for the workspace or a single package: frameworks, runtimes, build tooling and the signals each was detected from. Use when you need to know what a package is built with before changing its configuration.
| Parameter | Type | Description |
|---|---|---|
packageId | string | Scope to one package. Omit for the whole workspace. |
landmarks Landmarks
Named entrypoints, package roots and feature anchors — the places a human would open first. Use to pick a starting file in an unfamiliar repository.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
explain_area Explain area
Explain what a module or folder does: domain overlap, dependency in/out degree and local ownership. Use before editing an unfamiliar directory. For a single file target prefer explore_code (richer usages/ownership/timeline). Deterministic — derived from the index and local git, never generated prose.
| Parameter | Type | Description |
|---|---|---|
path * | string | Workspace-relative path to a file or directory. |
workspace_status Workspace status
Compact workspace readiness: path, whether an index is loaded, indexedAt, freshness, git availability, whether a .prism/cache directory exists, and dependency-graph node/edge counts. Call this when a previous tool failed or to confirm the session is ready before a review.
capabilities Capabilities
List every Core analysis capability and consent-gated integration with availability and a reason when unavailable. Use this to tell 'not supported by this build' apart from 'not consented / not exposed via MCP' — never guess why a network or build feature is missing.
dependency_graph Dependency graph
The import/re-export dependency graph, at file level or aggregated to packages. Includes unresolvedImports { count, sample } for specs that did not resolve into the graph. Bounded by default (limit 50 nodes); use summaryOnly for counts + top-degree nodes. Prefer packageAggregation, or use blast_radius if your question is about one file rather than the whole graph.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
packageAggregation | boolean | Aggregate file nodes into package nodes. Much smaller output on a monorepo; prefer it unless you need file-level detail. |
resolveAliases | boolean | Resolve tsconfig paths and package imports (default true). |
summaryOnly | boolean | When true, return counts plus top-degree nodes only (no full edge list). Prefer this for orientation. |
dependency_cycles Dependency cycles
Import and re-export cycles, each returned as the list of files forming the loop. Use when investigating build order, flaky module initialisation, or before extracting a package.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
packageAggregation | boolean | Aggregate file nodes into package nodes. Much smaller output on a monorepo; prefer it unless you need file-level detail. |
knowledge_graph Knowledge graph
The symbol-level graph — declarations and the references between them — with summary stats. Requires path (scope to one file) or limit (bound nodes). Very large on a big repository. If you are looking for one symbol use find_symbol or search_symbols, and for its callers use find_references.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
path | string | Workspace-relative file to scope the graph to. |
feature_graph Feature graph
Inferred features and how they depend on each other. Features are heuristic groupings of files, not a declared structure, so treat them as a starting point rather than ground truth. Bounded by default (limit 50 nodes); use summaryOnly for counts + top-degree nodes.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
summaryOnly | boolean | When true, return counts plus top-degree nodes only (no full edge list). Prefer this for orientation. |
list_features List features
Inferred features with their member files and a confidence score. Cheaper than feature_graph when you only need the list. Low confidence means the grouping is a guess.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
find_symbol Find symbol
Find indexed symbols by exact name, optionally narrowed by file or kind. Use to locate a definition before asking about its impact. For substring or regex search use search_symbols.
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact symbol name to search for. |
kind | string | Symbol kind filter, e.g. 'function', 'class'. |
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
path | string | Workspace-relative file to restrict the search to. |
search_symbols Search symbols
Substring or regex search over indexed symbol names (unlike find_symbol, which is exact-match only). Optional kind/path filters. Hard-capped at 50 hits.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Substring to match (case-insensitive), or RegExp source when regex is true. |
kind | string | Symbol kind filter, e.g. 'function', 'class'. |
limit | integer | Maximum hits to return (default 50, hard max 50). |
path | string | Workspace-relative file to restrict the search to. |
regex | boolean | Treat pattern as a JavaScript RegExp source. Default false (substring). |
find_references Find references
Find resolved references to a symbol — who actually calls or imports it. Pass path (and start when several symbols share a name) to disambiguate. Use before renaming or deleting anything.
| Parameter | Type | Description |
|---|---|---|
name * | string | Symbol name. |
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
path | string | Workspace-relative file declaring the symbol. |
start | integer | Declaration start offset, to disambiguate further. |
dependency_route Dependency route
Show how one file or symbol reaches another through the dependency graph, with alternative paths. Use to answer 'how is this connected to that?' — an empty result means no path exists, which is itself an answer.
| Parameter | Type | Description |
|---|---|---|
from * | object | Starting point. |
to * | object | Destination. |
maxAlternatives | integer | How many distinct routes to return. |
maxHops | integer | Maximum route length. |
blast_radius Blast radius
What depends on a file or symbol, and how risky changing it is: direct and transitive dependents, confidence lanes, evidence and a risk band. Results are import/soft-lane based — coverageLimitations lists classes it cannot see (DI containers, string-keyed registries, event buses, template/i18n refs, runtime-loaded config, generated-code consumers). Call this before editing or deleting code you did not write. Use intent 'delete' when removing rather than modifying. affectedFiles and testsLikelyAffected are bounded (default 50).
| Parameter | Type | Description |
|---|---|---|
id * | string | Workspace-relative file path, or symbol name as returned by find_symbol. |
kind * | string | Whether `id` names a file or a symbol. |
intent | string | Emphasis. 'delete' weighs orphaned code more heavily. Default 'edit'. |
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
path | string | File declaring the symbol, when kind is 'symbol'. |
safe_delete Safe delete
Whether a file or symbol can be deleted safely: blockers that still depend on it, and files that would be orphaned if it went. A report only — Prism never deletes anything. Prefer this over blast_radius when the question is specifically about removal.
| Parameter | Type | Description |
|---|---|---|
id * | string | Workspace-relative file path, or symbol name as returned by find_symbol. |
kind * | string | Whether `id` names a file or a symbol. |
path | string | File declaring the symbol, when kind is 'symbol'. |
rename_impact Rename impact
Every edit site a rename would touch, plus breaking-change hints for public surface. Use before renaming an exported symbol or moving a file. A report only — Prism never edits.
| Parameter | Type | Description |
|---|---|---|
id * | string | Workspace-relative file path, or symbol name as returned by find_symbol. |
kind * | string | Whether `id` names a file or a symbol. |
newName | string | Proposed new name, to sharpen the hints. |
path | string | File declaring the symbol, when kind is 'symbol'. |
test_impact Test impact
Which test files transitively cover a change target — the tests worth running after touching it. Prism reports which tests are relevant; it does not run them. The tests list is bounded (default 50).
| Parameter | Type | Description |
|---|---|---|
id * | string | Workspace-relative file path, or symbol name as returned by find_symbol. |
kind * | string | Whether `id` names a file or a symbol. |
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
path | string | File declaring the symbol, when kind is 'symbol'. |
breaking_change_hints Breaking change hints
Deprecated: breaking-change hints are included in blast_radius (and review_changes). Prefer those tools. Heuristic hints about what a change to this target could break for consumers — exported surface, widely imported modules, public entrypoints. Heuristic by design: treat as prompts to check, not as findings.
| Parameter | Type | Description |
|---|---|---|
id * | string | Workspace-relative file path, or symbol name as returned by find_symbol. |
kind * | string | Whether `id` names a file or a symbol. |
path | string | File declaring the symbol, when kind is 'symbol'. |
changed_paths Changed paths
List workspace-relative paths changed in the working tree, or against an optional git base ref. Use before review_changes when you need the path list alone, or let review_changes auto-discover by omitting paths. Fails when git is unavailable — that is not the same as an empty change set.
| Parameter | Type | Description |
|---|---|---|
base | string | Optional git base ref (e.g. origin/main). Omit for the working tree (staged, unstaged, and untracked). |
review_changes Review changes
Review changed paths in one call: blast radius, test impact and breaking-change hints per path, rolled up with an overall risk band. Omit paths to auto-discover via git (same as changed_paths); pass base to compare against a ref. Use for 'review my branch' rather than calling the per-file tools repeatedly.
| Parameter | Type | Description |
|---|---|---|
base | string | Git base ref for auto-discover, or a display label when paths are provided explicitly. |
paths | array | Workspace-relative paths that changed. Omit to auto-discover from git (working tree, or base when set). |
engineering_health Engineering health
The deep engineering view: hotspots, churn, complexity, ownership concentration, knowledge decay and debt indicators in one report. Use when asked to find what needs attention. Git-derived sections fail soft on repositories without history. For the single headline number use repository_health.
health_history Health history
Health score over time from stored index snapshots and optional git backfill. Use to answer 'is this getting better or worse?'. Points carry provenance: backfilled points are estimated from history, not measured at the time, and say so.
| Parameter | Type | Description |
|---|---|---|
maxPoints | integer | Maximum history points to return, most recent first. |
explore_code Explore code
Everything about one file or symbol in a single call: usages, ownership, related and similar code, and a change timeline. Usages are bounded (default 50) via a nested envelope so large files do not drown the response. Use when asked to understand a specific thing rather than the repository as a whole.
| Parameter | Type | Description |
|---|---|---|
kind * | string | What the target is. |
limit | integer | Maximum items to return (default 50, max 500). The response reports totalCount and truncated so you can tell whether you saw everything. |
name | string | Symbol name. Required when kind is 'symbol'. |
path | string | Workspace-relative path. Required when kind is 'file'. |
start | integer | Declaration start offset, to disambiguate a symbol. |
backend_report Backend report
Route-granular backend intelligence: HTTP endpoints, auth posture, data layer, environment variables and background jobs. Use when the question is specifically about the server side. Static heuristics over Express, Nest and Fastify — nothing is executed.
| Parameter | Type | Description |
|---|---|---|
packageId | string | Scope to one package in a monorepo. Omit for the whole workspace. |
testing_report Testing report
Test structure and, when coverage artifacts are already on disk, coverage. Use to judge how well tested an area is. Prism reads existing artifacts; it never runs your tests.
security_report Security report
Left-shift security posture: which tooling is configured, which fundamental checks are present or missing. A checklist against local configuration, not a vulnerability scan — it will not find CVEs and does not claim to.