---
url: /modes/mcp/tools.md
---

# Tools

| Tool | Description |
| --- | --- |
| `whoami` | Active profile, API endpoint, notify email, and whether a GitHub PAT is configured |
| `get_settings` | Read-only settings: whether a GitHub PAT is stored, the AI provider and model, which providers have an API key, and the notification destinations |
| `update_settings` | Change settings, only when you ask and with the values you give: the GitHub PAT (`github_token`), `ai_provider`, `ai_model_id`, `ai_api_keys`, the `notify` destinations, the profile `name` and `automatically_open_fix_prs`. `null` clears a setting. Stored secrets are never returned. Needs a token with `settings:write` (log in again if yours is older) |
| `run_playbook` | Run a playbook on Satori (`playbook_path`, `playbook_yaml` or catalog `playbook_uri`) and optionally wait for the result |
| `run_local` | Run a playbook's commands on this machine, upload the results and return the execution |
| `scan_repository` | Start a scan of a GitHub repository (`owner/repo`, or `owner/*` for every repository of an owner) |
| `get_execution` | Status and assertion summary for an execution, with its `repository` and owning `organization` (no logs) |
| `get_execution_output` | Capped logs: without `test`, an index of tests; with `test`, the last lines of a stream |
| `get_execution_playbook` | The playbook YAML an execution ran (capped) |
| `update_execution_visibility` | Change an execution/report's visibility (`PUBLIC`, `PRIVATE`, `UNLISTED`, or `CONTRIBUTORS` for the GitHub contributors of its public repository); only when asked |
| `list_executions` | Past executions (reports), newest first: filter by `job_id`, `status`, `report_status`, `job_type`, `from_`/`to`, `q`, `visibility`, `severity`, `playbook`, `tags`; paginated, max 25 |
| `list_reports` | Alias of `list_executions` (in Satori, reports = executions) |
| `stop_execution` | Cancel a running execution (no-op if it is not running) |
| `delete_execution` | Permanently delete one execution/report (not while `RUNNING`) |
| `delete_executions` | Bulk-delete executions by id (max 100; `RUNNING` skipped) |
| `list_jobs` | Jobs, newest first (`type`: RUN, SCAN or MONITOR), to recover a `job_id` |
| `get_job` | A job and its 5 most recent executions |
| `stop_run` | Cancel a RUN job and its in-flight executions (soft-fails if already `CANCELED` or `FINISHED`); only when asked |
| `stop_all_runs` | Cancel every active RUN job among the newest 100 (scans and monitors untouched); only when asked |
| `delete_job` | Permanently delete a job (`CANCELED` or `FINISHED` only) |
| `list_scans` | Scan jobs (same as `list_jobs` with `type=SCAN`) |
| `stop_scan` | Cancel a scan job and its RUNNING executions; finished reports are kept |
| `pause_scan` | Pause a `RUNNING` scan (no new executions until `resume_scan`) |
| `resume_scan` | Resume a `PAUSED` scan |
| `clean_scan` | Delete a scan's non-RUNNING reports; does not delete the scan job |
| `list_monitors` | Monitor jobs with their schedule `expression` |
| `create_monitor` | Schedule a playbook (`playbook_path`, `playbook_yaml` or `playbook_uri`) with `expression` `rate(...)` or `cron(...)` (UTC), else the playbook's `settings.monitor`/`rate`/`cron`; only when asked |
| `clean_monitor` | Delete a monitor's non-RUNNING reports; does not delete the monitor job |
| `list_findings` | Findings, filtered by `execution_id`, severity (0-5 or names), `status`, `exploitability`, `source` (ASSERT or TOOL), `reported` (a report published to GitHub or not) and `public_repository` (`true` leaves out findings with no repository). Lists the active organization's findings, or only your own on a personal account. Each row carries its `repository` and `reported` |
| `get_finding` | Details of one finding plus its recent timeline |
| `get_finding_timeline` | Status changes and comments for a finding |
| `update_finding_status` | Triage a finding (OPEN, INVESTIGATING, TP, FIXED, FP, ACCEPTED), optionally with a comment |
| `update_finding` | Update status, severity (0–5 or null to clear) and/or assignee_id (null to clear); no comment |
| `list_finding_events` | Event feed for an execution's findings (no comments; use `get_finding_timeline` for those) |
| `add_finding_comment` | Comment on a finding without changing its status |
| `edit_finding_comment` | Edit one of your own comments (author-only) |
| `delete_finding_comment` | Soft-delete one of your own comments (author-only) |
| `get_finding_ai_analysis` | Latest AI analysis for a finding (PENDING, COMPLETED or FAILED); 404 if none yet |
| `analyze_finding` | Queue AI analysis for one finding (account AI key; only when asked); optional `wait` |
| `analyze_execution` | Queue AI analysis for an execution's findings in one call (max 20); optional `finding_ids` / `wait` |
| `get_finding_fix` | Latest fix written for a finding (PENDING, COMPLETED or FAILED), with its diff and its pull request; 404 if none yet |
| `generate_finding_fix` | Write a fix for the file a confirmed (`TP`) finding points at: the one its tool proved, else the account's AI provider (only when asked); optional `force` / `wait` |
| `open_finding_fix_pull_request` | Open a pull request on GitHub with the latest completed fix, through the Satori GitHub App (only when asked) |
| `list_advisories` | External issues and security advisories already created from findings, with their GitHub state and last comment (optional `finding_id` / `execution_id` / `reported` / `remote_state` / `last_word` / `order_by`) |
| `get_advisory` | Details of one advisory (description capped) with `advisory_url` |
| `update_advisory` | Edit a draft advisory's title and/or description (Markdown) before publishing; drafts only, only when asked |
| `create_security_advisory` | Create a local security-advisory draft from a finding (PRO; only when asked); does not contact GitHub |
| `publish_security_advisory` | Publish an existing draft to GitHub by `finding_id` (needs GitHub PAT; only when asked) |
| `publish_issue` | Report a finding through a public GitHub issue that only links to the report on Satori, by `finding_id` (needs GitHub PAT; only when asked) |
| `publish_report` | Report a finding as a security advisory or as a public issue, whichever its repository takes, by `finding_id` (needs GitHub PAT; only when asked) |
| `get_report_channel` | Whether a finding's repository takes a security advisory or a public issue, without publishing (needs GitHub PAT) |
| `get_advisory_status` | Live GitHub state of a published advisory or issue for an `advisory_id`; also stores it |
| `update_advisory_visibility` | Set advisory visibility (`PUBLIC` / `PRIVATE` / `UNLISTED`, or `CONTRIBUTORS` for the GitHub contributors of its public repository); only when asked |
| `delete_security_advisory` | Delete the security advisory for a finding (`finding_id`); only when asked |
| `list_playbooks` | Search the catalog of ready-made `satori://` playbooks |
| `get_playbook` | Details and YAML of a catalog playbook |
| `list_repos` | Repositories Satori can target, with their last execution |
| `list_saved_inputs` | Saved parameters (with values) and secrets (names only); `repository` for one repository's |
| `save_parameter` | Save a parameter added to every new job (`repository` scopes it); only when asked |
| `save_secret` | Save an encrypted secret added to every new job, read as `${{NAME}}` (not sent to `run_local`); only when asked |
| `delete_parameter` | Delete a saved parameter (`repository` selects the scope); only when asked |
| `delete_secret` | Delete a saved secret (`repository` selects the scope); only when asked |
| `list_organizations` | Organizations you belong to (id, name, plan, your role) and the active one |
| `get_organization` | Name, plan and your role in an organization |
| `use_organization` | Make every tool act on an organization (saved to the CLI config, like `satori-v2 organization ID use`) |
| `use_personal_account` | Act on your own account again instead of an organization |
| `create_organization` | Create an organization you own (your account must be ENTERPRISE); does not switch to it; only when asked |
| `rename_organization` | Rename an organization (OWNER or ADMIN); only when asked |
| `delete_organization` | Permanently delete an organization and its jobs, reports and findings (OWNER; `confirm_name` must match); only when asked |
| `list_organization_members` | An organization's members (user_id, name, email, role) |
| `add_organization_member` | Add a user by email or GitHub username as OWNER, ADMIN or MEMBER (OWNER or ADMIN; the user must have logged in before); only when asked |
| `update_organization_member_role` | Change a member's role (only an OWNER grants or revokes OWNER); only when asked |
| `remove_organization_member` | Remove a member, or leave with your own `user_id` (keeps at least one OWNER); only when asked |
| `recommend_playbook` | Inspect a repo and propose checks for `.satori-llm.yml` (no install); CI `.satori.yml` gets install + import |
| `create_ssh_session` | Start a remote sandbox container (optional cpu/memory/image/regions/`timeout`/`save_files`); waits until READY with a host by default |
| `get_ssh_session` | Status (`PREPARING`, `READY` or `FINISHED`), region, host and settings of an SSH session |
| `list_ssh_sessions` | SSH sessions, newest first (paginated) |
| `exec_in_session` | Run a shell command in a READY session; returns capped stdout/stderr/`return_code` (fresh shell each call) |
| `stop_ssh_session` | Stop a session and release its container (async; poll with `get_ssh_session` until `FINISHED`) |
| `ssh_into_execution` | Short-lived (5 min) SSH credentials for a **RUNNING** execution; MCP cannot host a TTY — give them to the user (`satori-v2 shell <id>`) |

