Skip to content

MCP tools

driga mcp serves read-only tools over stdio. Every response is the same schema-2 view envelope as the CLI’s --json output, and reading never acknowledges inbox items. Without a running collector the tools answer from a labelled one-shot snapshot with no history. Registration is covered in Connect an agent over MCP.

Every read tool shares this contract:

Use this to inspect collected state without changing it; safe to retry. Optional scope fields select machine (default all) and project where supported; for example {“limit”:100}. Returns a schema-2 envelope with data, UTC observed_at, source freshness and coverage gaps; mode: “snapshot” means no history. limit bounds total array entries, including nested collections (default 100, maximum 500). truncated=true means entries were omitted: narrow the scope or increase limit. Reading never acknowledges inbox items.

Served by driga mcp. All 14 are annotated read-only.

Read the last sixty minutes of machine samples and event counts.

InputTypeRequiredDescription
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestringMachine name, ID, device-ID prefix, local, or all (default all).

Read one session’s detail and recent evidence; use required id from list_agents, e.g. id=1.

InputTypeRequiredDescription
idintegeryesInternal session ID shown by driga agents. Minimum 1.
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestringMachine name, ID, device-ID prefix, local, or all.

Inspect one session family map: per-node stored mixer, events, inbox wait spans, observations, retention, gaps and machine-wide waiting attention. Optional id from list_agents selects its lead; omit for the newest live interactive session. Missing telemetry measurements are omitted; usage covers retained api_request events only.

InputTypeRequiredDescription
idintegerMinimum 1.
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestring
minutesintegerTime window: 15, 60 or 240 minutes; default 60.
projectstring

Read agents’ share of machine memory and CPU, cost by session, agent processes without a session, likely agent work, other apps, MCP server roll-ups and pile-ups. Defaults to bounded detail and 24h trends; full includes all retained evidence.

InputTypeRequiredDescription
fullboolean
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestring

Read agent counts, inbox counts, and machine health.

InputTypeRequiredDescription
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestringMachine name, ID, device-ID prefix, local, or all (default all).

Read a project’s sourced status, worktrees, and handoffs; required project is a name or path, e.g. project=api.

InputTypeRequiredDescription
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
projectstringyesProject name or path. Must not be empty.

Read setup and collection diagnostics.

InputTypeRequiredDescription
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.

Read agent sessions and their families.

InputTypeRequiredDescription
allbooleanInclude sessions ended in the last 24 hours.
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestringMachine name, ID, device-ID prefix, local, or all.
projectstringProject name, path, or dot for the local working directory.

Inspect local disk cleanup candidates read-only. Optional kind is worktree, scratch, or history (omit for all); sizes=true opts into bounded directory sizing. This tool never removes anything.

InputTypeRequiredDescription
kindstringOne of worktree, scratch, history.
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
sizesboolean

Read current and recent file overlaps.

InputTypeRequiredDescription
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestringMachine name, ID, device-ID prefix, local, or all.
projectstringProject name, path, or dot for the local working directory.

Read attention and completion events.

InputTypeRequiredDescription
allbooleanInclude acknowledged events.
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestringMachine name, ID, device-ID prefix, local, or all.
projectstringProject name, path, or dot for the local working directory.
sincestringNon-negative duration or yesterday.

Read cached fleet connection health, even when collection has stopped.

InputTypeRequiredDescription
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.

Read orphan process candidates without signaling processes.

InputTypeRequiredDescription
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestringMachine name, ID, device-ID prefix, local, or all (default all).

Read project activity and risk flags.

InputTypeRequiredDescription
activebooleanOnly active projects.
at_riskbooleanOnly projects with risk flags.
limitintegerMaximum total array entries, including nested collections; 1–500, default 100.
machinestringMachine name, ID, device-ID prefix, local, or all.

Offered only to Driga’s own Chat turn through a private MCP child, never by driga mcp. Action tools run through Chat’s approval cards and trust modes; see Chat and actions.

Acknowledge a local inbox id or all local items.

InputTypeRequiredDescription
allboolean
idstring

Answer one pending local Claude permission prompt. Always asks in Auto.

InputTypeRequiredDescription
allowbooleanyes
idstringyes

Request driga permission for a tool. Cannot decide cards or change trust mode.

InputTypeRequiredDescription
inputobjectyes
tool_namestringyes
tool_use_idstringyes

Clean one local candidate after re-verification.

InputTypeRequiredDescription
idstring

Jump to a local session terminal. Never types into the terminal.

InputTypeRequiredDescription
session_idinteger

Kill a local agent session or orphan id after identity and idle verification. Force also escalates survivors.

InputTypeRequiredDescription
forceboolean
idstring
session_idinteger

Read pending local Claude permission prompts. Inputs are visible only under snippets capture.

No inputs.

Refresh one local project summary.

InputTypeRequiredDescription
projectstring