All responses are size-capped. Prefer `get_execution_output` with a `test` filter (for example `cmd.0`) instead of requesting full logs. Tools that change shared state (`update_finding_status`, `update_finding`, `add_finding_comment`, `edit_finding_comment`, `delete_finding_comment`, `analyze_finding`, `analyze_execution`, `generate_finding_fix`, `open_finding_fix_pull_request`, `create_security_advisory`, `publish_security_advisory`, `publish_issue`, `update_advisory_visibility`, `delete_security_advisory`, `stop_scan`, `pause_scan`, `resume_scan`, `clean_scan`, `clean_monitor`, `delete_job`, `delete_execution`, `delete_executions`, `update_execution_visibility`, `stop_run`, `stop_all_runs`, `create_monitor`, `update_advisory`, `save_parameter`, `save_secret`, `delete_parameter`, `delete_secret`, and the organization tools that create, rename, delete or change members) are meant to be used only when you ask for them. Always call `stop_ssh_session` when a sandbox is no longer needed.

### AI analysis notes

`analyze_finding` and `analyze_execution` queue analysis on Satori using the **account's configured AI provider and API key** (set in the dashboard Settings); they incur provider cost. With `wait` (default true), the tool polls until each queued row is `COMPLETED` or `FAILED`, or until `wait_seconds` (max 600). Read an existing row with `get_finding_ai_analysis`. `suggested_status` is **advisory only** — the agent must not call `update_finding_status` unless you asked to triage. A `409` usually means no provider or API key is configured.

### Security advisory notes

`create_security_advisory` builds a **local draft** from a finding (title/description/severity derived server-side; completed AI analysis may enrich the text). It requires a PRO or ENTERPRISE plan and does **not** call GitHub. Creating a draft can promote a `PRIVATE` execution to `UNLISTED`. If a draft already exists for that finding, the existing row is returned. `publish_security_advisory` submits that draft to GitHub using the account's GitHub PAT from Settings (`finding_id`, not advisory id). Publishing, as an advisory or as an issue, makes a `PRIVATE` or `UNLISTED` report `CONTRIBUTORS` when GitHub lists the repository's contributors. `publish_issue` is for repositories without private vulnerability reporting: it opens a **public** GitHub issue that only says there is a security problem and links to the report on Satori, creating the draft when there is none. Its execution becomes `CONTRIBUTORS` too, and a `PRIVATE` report becomes `UNLISTED` when GitHub does not list the contributors. A finding is published once, as an advisory or as an issue. `publish_report` chooses between the two: it asks GitHub whether the repository accepts private vulnerability reports and sends the advisory if it does, or opens the public issue if it does not (`kind` in the result says which). An advisory draft that lacks its severity or CVSS vector fails and is not sent as an issue. `get_report_channel` answers the same question without publishing. `list_findings` with `exploitability=EXPLOITABLE`, `reported=false` and `public_repository=true` lists the findings left to report. `get_advisory_status` is a live remote lookup that also stores the state and the last comment. `list_advisories` and `get_advisory` return that stored data (`remote_state`, `reported_at`, `last_comment_at`, `last_comment_by`, `last_word`), which is refreshed when the dashboard's issues page is opened; `reported=true` with `last_word=OTHER` lists the reports where someone else commented last. `delete_security_advisory` removes the local row by `finding_id` and best-effort closes the GitHub advisory (may return a `warning`).

### `run_playbook` notes

Provide exactly one of `playbook_path` (local `.yml` / `.yaml` file), `playbook_yaml` (inline YAML) or `playbook_uri` (a catalog playbook such as `satori://code/python/pyspector_v2.yml`, see `list_playbooks`). Optional `repository` is an `owner/repo` from `list_repos`. With `wait` (default true), the tool polls until the job finishes or `wait_seconds` elapses (max 600); then call `get_execution` with the returned `execution_id`.

The options of `satori-v2 run` are arguments too:

| Argument | What it does |
|---|---|
| `parameter_files` | `NAME` to a local file path. Each non-empty line is one more value of that parameter, like `--data-file`. `parameters` already takes a list of values per name, so there is no `--split`. |
| `cpu`, `memory`, `environment_variables` | Container resources and environment variables. They need a PRO or ENTERPRISE plan. `memory` is in MiB and must be a valid pair with `cpu`. |
| `image` | The container image (default `ubuntu:noble`), on any plan. |
| `tags` | `key` to `value` words, to find the run later with `list_executions` and `tags: ["key:value"]`. |
| `timeout` | The execution's limit in seconds. Defaults to the playbook's `settings.timeout`. |
| `expire` | Deletes the report after `N hours`, `N days` or `N weeks`. |
| `notify` | Rules that replace the playbook's `settings.notify`. Each has `to` (`slack://WORKSPACE:CHANNEL`, `email://user@example.com`, `discord://CHANNEL` or `telegram://CHAT_ID`) and optionally `result` (`pass` or `fail`), `severity` (a list of `info` to `blocker`) and `watch` (`finish`, the default, and/or `issue-status`). |
| `visibility` | `PUBLIC`, `PRIVATE` (default) or `UNLISTED`. |
| `count` | How many times to run the playbook. More than 1 needs an ENTERPRISE plan; the result lists `execution_ids` and waits on the first. |
| `delete_report`, `delete_output` | Drop the report or the output when the run ends, so `get_execution` or `get_execution_output` have nothing to show for it. |

### `scan_repository` notes

`scan_repository` takes the same container arguments as `run_playbook`: `cpu`, `memory` and `environment_variables` need a PRO or ENTERPRISE plan, and `image` works on any plan. `visibility` is `PUBLIC`, `PRIVATE` (default) or `UNLISTED`.

### `create_monitor` notes

`create_monitor` takes the container arguments of `run_playbook` (`cpu`, `memory` and `environment_variables` need a PRO or ENTERPRISE plan; `image` works on any plan), `tags` for every report of the monitor, and `timeout`, each execution's limit in seconds, which defaults to the playbook's `settings.timeout`.

### `run_local` notes

`run_local` executes the playbook's commands on the machine running the MCP server, with your user's privileges, and uploads the results to Satori, so the agent should only run playbooks you asked for or that it wrote for you. The working directory is `directory` (an existing local directory), or `repository` (`owner/repo`, shallow-cloned to a temporary directory), defaulting to the server's working directory. Without `repository`, the run is linked to the GitHub repository of that directory's git `origin` remote, if it has one, so it gets the repository's saved parameters. `run` limits execution to test paths with those prefixes, and `timeout_seconds` (default 300, max 3600) cancels the run when it elapses. It returns the same shape as `run_playbook`; read logs with `get_execution_output` and findings with `list_findings`. `tags` (key to value words) and `visibility` (`PUBLIC`, `PRIVATE` by default, or `UNLISTED`) work as in `run_playbook`.

### `recommend_playbook` notes

Pass `directory` (default: the server's working directory). Supported stacks: Python, JS/TS, Go, Java, C#, Rust, Ruby, PHP, Swift, C/C++ (CMake), Solidity (Foundry) and Dart/Flutter. Quality checks go in **`.satori-llm.yml`** (no `install:`); **`.satori.yml`** is reserved for CI/manual runs — put `install` there and import the LLM file. Recommended playbooks set `settings.name` from the project (manifest `name` or folder basename) so executions are identifiable — `{name} quality` on the LLM file, `{name}` on CI; the name is omitted when nothing useful is found:

```yaml
settings:
  name: my-app
install:
  - corepack pnpm install --frozen-lockfile
import:
  - file://.satori-llm.yml
```

A new repo gets `playbook_yaml` (write to `.satori-llm.yml`) plus `ci_playbook_yaml` (install + importer for `.satori.yml`) and a `checks` list explaining each check. If `.satori-llm.yml` already exists, you get `changes` (missing or different checks with `suggested_yaml`; `move_install_to_ci` if the LLM file still has a top-level `install`) to merge by hand. If only a hand-written CI `.satori.yml` exists, you still get a full LLM playbook plus `needs_ci_import` / `ci_import_yaml` (import only) and optionally `ci_install_missing` — add the import without overwriting CI checks, and merge install carefully. A legacy `.satori.yml` that already has `# satori:recommended` is treated as migrate-from-CI: merge into `.satori-llm.yml` (checks only) and leave CI as the importer with install.

Checks for tools the repo already configures are blocking (`assertReturnCode: 0`); the rest are informational.

Only what the repo cannot settle comes back in `questions` (for example formatter, dead-code detection). Ask the user, then call again with `prefs`, e.g. `{"formatter": "black", "dead_code": false}`. Answers are stored in the first line of `.satori-llm.yml`, `# satori:recommended v2 python/uv prefs: formatter=black`, so later updates only ask about checks added since.

Suggested loop: write `.satori-llm.yml` (and the CI file if needed) with the user's approval, `run_local` with `playbook_path=.satori-llm.yml` once as a baseline before editing code. If a check fails because a tool or deps are missing, install on the host and re-run — do not add `install:` to `.satori-llm.yml`. After each change fix only the failures that were not in the baseline. Prefer `.satori-llm.yml` over a heavy CI `.satori.yml` for that baseline.

The flow looks like this — an AI that only writes unit tests can miss type and security gaps outside the tested area; `recommend_playbook` builds a multi-lane playbook and closes the loop:

![AI asked for unit tests vs. AI powered by Satori](/playbook_generator.svg)

### Remote sandbox (SSH) notes

Agents can open a short-lived remote container, run commands in it, then tear it down. Typical loop:

1. `create_ssh_session` (default `wait` true) — optional `cpu`, `memory`, `storage`, `image`, `os`, `environment_variables`, `regions`, `timeout` (session lifetime in seconds), `save_files`.
2. If the result is still starting (no `host` yet), call `get_ssh_session` until `status` is `READY` and `host` is set. The API may mark a session `READY` briefly before the public host is known; create and `exec_in_session` wait for a host — do not treat a null `host` as runnable.
3. `exec_in_session` with `session_id` and `command` (`timeout` 1–3600 seconds, default 60). Each call is a fresh shell (filesystem persists; env/cwd do not). Output is capped.
4. Always `stop_ssh_session` when done. Stopping is asynchronous; confirm with `get_ssh_session` until `FINISHED`.

Use a sandbox to explore; prefer a playbook once the command line is settled. `run_playbook` is for repeatable cloud runs with asserts and findings; `run_local` runs on the machine hosting the MCP server. For an interactive human shell, see [Shell](/modes/shell).

`ssh_into_execution` is separate: only when the user asks to debug a **RUNNING** execution. It returns `host`, `username` and a password token (about 5 minutes); it does not run commands itself. Have the user connect with `satori-v2 shell <execution_id>`.

**Use cases**

* Try commands and install deps before writing them into a playbook
* Isolated dry-runs of security tools (`trivy`, `semgrep`, `nuclei`, `gitleaks`, and similar) without installing them on the laptop
* Safe triage of samples or CVE reproductions in a throwaway container
* Inspect a hung or failing **RUNNING** execution (`ssh_into_execution`, or CLI `satori-v2 shell EXECUTION-ID`)
* Keep changed files after the session with `save_files` when you need artifacts
