---
canonical_url: "https://docs.composio.dev/toolkits/roboflow_mcp"
markdown_url: "https://docs.composio.dev/toolkits/roboflow_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Roboflow MCP

Manage Roboflow computer-vision projects, datasets, images, annotation, model training, deployment, inference, workflows and devices through Roboflow's hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 358
- **Triggers:** 0
- **Slug:** `ROBOFLOW_MCP`
- **Version:** 00000000_00

## Tools

### Agent chat

**Slug:** `ROBOFLOW_MCP_AGENT_CHAT`

Ask the Roboflow in-app agent to build or edit a Workflow, or answer a Roboflow question.

Use this for ALL natural-language Workflow creation and edits, including
simple goals such as "detect cups". The agent uses Roboflow's shared block
knowledge, build/edit tools and validator before saving. Send the user's
goal, explicit model choices and existing Workflow ID when editing.
For camera previews, request class filtering and a named annotated image
output. Do not compose the Workflow JSON yourself or fall back to raw
workflows_create/workflows_update after an agent error.

The agent may ask clarifying questions. Relay them and continue with the
returned conversation_id. mode="plan" only plans; mode="agent" builds.

A long turn returns status="running" and run_id. Poll agent_chat_result
until terminal; never resend the message to start a duplicate build.
Find past chats with agent_conversations_list/agent_conversation_get.
If the client times out before receiving a run_id, the build may still
finish. Recover it from those conversation tools before retrying.
In hosts with on-demand tool loading, load a referenced tool before
calling it, including agent_chat_result and streams_preview_status.

On completion, text is the reply; workflows contains each created/edited
Workflow's id, name, url (slug), app_url and exact validated specification.
Use app_url for UI links. If workflows is empty, follow the reply instead
of claiming a build succeeded. The agent does not run inference.

New Workflows are saved and runnable. Edits are saved as drafts. For a
live camera, pass the returned id and unchanged specification to
streams_preview, with the declared image output and required parameters;
read current session status after building. This tests the draft without
publishing it. For authorized static draft tests use workflow_specs_run.
workflows_run executes the published version by slug; publish an edit
with agent_workflow_publish only when the user authorizes publication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | No | Use 'plan' to plan a CV solution end-to-end before building (uses a stronger planning model). Use 'agent' (default) for Roboflow Q&A and Workflow construction or edits. |
| `message` | string | Yes | Message for the agent (a Roboflow question, a natural-language request to build or edit a Workflow, or a request to plan a CV solution). |
| `conversation_id` | string | No | Conversation ID to continue a previous agent chat. Omit to start a new conversation. |

### Agent chat result

**Slug:** `ROBOFLOW_MCP_AGENT_CHAT_RESULT`

Collect the result of an agent_chat run that was still working.

Waits briefly for the run to finish, then returns either the
completed chat response (same shape as ``agent_chat``) or
``{"status": "running", "run_id": ...}``. Keep calling with the
same ``run_id`` until the status is no longer ``running``. The
run keeps executing server-side between calls; polling never
restarts or duplicates it.

A ``"severed"`` status means the connection to the run was cut
mid-flight; the run usually still finishes server-side, so read
the reply from the conversation (``agent_conversation_get``)
instead of re-sending the message.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID returned by agent_chat when the agent was still working. |

### Agent conversations list

**Slug:** `ROBOFLOW_MCP_AGENT_CONVERSATIONS_LIST`

List Roboflow agent conversations in the workspace.

Returns conversation metadata (id, name, source, timestamps,
linked workflow ids). Use ``agent_conversation_get`` to load
the full message history for a single conversation, or pass
the conversation id back to ``agent_chat`` to resume it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source` | string | No | Filter by origin: 'api' for conversations started via the MCP/API, 'web' for the Roboflow UI. Omit for all. |
| `workflow_url` | string | No | Filter to conversations linked to this workflow URL slug. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Agent conversation get

**Slug:** `ROBOFLOW_MCP_AGENT_CONVERSATION_GET`

Get a single agent conversation with its message history.

Returns the conversation metadata and the ordered list of the most
recent ``message_limit`` messages (role + text parts), plus
``total_messages`` with the full history size. Pass the same
``conversation_id`` back to ``agent_chat`` to continue the
conversation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `message_limit` | integer | No | Maximum number of messages to return, counted from the most recent. |
| `conversation_id` | string | Yes | Conversation ID returned by agent_chat or agent_conversations_list. |

### Agent workflow publish

**Slug:** `ROBOFLOW_MCP_AGENT_WORKFLOW_PUBLISH`

Publish the latest agent-edited draft of a workflow.

The agent never publishes its edits to an existing workflow; it
saves them as a draft. This tool promotes the
latest draft to a published version so it goes live for
callers using the workflow by id (``workflows_run``).
Production device pins can still be staged for approval. Check
``devices_get_config.configProposal`` before claiming those devices
use the new version. MCP cannot approve a proposal.

Errors with 400 if there is no draft to publish (i.e. the
published version already matches the latest draft).

Returns ``{ workflowId, workflowUrl, versionId, status }``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_url` | string | Yes | URL slug of the workflow to publish (the 'url' field returned by agent_chat). |

### Annotations get

**Slug:** `ROBOFLOW_MCP_ANNOTATIONS_GET`

Read current saved annotation geometry for existing project images.

Returns the native annotation envelope (boxes, polygons, masks or keypoints,
plus image dimensions), annotation group and revision, project classes and explicit
null-label state. Geometry is returned to the assistant, not only a widget.
Supports object detection, instance/semantic segmentation and keypoint
image projects; classification labels and video segments are not geometry
results from this tool.
annotation_valid=false means stored data could not be decoded: do not use
the empty fallback as a backup or overwrite from it. A null validity means
the platform did not report validity, so an empty result alone does not
establish that the image has no saved annotation.
This reads current project data, including images in annotation jobs and
batches; it does not generate a Dataset Version, run inference or change
annotations, job status or Dataset membership.

Get image IDs with images_search or annotation_jobs_images_list, then read
them in batches of at most 25. Use this before correcting labels or when
backing up current geometry; search annotation summaries are not coordinates.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image_ids` | array | Yes | Existing image IDs to read, from 1 to 25 per call. For one image, pass a one-item list. |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotations save

**Slug:** `ROBOFLOW_MCP_ANNOTATIONS_SAVE`

Save an annotation for an existing image.

The native annotation envelope returned by annotations_get is a read
representation, not necessarily an accepted annotation file. Convert the
geometry to a supported format for the project's task; do not submit a
serialized native boxes envelope as arbitrary JSON. For object detection,
a YOLO TXT file has one row per box: class index, normalized center x,
center y, width and height. Use a .txt annotation_name and provide labelmap
mapping those indices to project class names.

By default this only stores the annotation: it does not change whether the
image belongs to the project Dataset. Pass add_to_dataset=true to also add
the image to the Dataset. That membership is what makes the image count
toward a dataset version, so an image that is uploaded and annotated but
never added to the Dataset will show up as 0 images in versions_generate.
With job_name, saving normally moves the image from its batch or current
job to the named job, even if add_to_dataset=false. For an image held by
upload screening, the save and placement are deferred until the verdict.
When adding to the Dataset
without a name, an image outside a job moves from its batch into
"Annotated via API"; an image already in a job stays there. Saving
without Dataset addition or a job name preserves placement.

Saving labels alone also preserves an existing annotation job's image
status. After verifying the saved geometry with annotations_get, use
annotation_jobs_review_image with status="annotated" when the user wants
that image marked labeled in its job. This is separate from accepting
images into the Dataset.

Set prediction_routing to ``review`` to request an automatic move from the
target-project batch into a Review job only when the image has
target-project batch membership and no target-project annotation-job
membership. Set it to ``unassigned`` to suppress that move and preserve
existing batch, annotation-job, and Dataset memberships. Prediction
uploads never add Dataset membership, even when add_to_dataset is true,
and existing Dataset membership is preserved. Neither value guarantees
movement to a named queue.

Saving onto an image that already has annotations fails with a 409
conflict unless you pass overwrite=true, which replaces the existing
annotation. Classification projects never hit that conflict: their
saves already overwrite.

If the response has status="screening", the annotation was accepted for
an image held by upload screening, but has not been saved to a Source.
Even with add_to_dataset=true, Dataset membership is not yet complete.
Use images_screening_status(image_id) for the verdict and duplicate
resolution. A rejected or failed image loses its deferred annotations;
even after approval, check the resulting Source before reporting a save.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image_id` | string | Yes | ID of the image to annotate |
| `job_name` | string | No | Move the image into this annotation job, creating it if needed. Cannot be combined with prediction_routing. |
| `labelmap` | string | No | Label map for Darknet/TXT annotations, e.g. {'0': 'cat', '1': 'dog'} |
| `overwrite` | boolean | No | Replace the existing annotation on this image instead of failing. Saving onto an image that already has annotations returns a 409 conflict unless this is true. Classification projects are exempt: their saves always overwrite, so the conflict cannot happen there. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `add_to_dataset` | boolean | No | Also add the image to the project Dataset for training. Prediction uploads never add Dataset membership, but preserve existing Dataset membership. |
| `annotation_name` | string | Yes | Annotation filename with the extension matching its format, e.g. 'image1.txt' for YOLO TXT. |
| `annotation_content` | string | Yes | Contents of a supported annotation file for this image, not arbitrary JSON. Convert native annotations_get geometry to a supported import format before saving. |
| `prediction_routing` | string | No | Treat the upload as a prediction. 'review' requests an automatic move from the target-project batch into a Review job only when the image has target-project batch membership and no target-project annotation-job membership. 'unassigned' suppresses that move and preserves existing batch, annotation-job, and Dataset memberships. Prediction uploads never add Dataset membership, and existing Dataset membership is preserved. Neither value guarantees movement to a named queue. |

### Annotation batches admin get

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BATCHES_ADMIN_GET`

Get details about one annotation-board batch.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `batch_id` | string | Yes | Batch ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation batches admin images list

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BATCHES_ADMIN_IMAGES_LIST`

List image IDs in a batch with cursor pagination.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | string | No | Continuation token from the previous page |
| `limit` | integer | No | Maximum image IDs to return, from 1 to 200 |
| `batch_id` | string | Yes | Batch ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation batches admin list

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BATCHES_ADMIN_LIST`

List annotation-board batches with cursor pagination.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | string | No | Continuation token from the previous page |
| `limit` | integer | No | Maximum batches to return, from 1 to 200 |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `show_empty` | boolean | No | Include batches with no images |

### Annotation batches create

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BATCHES_CREATE`

Move selected images from one batch into a new batch.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Optional new batch name |
| `image_ids` | array | Yes | Image IDs to move into the new batch |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `source_batch_id` | string | Yes | Batch currently containing the selected images |

### Annotation batches delete

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BATCHES_DELETE`

Delete a batch. By default its images move to unassigned and remain accessible.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `batch_id` | string | Yes | Batch ID |
| `permanent` | boolean | No | Delete image sources instead of moving them to unassigned. Defaults to false. |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation batches get

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BATCHES_GET`

Get details about one upload batch.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `batch_id` | string | Yes | Batch ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation batches list

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BATCHES_LIST`

List upload batches in a project.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Annotation batches merge

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BATCHES_MERGE`

Move all images from source batches into a target batch and remove the emptied sources.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `target_batch_id` | string | Yes | Batch that will receive the images |
| `source_batch_ids` | array | Yes | Batch IDs whose images will move |

### Annotation board status

**Slug:** `ROBOFLOW_MCP_ANNOTATION_BOARD_STATUS`

Summarize a project's Annotate board: Unassigned, Annotating, Review, and Dataset.

Proxies GET /:workspace/:project/annotation-board. Returns column counts and
progress, plus per-labeler and per-reviewer rollups. Use annotation_jobs_list
and annotation_batches_admin_list when you need more pages of items.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sort` | string ("newest" | "oldest" | "name") | No | Sort Unassigned batches and job columns: newest, oldest, or name. |
| `limit` | integer | No | Maximum items to return per board column, from 1 to 200. |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `include_items` | boolean | No | Include per-batch and per-job item arrays. Set false for counts only. |
| `labeler_email` | string | No | Only include jobs assigned to this labeler email. Omit for all. |
| `reviewer_email` | string | No | Only include jobs assigned to this reviewer email. Omit for all. |

### Annotation editor open

**Slug:** `ROBOFLOW_MCP_ANNOTATION_EDITOR_OPEN`

Open the Roboflow annotation editor for one image.

Use this when a person needs to inspect or edit image annotations visually.
Changes are saved only when the person chooses Save in the widget.
For usage guidance, read skill://roboflow-apps/annotation-editor/SKILL.md.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image_id` | string | Yes |  |
| `project_id` | string | Yes |  |
| `workspace_id` | string | Yes |  |

### Annotation editor read

**Slug:** `ROBOFLOW_MCP_ANNOTATION_EDITOR_READ`

Reload the editor snapshot and revision after a save or conflict.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image_id` | string | Yes |  |
| `project_id` | string | Yes |  |
| `workspace_id` | string | Yes |  |

### Annotation editor save

**Slug:** `ROBOFLOW_MCP_ANNOTATION_EDITOR_SAVE`

Save the user's annotation edits using the loaded group revision.

A conflict requires reloading and reconciling edits. Never blindly retry.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group` | string | Yes |  |
| `is_null` | boolean | No |  |
| `image_id` | string | Yes |  |
| `annotation` | object | Yes |  |
| `project_id` | string | Yes |  |
| `mutation_id` | string | Yes |  |
| `workspace_id` | string | Yes |  |
| `expected_group_version` | integer | Yes |  |

### Annotation jobs accept into dataset

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_ACCEPT_INTO_DATASET`

Finalize selected job images into the Dataset and assign splits.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `image_ids` | string | No | Optional subset of job image IDs |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `test_count` | integer | Yes | Number of accepted images assigned to test |
| `train_count` | integer | Yes | Number of accepted images assigned to train |
| `valid_count` | integer | Yes | Number of accepted images assigned to validation |
| `split_method` | string ("preset" | "split" | "train" | "valid" | "test") | Yes | How accepted images are assigned a Dataset split |
| `statuses_to_include` | array | Yes | Statuses to accept |

### Annotation jobs create

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_CREATE`

Create a job and move images from a batch into it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Optional job name |
| `batch_id` | string | Yes | Source batch ID |
| `num_images` | string | No | Images to move; defaults to the full batch |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `instructions` | string | No | Optional labeling instructions |
| `labeler_email` | string | Yes | Workspace member who will label |
| `reviewer_email` | string | Yes | Workspace member who will review |

### Annotation jobs delete annotations

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_DELETE_ANNOTATIONS`

Delete the project's annotation data for every image assigned to a job.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation jobs get

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_GET`

Get details about one annotation job.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation jobs images add

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_IMAGES_ADD`

Move images into an existing job and reconcile assignment and Dataset counters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Target annotation job ID |
| `image_ids` | array | Yes | Images to remove from Dataset/batch/job and add |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation jobs images list

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_IMAGES_LIST`

List image IDs assigned to a job with cursor pagination.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | string | No | Continuation token from the previous page |
| `limit` | integer | No | Maximum image IDs to return, from 1 to 200 |
| `job_id` | string | Yes | Annotation job ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation jobs images reassign

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_IMAGES_REASSIGN`

Create a job from selected images, removing their prior assignment or Dataset membership.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Optional new job name |
| `image_ids` | array | Yes | Images to remove from Dataset/batch/job and reassign |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `instructions` | string | No | Optional labeling instructions |
| `labeler_email` | string | Yes | Workspace member who will label |
| `reviewer_email` | string | No | Optional reviewer email |

### Annotation jobs list

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_LIST`

List annotation jobs and return a continuation token when more exist.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | string | No | Continuation token from the previous page |
| `limit` | integer | No | Maximum jobs to return, from 1 to 200 |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `show_empty` | boolean | No | Include jobs with no images |

### Annotation jobs move to unassigned

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_MOVE_TO_UNASSIGNED`

Remove a job while moving its images to an unassigned batch so they remain accessible.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation jobs return for edits

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_RETURN_FOR_EDITS`

Move a review job back to labeling, optionally with a new labeler.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `new_labeler_email` | string | No | Optional replacement labeler |

### Annotation jobs review image

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_REVIEW_IMAGE`

Set the explicit review status for one image in a job.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `status` | string ("approved" | "rejected" | "annotated" | "unannotated") | Yes | New review status |
| `image_id` | string | Yes | Image ID in the job |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation jobs review images

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_REVIEW_IMAGES`

Set a status for every job image matching the supplied current status.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `status` | string ("approved" | "rejected" | "annotated") | Yes | New status |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `current_status` | string ("approved" | "rejected" | "annotated" | "unannotated") | Yes | Only images currently in this status |

### Annotation jobs submit for review

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_SUBMIT_FOR_REVIEW`

Advance a labeling job into review.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |

### Annotation jobs update

**Slug:** `ROBOFLOW_MCP_ANNOTATION_JOBS_UPDATE`

Update exactly one of a job's labeler, reviewer, or instructions.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Annotation job ID |
| `project_id` | string | Yes | Project slug; 'workspace/project' is also accepted. |
| `instructions` | string | No | Replacement instructions |
| `labeler_email` | string | No | New labeler email |
| `reviewer_email` | string | No | New reviewer email |

### Api keys create

**Slug:** `ROBOFLOW_MCP_API_KEYS_CREATE`

Create a new API key for the workspace.

Who can create keys: a credential may create keys only if it is unscoped
(full access) or holds the ``api-key:create`` scope; an OAuth token also
needs the ``create_api_key`` permission.

Always ask for least-privilege ``scopes`` first. When ``scopes`` is omitted the
key inherits every scope of the calling credential, so a full-access caller
creates a full-access key (it comes back with ``scopes: null``); the dashboard's
scoped default does not apply here.

Scoped keys, like ``folder_ids``, ``custom_metadata``, ``rotation_due_at`` and
``owners``, need the Advanced API Keys plan feature. Without it the platform
answers 403 and this tool says which arguments need it. That is a plan limit, not
a permissions problem: tell the user, and do not silently retry without ``scopes``. The only
key such a plan can create is unscoped, so create one only after the user
agrees to a key with all of the caller's access (and suggest revoking it with
``api_keys_revoke`` once the task is done). For browser or client-side
inference, the publishable key from ``api_keys_get_publishable`` may be enough
and needs no secret.

Scopes are stored as explicit leaf scopes — a section name or ``role:``
preset is expanded to its current leaves, so a key never auto-gains an
ability added to that group later (add new scopes explicitly when needed).

The secret ``key`` value is returned ONCE in the response and cannot be
retrieved again. Store it immediately in a ``.gitignore``'d ``.env`` file
(e.g. ``ROBOFLOW_API_KEY=rf_...``). Never echo it in logs, code comments,
or tool output.

Rotation reminders: set ``rotation_due_at`` to have the platform email the key's
``owners`` 15 days before the key is due; without a date no reminder is sent.

Returns ``{ key_id, key, name, scopes, folder_ids, protected, rotation_due_at, owners,
publishable_key }``. ``key_id`` is the non-secret handle used in all subsequent
management calls.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Human-readable label for the key |
| `owners` | string | No | Member uids who receive the rotation reminder for this key. Each must be able to roll the key; api_keys_owner_candidates lists who qualifies, and the platform rejects anyone else. An empty list means everyone who can roll it. Requires the Advanced API Keys plan feature. Omitted, an OAuth-connected user becomes the owner when they can roll the key; a key-authenticated create stores none. |
| `scopes` | string | No | Least-privilege scopes for the key: leaf scopes (e.g. ['model:infer'] to run models, ['workflow:read', 'model:infer'] to run a Workflow, ['version:read'] to download weights), a section name ('model' = every model scope), or a role preset 'role:<name>' (labeler, reviewer, owner or a custom role; role:owner = full access). The item examples list every known leaf scope and section. Scoped keys require the Advanced API Keys plan feature. Omitted, the key inherits every scope of the calling credential. |
| `protected` | boolean | No | If true, the key cannot be revoked or disabled until it is unprotected in the Roboflow dashboard at app.roboflow.com/settings/api (the API/CLI/MCP cannot unprotect it). |
| `folder_ids` | string | No | Folder IDs this key may access. Requires the Advanced API Keys plan feature. |
| `custom_metadata` | string | No | Arbitrary string key/value metadata to attach to the key. Requires the Advanced API Keys plan feature. |
| `rotation_due_at` | string | No | The date the key is due to be rotated (ISO date or date-time, read as UTC). Setting it opts the key into the platform's rotation reminder email, sent to its owners 15 days before. Must be in the future. Requires the Advanced API Keys plan feature. |

### Api keys disable

**Slug:** `ROBOFLOW_MCP_API_KEYS_DISABLE`

Disable (or re-enable) an API key without revoking it.

A disabled key is inactive and will be rejected by the platform until
re-enabled. Protected keys cannot be disabled; disabling requires the
Advanced API Keys plan feature, so the specific error returned depends on
the workspace. A key that backs a dedicated deployment cannot be disabled
from here either (the deployment would be paused): to rotate such a key use
``api_keys_roll``, which moves the deployment onto the replacement key.
Returns the updated masked key metadata.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `key_id` | string | Yes | The keyId of the key to enable or disable |
| `disabled` | boolean | No | True to disable the key; False to re-enable it |

### Api keys get

**Slug:** `ROBOFLOW_MCP_API_KEYS_GET`

Get metadata for a single API key by its keyId.

Secret values are never returned. The key is identified by its
non-secret ``keyId`` handle (not the secret key string).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `key_id` | string | Yes | The keyId of the API key to retrieve |

### Api keys get publishable

**Slug:** `ROBOFLOW_MCP_API_KEYS_GET_PUBLISHABLE`

Get the workspace's publishable key (``rf_<workspaceId>``).

The publishable key is the non-secret workspace identifier used with
Roboflow.js and browser-side inference SDKs. It is browser-safe and cannot
manage workspace data or read private resources. It is not a true secret,
but it is not powerless: anyone who holds it can run inference and download
the workspace's deployed models. Embed it in client-side code as intended;
do not treat it as a capability to hand to untrusted parties.

### Api keys list

**Slug:** `ROBOFLOW_MCP_API_KEYS_LIST`

List all API keys for the workspace.

Secret key values are never returned — keys are represented by their
non-secret ``keyId`` handle and a masked ``prefix``. Returns
``{ api_keys, publishable_key }`` where ``publishable_key`` is the
workspace's ``rf_<workspaceId>`` key (safe to embed in client-side code).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `include_folders` | boolean | No | Include folder details on each key |
| `include_disabled` | boolean | No | Include disabled keys in the response |

### Api keys owner candidates

**Slug:** `ROBOFLOW_MCP_API_KEYS_OWNER_CANDIDATES`

List the workspace members who may be named as a key's ``owners``.

Owners receive the rotation reminder email, so they must be able to roll the
key: for a workspace-wide key, members who can create and revoke keys and view
the workspace key list; for a folder key, members who can also write every folder
it is scoped to. Each must have an account email the platform can send to. Call
this before passing ``owners`` to ``api_keys_create``, ``api_keys_update`` or
``api_keys_roll``; the platform rejects uids that are not listed here.

Pass ``key_id`` for an existing key, or ``folder_ids`` for one about to be created
(omit both for a workspace-wide key). The platform accepts either the
``api-key:create`` or the ``api-key:update`` scope, and the workspace needs the
Advanced API Keys plan feature. Returns ``{ members: [{uid, name, email}, ...] }``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `key_id` | string | No | The keyId of an existing key. Omit to ask about a key you are about to create. |
| `folder_ids` | string | No | Folder IDs the key you are about to create will be scoped to; omit for a workspace-wide key. Not together with key_id. |

### Api keys protect

**Slug:** `ROBOFLOW_MCP_API_KEYS_PROTECT`

Mark an API key as protected so it cannot be revoked or disabled.

Protection is one-way from the API: a protected key can only be
unprotected in the Roboflow dashboard at
``app.roboflow.com/settings/api``. The API, CLI, and MCP cannot unprotect
a key, so there is deliberately no ``api_keys_unprotect`` tool.
Returns the updated masked key metadata.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `key_id` | string | Yes | The keyId of the key to protect |

### Api keys revoke

**Slug:** `ROBOFLOW_MCP_API_KEYS_REVOKE`

Permanently revoke (delete) an API key.

Revocation is irreversible — the key can never be recovered or re-enabled.
Protected keys cannot be revoked; an admin must first unprotect the key in
the Roboflow dashboard at ``app.roboflow.com/settings/api``. A key that
backs a dedicated deployment cannot be revoked from here either (the
deployment would be paused): to rotate such a key — for example after a
leak — use ``api_keys_roll``, which moves the deployment onto the
replacement key. Returns ``{ status, key_id }``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `key_id` | string | Yes | The keyId of the key to permanently revoke |

### Api keys roll

**Slug:** `ROBOFLOW_MCP_API_KEYS_ROLL`

Roll (rotate) an API key: revoke it and mint a replacement in one step.

This is the rotation path for a leaked or compromised key. The replacement
keeps the old key's whole identity — name, scopes, folders, protection and
disabled state — so nothing the key was allowed to do changes; only the
secret does. Any dedicated deployment anchored on the old key is moved onto
the replacement automatically, which is why roll is allowed where
``api_keys_disable`` and ``api_keys_revoke`` refuse. The old secret stops
working immediately and its ``key_id`` is retired; the roll cannot be undone.

Protected keys cannot be rolled (unprotect in the dashboard first), and a
disabled key that backs a dedicated deployment must be re-enabled before it
can be rolled.

The new secret ``key`` is returned ONCE and cannot be retrieved again. Store
it immediately in a ``.gitignore``'d ``.env`` file and update every consumer
of the old key; never echo it in logs or tool output.

The replacement stays on the old key's rotation schedule (due date shifted by the
old key's interval, same owners) unless ``rotation_due_at`` or ``owners`` sets it.

Returns ``{ key_id, key, name, scopes, folder_ids, protected, disabled,
rotation_due_at, owners, revoked_key_id }``. ``key_id`` is the new key's
non-secret handle; ``revoked_key_id`` is the handle that was rolled.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `key_id` | string | Yes | The keyId of the key to roll (rotate) |
| `owners` | string | No | Member uids who receive the rotation reminder for this key. Each must be able to roll the key; api_keys_owner_candidates lists who qualifies, and the platform rejects anyone else. An empty list means everyone who can roll it. Requires the Advanced API Keys plan feature. Omit to keep the old key's owners. |
| `rotation_due_at` | string | No | The replacement's rotation due date (ISO date or date-time, UTC, in the future). Omit to keep the old key's schedule, shifted forward by its own interval. Requires the Advanced API Keys plan feature. |

### Api keys update

**Slug:** `ROBOFLOW_MCP_API_KEYS_UPDATE`

Update the name, scopes, custom_metadata or rotation schedule of an API key.

Only fields you provide are sent; omitted fields are left unchanged.
Omitting ``name`` leaves the name unchanged; omitting ``custom_metadata``
leaves the metadata unchanged. Omitting ``scopes`` leaves the key's
scopes unchanged, while passing a list replaces them entirely (including
``role:<name>`` presets). To widen a scoped key back to full access, pass
``["role:owner"]`` (subject to the usual subset rules and the Advanced API
Keys feature).

``rotation_due_at`` sets the date the platform reminds the ``owners`` about,
15 days ahead; an empty string clears it. ``owners`` replaces the list with
members who can roll the key (see ``api_keys_owner_candidates``).

To protect or disable a key use ``api_keys_protect`` or ``api_keys_disable``.
Protection cannot be changed here (unprotecting is dashboard-only).
Returns the updated masked key metadata.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New human-readable label for the key |
| `key_id` | string | Yes | The keyId of the key to update |
| `owners` | string | No | Member uids who receive the rotation reminder for this key. Each must be able to roll the key; api_keys_owner_candidates lists who qualifies, and the platform rejects anyone else. An empty list means everyone who can roll it. Requires the Advanced API Keys plan feature. Replaces the list. |
| `scopes` | string | No | Replacement scope list (leaf scopes, a section name, or 'role:<name>' presets). Use 'role:owner' to widen the key back to full access. Requires the Advanced API Keys plan feature. |
| `protected` | string | No | Not settable here. Use api_keys_protect to protect a key; unprotecting is dashboard-only and cannot be done via the API/MCP. Passing this returns guidance. |
| `custom_metadata` | string | No | Replacement custom metadata. Requires the Advanced API Keys plan feature. |
| `rotation_due_at` | string | No | The date the key is due to be rotated (ISO date or date-time, read as UTC). Setting it opts the key into the platform's rotation reminder email, sent to its owners 15 days before. Must be in the future. Requires the Advanced API Keys plan feature. Pass an empty string to clear it and take the key off the reminder schedule. |

### Ask feedback

**Slug:** `ROBOFLOW_MCP_ASK_FEEDBACK`

Offer the user a short Yes/No survey about their Roboflow MCP experience.

Call once on the first Roboflow turn, before other Roboflow tools.
For ask_in_chat, ask the returned question verbatim. Continue helping
even if the user does not answer. Use meta_survey_opt_out if the user
asks to stop receiving the survey.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `question` | string | No |  |

### Async tasks get

**Slug:** `ROBOFLOW_MCP_ASYNC_TASKS_GET`

Poll an async task by id. Poll every 5 seconds; processing may take up to 30 seconds to start.

Returns `{ taskId, status, progress, result?, error? }`. `status` is
one of `created`, `running`, `completed`, `failed`.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `task_id` | string | Yes | Task ID returned by an async-enqueueing tool, e.g. projects_fork |

### Autolabel job get

**Slug:** `ROBOFLOW_MCP_AUTOLABEL_JOB_GET`

Get per-subjob status and progress for an auto-label job.

Returns status, model/project type, image counts, subjob progress,
ontology, confidence thresholds, and the linked annotation job id.
Status moves from pending to processing_completion to done; the
annotation job then waits in review.

Video jobs (modelType 'video-segment') count videos in numImages and add
mediaType 'video', classes, sampling (sampleFps, windowSeconds,
overlapSeconds), framesPlanned, framesSampled, and per-video progress in
videos: {videoId: {status, windows, framesSeen, segments, windowsFailed,
unanalysedIntervals, preserved, truncated, error}}. A done video with
windowsFailed > 0, non-empty unanalysedIntervals, or truncated: true is
only partly labeled, and preserved: true means its frame annotations
were kept and no segments were written; report those. segments is the number of segments written. A
video job still ends done when videos fail, so check each video's status
(pending, done or failed).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `autolabel_job_id` | string | Yes | Auto-label job ID returned from autolabel_start |

### Autolabel models list

**Slug:** `ROBOFLOW_MCP_AUTOLABEL_MODELS_LIST`

List the foundation models available for hosted auto-labeling in this workspace.

Returns ``{models: [...]}``. Each entry's ``id`` (e.g.
``gpt-6-astra-boxes``, ``sam3-rle``, ``gemini-3-8-flash-boxes``) is a valid
``model`` value for ``autolabel_start`` with
``model_type='foundational'``. Entries carry ``guidance`` on when to
prefer each model, ``projectTypes`` / ``excludedProjectTypes`` they
support, ``ontologyFormat`` (``promptMap``: prompts are sent to the
model; ``classes``: only class names are used), ``creditsPerImage``,
``isDefault`` (the workspace's object-detection default, not the
instance-segmentation default), and ``available``
with an ``unavailableReason`` when the workspace's plan blocks a
model. Call this before ``autolabel_start`` to pick a
model instead of assuming which ones exist. When the user has not
chosen a model, follow up with ``autolabel_preview`` to compare the
candidates on one sample image before committing to a job.

This is the image catalog. Action Recognition (video) projects use one
model that is not listed here: call ``autolabel_start`` with
``model='video-segment'`` and ``model_type='foundational'``.

### Autolabel preview

**Slug:** `ROBOFLOW_MCP_AUTOLABEL_PREVIEW`

Preview one image with a foundation model to judge it before starting an auto-label job.

Image projects only: Action Recognition (video) projects have no preview.

Previews are for comparing candidate models on a few sample images. They
create no job and spend no credits, but they are rate limited per
workspace (the limit is shared with the Roboflow app), and past the limit
the call fails with a 429 that says when to try again. Labeling a batch
must go through autolabel_start: do not preview images one at a time and
keep the predictions as labels.

Use this as the model-selection loop when the user has not picked a model:
1. Call autolabel_models_list and order the candidates (the default first,
   then whatever the guidance recommends for the ontology at hand).
2. Pick one representative image from the batch (e.g. from the batch or
   image listing tools) and preview it with the first candidate.
3. Judge the summary: entries in classesWithNoDetections, a suspiciously
   low totalDetections, or blockErrors mean the model likely will not
   label this data well. Preview the next candidate and compare.
4. Start the real job with the winner via autolabel_start, using the same
   ontology.

Returns ``{model, summary, predictions, blockErrors?}``; summary.byClass
carries per-class counts and max confidence, and predictions are trimmed
to class, confidence, and box geometry (polygon and mask geometry is
dropped to keep responses small).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image` | string | Yes | Sample image as an HTTPS URL or base64-encoded string. |
| `model` | string | Yes | Foundation model id from autolabel_models_list (e.g. 'gpt-6-astra-boxes', 'sam3-rle', 'gemini-3-8-flash-boxes'). |
| `ontology` | string | No | Classes to label, keyed by PROMPT not by class: {'text prompt': 'class name'}, e.g. {'a cat': 'cat', 'a dog': 'dog'}. That direction lets several prompts collapse onto one output class, e.g. {'kitten': 'cat', 'tabby': 'cat'} labels both as cat. A plain list of class names prompts each class with its own name. When omitted, the dataset's own classes are used. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `confidence_threshold` | string | No | Detection threshold between 0.0 and 1.0 (sam3 only; gpt-6-astra and gemini report fixed confidence). |

### Autolabel start

**Slug:** `ROBOFLOW_MCP_AUTOLABEL_START`

Start a hosted auto-label job over a batch of images, or of videos for Action Recognition.

For image projects, call ``autolabel_models_list`` first to pick a foundation model; its
entry ids (e.g. 'gemini-4-carbon-boxes') are valid ``model`` values.
Use the API's model list and project type to select a candidate. If the
user has not chosen a model, run ``autolabel_preview`` on a sample image
per candidate and start the job with the best one. Returns
``{jobId, annotationJobId, message}``.
Poll progress with ``autolabel_job_get`` using the returned ``jobId``.

Action Recognition projects skip the model list and preview. They label
every video in the batch (at most 50 videos, each at most 30 minutes)
with ``model='video-segment'`` and ``model_type='foundational'``, e.g.
``ontology={'a person jumps': 'jump'}`` and ``model_options={'sampleFps': 4}``.
Only ontology, model_options, reviewer_email and business_context apply.
The job replaces each video's existing segments, but a video that has
frame annotations keeps them and gets no segments.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model` | string | Yes | Model identifier. For model_type='foundational', a model id from autolabel_models_list (e.g. 'gpt-6-astra-boxes', 'sam3-rle', 'sam3-polygon', 'gemini-3-8-flash-boxes'; the bare 'sam3' also works), or 'video-segment' for an Action Recognition project. For model_type='roboflow', a Roboflow model id like 'project-slug/version' or 'workspace-slug/model-id'. |
| `run_nms` | string | No | Image projects only. Whether to run non-max suppression (default True server-side). |
| `batch_id` | string | Yes | Source batch ID containing the images (or, for Action Recognition, the videos) to auto-label. |
| `ontology` | string | No | Classes to label, keyed by PROMPT not by class: {'text prompt': 'class name'}, e.g. {'a cat': 'cat', 'a dog': 'dog'}. That direction lets several prompts collapse onto one output class, e.g. {'kitten': 'cat', 'tabby': 'cat'} labels both as cat. A plain list of class names prompts each class with its own name. Same shapes autolabel_preview takes, so a previewed ontology can be passed straight through. For models with ontologyFormat='promptMap' (sam3: bare nouns, max 50 classes) the prompts are sent to the model; for ontologyFormat='classes' (gpt-6-astra-boxes, gemini-3-8-flash-boxes) only the class names are used. When omitted for foundational models, the dataset's own classes are used. Optional for model_type='roboflow' too, where the trained model's classes are the fallback. For 'video-segment', the key describes the action, each class takes one description and must already exist in the project, and a class named by itself uses its saved project description. |
| `model_type` | string ("foundational" | "roboflow") | Yes | How to interpret `model`. 'foundational' uses a hosted foundation model (sent as-is; the backend resolves catalog ids like 'gpt-6-astra-boxes' to their execution path). 'roboflow' uses a Roboflow-trained model and is sent as 'custom_roboflow' with the id passed in modelOptions.modelId. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `model_options` | string | No | Model-specific options, e.g. {'outputFormat': 'polygon'} or {'outputFormat': 'rle'} for segmentation output shape. For 'video-segment', only {'sampleFps': n}: frames per second the model sees, 0.5 to 12, default 8. |
| `reviewer_email` | string | No | Email of the reviewer for the resulting annotation job. Must be a workspace member. Defaults to the workspace owner, or for an Action Recognition job started with OAuth, to the signed-in user. |
| `business_context` | string | No | Brief description of the business problem this labeling job addresses, if the user has shared one. |
| `default_confidence` | string | No | Image projects only. Confidence threshold applied to every ontology class (mirrors the UI slider). The backend fans this out across the ontology when confidence_thresholds is omitted. |
| `num_images_to_label` | string | No | Image projects only. Number of images from the batch to auto-label. Defaults to the entire batch. |
| `existing_annotations` | string | No | Image projects only. What to do with annotations already on the batch images. 'replace' (the default) removes them. 'preserve' keeps them and adds every prediction. 'merge' keeps them and adds only the predictions that don't overlap an existing annotation of the same class (IoU of at least 0.5), so objects that are already labeled aren't duplicated. Use 'merge' when the batch has images that were already labeled or reviewed. |
| `confidence_thresholds` | string | No | Image projects only. Per-class confidence threshold override, e.g. {'cat': 0.5, 'dog': 0.6}. Takes precedence over default_confidence. |
| `keypoint_confidence_threshold` | string | No | Keypoint-detection projects only (labeled with a trained keypoint model, model_type='roboflow'): minimum confidence from 0.0 to 1.0 for each predicted keypoint. A skeleton point below it is saved as not visible. Defaults to 0.6 server-side. default_confidence and confidence_thresholds still decide which instances are kept. |

### Batch processing asset library job create

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_ASSET_LIBRARY_JOB_CREATE`

Queue a durable Workflow run over an Asset Library selection.

The platform owns selection authorization, entitlement and billing,
workflow compatibility, staging, and job registration: it stages your
selection into a Data Staging batch for you (for files you stage
yourself, use ``batch_processing_run`` or
``batch_processing_staged_job_start``). The response is a 202 receipt:
poll ``batch_processing_asset_library_task_get`` with its taskId until
terminal, then use ``batch_processing_job_get`` with jobId.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | No | Reviewed Asset Library RoboQL query. Use exactly one selection input. |
| `image_ids` | string | No | Exact Asset Library image IDs. Use exactly one selection input. |
| `all_images` | boolean | No | Set true to explicitly select every accessible Asset Library image. |
| `workflow_id` | string | Yes | Published Workflow URL slug or ID. |
| `display_name` | string | No | Optional human-readable job name, up to 200 characters. |
| `machine_type` | string ("cpu" | "gpu") | No | Compute type; CPU is the product default. |
| `idempotency_key` | string | Yes | Stable request key, 8-128 characters. Reuse it only when retrying the same logical launch. |

### Batch processing asset library task get

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_ASSET_LIBRARY_TASK_GET`

Poll the launch receipt until its durable job is registered.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `task_id` | string | Yes | Task id returned by batch_processing_asset_library_job_create. |

### Batch processing guide

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_GUIDE`

Route a bulk image/video processing request onto batch processing: pick the staging mode, settle the batch id, and return the exact inference-cli commands for the whole run.

Every batch processing job runs a Workflow over a Data Staging batch; the input paths differ only in who fills it. Files already in Roboflow (Asset Library): batch_processing_asset_library_job_create, and the platform selects and stages them for you. External files (local disk, cloud bucket, references file) when you only want the outputs: stage them with the inference-cli and drive the run with batch_processing_run (nothing is imported; the classic ETL shape). External files you want INSIDE Roboflow for labeling/training/curation: that is an import, not a job; mirror them with a datasource (bucket mirror, connect_cloud_storage), then run an Asset Library job over the imported images if you also want bulk predictions (the classic ELT shape). An On Sync automation can also run a Workflow after the mirror; with upload screening it waits for eligible new-image verdicts and search indexing, skips waiting for held overwrites, and can fail when no images are admitted. Mirror completion alone does not make held images available as Sources.

Staging uploads are client-side: this MCP server cannot read the user's filesystem or cloud credentials, so files are staged with the inference-cli on the user's machine (pip install inference-cli). Call this with whatever you already know (local dir, bucket path, workflow, images vs videos); it returns the install line and the ordered stage/inspect/process/monitor/export commands. Read the skill://roboflow/roboflow-batch-processing/SKILL.md resource for the full recipe, and prefer batch_processing_run to drive the run server-side once files are staged. Requires the batch-processing feature on the workspace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `batch_id` | string | No | Staging batch id to use (lowercase letters, digits, '-' or '_'). Optional. |
| `images_dir` | string | No | Local directory of images to process. Optional. |
| `videos_dir` | string | No | Local directory of videos to process. Optional. |
| `bucket_path` | string | No | Cloud storage path/glob, e.g. 's3://bucket/imgs/**/*.jpg', 'gs://bucket/videos/'. Works for images and videos. Optional. |
| `workflow_id` | string | No | Workflow to run over the batch (must exist in the workspace). Optional. |
| `content_type` | string ("images" | "videos") | No | What the files are. Inferred from images_dir/videos_dir when given. |
| `references_file` | string | No | Path to a JSONL references file of {name, url} HTTPS entries. Optional. |

### Batch processing jobs list

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_JOBS_LIST`

List the workspace's batch processing jobs.

Returns ``{jobs, nextPageToken?}`` with each job's full definition
omitted (use ``batch_processing_job_get`` for one job's detail). Each
entry carries ``inputSource``: 'asset-library' (platform-staged
selection) or 'staged-batch' (a batch the caller staged).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `search` | string | No | Optional name, Workflow or notification search (max 160 chars). |
| `page_size` | string | No | Jobs per page (server default 10, max 100). |
| `next_page_token` | string | No | Continuation token from a previous call. |

### Batch processing job abort

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_JOB_ABORT`

Abort a running batch processing job. Already-produced partial
results stay available in the job's staging batches.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Batch processing job id |

### Batch processing job get

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_JOB_GET`

Get a job's status and per-stage progress.

Poll this to track a running job: ``job.isTerminal`` says whether it
finished and ``job.error`` whether it failed; ``stages`` carries
per-stage progress and ``outputBatches``. When the export stage
completes, download results from the ``<job-id>-export`` staging batch
via ``batch_processing_staging_batch_files_list``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Batch processing job id |

### Batch processing job logs

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_JOB_LOGS`

Fetch a job's processing logs (paginated). Use this to diagnose
failed or slow jobs; pair with batch_processing_job_get for stage
status.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Batch processing job id |
| `next_page_token` | string | No | Continuation token from a previous call. |

### Batch processing job restart

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_JOB_RESTART`

Restart a failed or aborted job, optionally overriding compute
parameters. Consumes credits like a fresh run.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Batch processing job id |
| `machine_type` | string | No | Override the compute type (e.g. move to gpu after an OOM or timeout). |
| `max_parallel_tasks` | string | No | Override max concurrent tasks. |
| `max_runtime_seconds` | string | No | Override the processing timeout, between 600 and 43200 seconds (a restart caps lower than the original job). |
| `workers_per_machine` | string | No | Override parallel workers per machine (1, 2, 4 or 8). |
| `max_image_failure_rate` | string | No | Images only: override the tolerated failure rate (0.0-1.0). |

### Batch processing run

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_RUN`

Master tool: drive a batch processing run over a staging batch you name (stage -> ingest -> job -> results) through repeated resumable calls. For Asset Library selections, use batch_processing_asset_library_job_create instead.

Every batch processing job runs a Workflow over a Data Staging batch; the input paths differ only in who fills it. Files already in Roboflow (Asset Library): batch_processing_asset_library_job_create, and the platform selects and stages them for you. External files (local disk, cloud bucket, references file) when you only want the outputs: stage them with the inference-cli and drive the run with batch_processing_run (nothing is imported; the classic ETL shape). External files you want INSIDE Roboflow for labeling/training/curation: that is an import, not a job; mirror them with a datasource (bucket mirror, connect_cloud_storage), then run an Asset Library job over the imported images if you also want bulk predictions (the classic ELT shape). An On Sync automation can also run a Workflow after the mirror; with upload screening it waits for eligible new-image verdicts and search indexing, skips waiting for held overwrites, and can fail when no images are admitted. Mirror completion alone does not make held images available as Sources.

Each call reads current state, advances what it can, and returns immediately: 'staging_required' (batch missing; response contains the inference-cli commands to run), 'ingest_in_progress', 'ingest_failed', 'running' (job started or working; includes stage progress), 'completed' (includes result files with download URLs), or 'failed' (includes logs). This server never sleeps on your behalf; non-terminal responses carry retryAfterSeconds, so wait that long and call again with the returned job_id to resume; omit optional creation settings and the stored paid-job definition remains authoritative. The job is started under an id derived from (workspace, batch, workflow), so retrying after a lost response re-registers the same job rather than starting a second one. Starting the job consumes credits. For the advanced knobs (max_runtime_seconds, max_parallel_tasks, max_image_failure_rate, image_outputs_to_save) use batch_processing_staged_job_start instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | No | Pass back the job_id from a previous call to resume monitoring. Omit on the first call; the job is started once ingest is ready under an id derived from (workspace, batch, workflow), so retrying after a lost response is safe. Passing an id that does not exist yet starts a distinct re-run of the same batch and workflow under that id, after the same ingest checks. |
| `batch_id` | string | Yes | Staging batch id (lowercase letters, digits, '-' or '_'). |
| `part_name` | string | No | Required when the input is a multipart staging batch. |
| `workflow_id` | string | Yes | Workflow to run; must already exist in the workspace (workflows_list). |
| `content_type` | string | No | What the batch contains. Defaults to images for a new run; omit when resuming to use the stored job definition. |
| `machine_type` | string | No | Compute type for the workers (default cpu). Unsure? Test-run the Workflow on one image first (workflows_run; time the second call) and inspect its spec (workflows_get): one small fine-tuned model -> cpu; several chained models, large foundation models (SAM/CLIP/OCR/VLM blocks), or a test run slower than ~1s of model time -> gpu. |
| `max_video_fps` | string | No | Videos only: subsample predictions to at most this FPS. |
| `image_input_name` | string | No | Name of the Workflow's image input placeholder. |
| `inference_backend` | string | No | Execution backend. Defaults to the current product backend for a new run; omit when resuming to use the stored backend. |
| `aggregation_format` | string | No | Format of the aggregated results file. |
| `save_image_outputs` | string | No | Persist the Workflow's image outputs (crops/visualizations). Defaults to false for a new run; omit when resuming. |
| `workers_per_machine` | string | No | Parallel workers per machine (1, 2, 4 or 8). |
| `workflow_parameters` | string | No | Extra Workflow input parameters (non-image inputs). |

### Batch processing staged job start

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_STAGED_JOB_START`

Start a batch processing job: run a Workflow over a staged batch.

This launches asynchronous compute and consumes credits. The batch
must be staged first (see ``batch_processing_guide``) and fully
ingested (``batch_processing_staging_batch_get``). Returns
``{jobId, ...}``; poll ``batch_processing_job_get`` and fetch results
from the ``<job-id>-export`` staging batch when it finishes. Re-running
with the same job_id and identical settings is idempotent; a divergent
definition is rejected (409).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Stable job id (lowercase letters, digits, '-', max 20 chars). Reuse it when retrying the same request. |
| `batch_id` | string | Yes | Staging batch to process (must be fully ingested). |
| `job_name` | string | No | Human-readable job name. |
| `part_name` | string | No | Multipart batches only: which part to process. |
| `workflow_id` | string | Yes | Workflow to run; must already exist in the workspace (workflows_list). |
| `content_type` | string ("images" | "videos") | No | What the staged batch contains. |
| `machine_type` | string | No | Compute type for the workers (default cpu). Unsure? Test-run the Workflow on one image first (workflows_run; time the second call) and inspect its spec (workflows_get): one small fine-tuned model -> cpu; several chained models, large foundation models (SAM/CLIP/OCR/VLM blocks), or a test run slower than ~1s of model time -> gpu. |
| `max_video_fps` | string | No | Videos only: subsample predictions to at most this FPS (minimum 1). |
| `image_input_name` | string | No | Name of the Workflow's image input placeholder. |
| `inference_backend` | string ("inference-models" | "old-inference") | No | Execution backend. Defaults to the current product backend; use old-inference only for a known compatibility requirement. |
| `notifications_url` | string | No | Your own webhook URL, notified when the job succeeds or fails. The platform POSTs the job notification there; this server does not receive or relay webhooks. |
| `aggregation_format` | string | No | Format of the aggregated results file. |
| `max_parallel_tasks` | string | No | Max concurrent tasks. |
| `save_image_outputs` | boolean | No | Persist the Workflow's image outputs (crops/visualizations). |
| `max_runtime_seconds` | string | No | Processing timeout, between 600 and 172800 seconds. |
| `workers_per_machine` | string | No | Parallel workers per machine (1, 2, 4 or 8). More workers = better utilization but a higher OOM risk. |
| `workflow_parameters` | string | No | Extra Workflow input parameters (non-image inputs). |
| `image_outputs_to_save` | string | No | Only persist these image outputs (default: all). |
| `max_image_failure_rate` | string | No | Images only: abort when the failure rate exceeds this (0.0-1.0). |

### Batch processing staging batches list

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_STAGING_BATCHES_LIST`

List the workspace's data-staging batches (inputs and job results).

Returns ``{batches, nextPageToken?}``. Batches expire about 7 days
after creation. Job results appear as platform-generated batches named
``<job-id>-processing`` and ``<job-id>-export``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_size` | string | No | Batches per page (server default 10). |
| `next_page_token` | string | No | Continuation token from a previous call. |

### Batch processing staging batch files list

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_STAGING_BATCH_FILES_LIST`

List a staged batch's files with time-limited signed download URLs.

Use this to download the results of a finished job (the
``<job-id>-export`` batch). Job-result batches are multipart: when the
batch has exactly one part it is selected automatically (and echoed as
``partName``); with several parts, pass ``part_name`` (see
``batch_processing_staging_batch_get`` parts). Download URLs expire
after ~24h; archives (.tar/.tar.gz) must be unpacked after download.
Returns ``{files, returned, nextPageToken?, truncated, partName?}``.
Results are returned in whole upstream pages so ``nextPageToken``
always continues exactly where ``files`` ended. Listings are capped at
10,000 entries per call; past that, pull results with the
inference-cli's ``export-batch`` (resumable) instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Target number of file entries to return (default 1000, cap 10000, minimum 100). The response is page-aligned and may slightly exceed the target so the returned cursor never skips files. |
| `batch_id` | string | Yes | Staging batch id (job results live in '<job-id>-export') |
| `part_name` | string | No | Part of a multipart batch to list (see staging_batch_get parts). |
| `next_page_token` | string | No | Continuation token from a previous call. |

### Batch processing staging batch get

**Slug:** `ROBOFLOW_MCP_BATCH_PROCESSING_STAGING_BATCH_GET`

Get a staged batch's metadata, file count, and ingest progress.

Sharded, cloud-storage, and references ingests register files
asynchronously: the count stays low until ingest workers finish. Poll
this until ``ingest.pending`` is false and ``ingest.failed`` is false
before starting a job. For multipart batches (e.g. job results) the
response includes ``parts``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `batch_id` | string | Yes | Staging batch id |

### Cloud streaming results subscribe

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMING_RESULTS_SUBSCRIBE`

Read the current job state and, when available, a live results feed grant.

This call does not start or keep a job alive. With `retryAfterSeconds`,
call this tool again after that delay. With `ended: true`, stop reading
this job; `successorJobId`, when present, can be subscribed to instead.

A feed response has `eventsUrl`, `pollUrl`, `accessToken`, and
`accessTokenExpiresAt` (epoch milliseconds). Keep the results-only token
private. Send it as a Bearer token to either feed, or add `access_token`
to the WebSocket URL when headers are unavailable. It expires after ten
minutes or when the execution ends. After a feed closes or returns
401/404, subscribe again for the current claim.
`executionGeneration` can change between claims: discard the previous
WebSocket `after` cursor or poll `cursor` when it changes. WebSocket
reconnects within the same generation may use `after=<last seq received>`;
polling uses `cursor=<next seq>`. Feeds are not durable history.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Cloud Streaming job ID. |

### Cloud streams jobs list

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMS_JOBS_LIST`

List jobs owned by the connected workspace, including jobs on its own cameras and past shared-source jobs after publication withdrawal. Use sharedSource to identify shared sources.

### Cloud streams job cancel

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMS_JOB_CANCEL`

Request cancellation of a job in the connected workspace. Poll cloud_streams_job_get until it has stopped.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Workspace job ID to stop. |

### Cloud streams job create

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMS_JOB_CREATE`

Run a Workflow on the workspace's own cloud camera.

Jobs incur charges and can execute Workflow sinks. Start with the connected
OAuth account or a workspace API key; the user's current access continues
to govern OAuth jobs. Never ask users to paste a key or secret into chat.
A new start runs alongside existing jobs by default.

To switch the Workflow on a camera, set replace_deployments only when the user
explicitly wants to replace its other deployments. The platform starts the
new job first, then requests stops of all older deployments on that camera;
they may briefly run and bill together. Check replacedJobIds,
stillRunningJobIds, otherDeploymentJobIds and replacementIncomplete, then poll
job status. Existing
input values are not copied; specify non-secret inputs needed by the new job.
Retrying the same request and idempotency key completes an interrupted replace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tier` | string | No | Optional processing tier. |
| `max_fps` | string | No | Optional maximum frame rate. |
| `source_id` | string | Yes | Workspace camera ID from cloud_streams_sources_list. |
| `image_output` | string | No | Optional image output name. |
| `workflow_url` | string | No | Published Workflow URL slug (the url field), not the full web address. Supply this or workflow_specification, not both. |
| `processor_size` | string | No | Optional size matching the tier. |
| `idempotency_key` | string | Yes | Stable unique key, 8-128 characters [A-Za-z0-9._:-]. Reuse it only for the same request. |
| `recovery_policy` | string | No | Persistent recovery setting; platform default when omitted. |
| `replace_deployments` | boolean | No | Explicitly replace the camera's older deployments. This stops other jobs on that camera. |
| `workflow_parameters` | string | No | Workflow input values. Do not put credentials in chat. |
| `workflow_specification` | string | No | Inline Workflow specification, instead of workflow_url. |

### Cloud streams job get

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMS_JOB_GET`

Read a workspace job's current status. Past history remains available after a shared source is withdrawn.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Job ID returned by cloud_streams_job_create or cloud_streams_jobs_list. |

### Cloud streams shared job create

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMS_SHARED_JOB_CREATE`

Run a saved Workflow on a shared source. Jobs, execution credentials, results and charges belong to the connected workspace. Starting jobs on shared sources requires an API key with video-inference-job:read, video-inference-job:create, workflow:read and model:infer; OAuth connections can start jobs on their own workspace's cameras instead. Withdrawal stops running jobs, but past job history remains readable.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source_id` | string | Yes | ID from cloud_streams_shared_sources_list. |
| `workflow_url` | string | Yes | Saved Workflow URL slug (the url field), in the connected workspace. |
| `idempotency_key` | string | Yes | Stable unique key, 8-128 characters [A-Za-z0-9._:-]. Reuse it for retries of the same job request. |
| `recovery_policy` | string | No | 'always' for a persistent deployment, or 'none' for a one-run job. |

### Cloud streams shared sources list

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMS_SHARED_SOURCES_LIST`

List public cameras available to the connected workspace. A source may go offline or be withdrawn at any time. Shared sources cannot be edited or republished by consumers.

### Cloud streams shared source preview

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMS_SHARED_SOURCE_PREVIEW`

Request a raw preview of a shared source. The returned WHEP URL contains a short-lived, single-reader grant. Pass it only to a playback client; never quote, summarize, log, or persist it in conversation. Request a new preview when needed. Withdrawal ends existing previews.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source_id` | string | Yes | ID from cloud_streams_shared_sources_list. |

### Cloud streams sources list

**Slug:** `ROBOFLOW_MCP_CLOUD_STREAMS_SOURCES_LIST`

List this workspace's own cloud cameras and sources, without stream credentials.

### Connect cloud storage

**Slug:** `ROBOFLOW_MCP_CONNECT_CLOUD_STORAGE`

Connect a cloud bucket end to end in one call: reuse or create a credential, create the datasource, validate it, and start the first mirror run. A run can overwrite imported images or metadata and remove mirrored images whose source disappeared.

Alternative: to only run a model/Workflow over the files and get results out, WITHOUT importing them into Roboflow, use batch processing instead (start with batch_processing_guide). Mirroring also composes with it: imported files become Asset Library images, and bulk predictions over them run as Asset Library jobs (batch_processing_asset_library_job_create).

On datasources with upload screening, new images and overwrites with changed pixels are held until an On Upload Workflow allows or redacts them. A completed mirror run does not mean held images are available as Sources. A changed-pixel overwrite detaches the prior Source from the bucket path, which can remain without a Source if the replacement is rejected. On Sync waits for eligible new-image verdicts and search indexing. It does not wait for held overwrites and can fail if no eligible images are admitted.

Drive the conversation in this order, and do NOT bring up credentials until the bucket is settled:
1. Pick the bucket FIRST. Ask the user which bucket to connect, confirm its region, and settle which objects to mirror (mirror_configs). Don't mention credentials yet.
2. Credential, only after the bucket is chosen. Prefer reusing one the user already has (check credentials_list and pass its credential_id). Only if none fits, create a new one dedicated to Roboflow by passing credential_name + credential_type. Secrets are never entered in chat: creating a new credential returns manual_entry_required with a url to the Roboflow app, a docs_url, and (for AWS) an aws_setup deep-link. A dedicated, least-privilege credential scoped to this bucket is recommended over reusing personal keys (IAM user with read-only or bucket-scoped access, or an IAM role that trusts Roboflow via AssumeRole).
3. Call this once with the bucket and credential to create, validate, and (when trigger is true) run it.

AWS/S3 assisted setup: use the bucket and profile chosen by the user. Only query that account for details needed to configure the selected bucket.
- Bucket: Ask the user which bucket to connect. Only inspect that bucket's object paths when the user asks for help choosing mirror rules; do not enumerate other profiles, buckets, or their contents.
- Region: For AWS/S3, look up the chosen bucket's region with `aws s3api get-bucket-location --bucket <bucket-name> --profile <profile>` if the user wants assistance (`null`/`None` means us-east-1). Use the AWS profile the user selected. If it is unclear which profile to use, ask the user before querying their AWS account.
These commands only read non-secret metadata for the selected account and bucket; never read ~/.aws/credentials or pass secret values yourself.
- Credential: When a new AWS credential must be created, before handing off to the Roboflow form: resolve the AWS account for the profile in use with `aws sts get-caller-identity --profile <p>` (reads non-secret identity only), then give the user an account-scoped console deep-link so they land in the right account. Sign in at https://<accountId>.signin.aws.amazon.com/console, then for an IAM credential create an IAM user at https://console.aws.amazon.com/iam/home#/users/create, or for an AssumeRole credential create an IAM role at https://console.aws.amazon.com/iam/home#/roles/create (trusting the Roboflow principal from the prerequisites docs). Collect the resulting access keys (IAM) or role ARN (AssumeRole) and enter them in the Roboflow form.

The mirror run only starts when trigger is true AND validation reports no errors; triggering consumes credits. Returns {credentialId, credentialCreated, datasourceId, validation, triggered, batchIds?}. If a new credential was created but a later step failed, a partial status is returned with the credentialId so it can be cleaned up with credentials_delete.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Display name for the datasource |
| `region` | string | Yes | Bucket region, e.g. 'us-east-1' |
| `trigger` | boolean | No | After setup, start a mirror run (consumes credits). Only runs if validation passes. |
| `endpoint` | string | No | Custom S3-compatible endpoint URL (S3 only) |
| `bucket_name` | string | Yes | Bucket name (without scheme or path) |
| `bucket_type` | string ("s3" | "gcs") | Yes | Cloud bucket provider |
| `description` | string | No | Optional datasource description |
| `require_vpce` | boolean | No | Require AWS PrivateLink (VPC endpoint). Needs an AssumeRoleWithWebIdentity credential; the server rejects otherwise. |
| `credential_id` | string | No | Reuse an existing credential (id from credentials_list). Omit to create a new one, which requires credential_name + credential_type. |
| `mirror_configs` | string | No | Optional list of mirror rules. Each rule selects a subset of the bucket and controls how those files sync. Omit the whole argument to mirror the entire bucket with default settings. Each item is {id?, glob_patterns?, glob_file_path?, settings?}: - glob_patterns (list[str]): THE KEY FIELD - glob patterns selecting which images to import, matched against object paths, e.g. ['images/**/*.jpg', 'batch-*/**']. Only images are ingested: non-image objects a pattern matches are skipped, so a broad catch-all still imports only images and does not change which images come in. Sidecar metadata is automatic - for each image the mirror looks for a companion <image-basename>.json beside it and attaches it as metadata, so do NOT list .json/metadata files here (they are never imported on their own). Without it the rule matches every image in the bucket; set it to scope the image set (a subfolder or file type) or split a bucket into multiple rules. - glob_file_path (str): alternative to glob_patterns - path to a manifest file in the bucket whose lines list the image paths to import. - id (str): rule id; auto-generated if omitted (pass the existing id on update to edit a rule in place). - settings (object): sync behavior; omitted keys use server defaults:     - removeOrphanedSourcesWhenDisappeared (bool, default true): delete mirrored images whose source object was removed from the bucket.     - namingStrategy ('fullPath'&#124;'fileName'&#124;'eTag'&#124;'metadata', default 'fullPath'): how the imported image name is derived.     - namingStrategyMetadataKey (str): required when namingStrategy='metadata' - which object-metadata key holds the name.     - updateImageWhenNewer (bool, default true): re-import an image when the bucket object is newer.     - updateImageStrategy ('overwrite', default 'overwrite'): how an updated image replaces the existing one.     - updateMetadataWhenNewer (bool, default true): refresh image metadata when the bucket object is newer.     - updateMetadataStrategy ('overwrite'&#124;'mergeBucketWins'&#124;'merge'&#124;'mergeUserWins'&#124;'untilFirstChange'&#124;'append', default 'mergeBucketWins'): how bucket metadata merges with user edits.     - runScheduledEvery (int hours, default 0=off): >0 enables an automatic recurring mirror (currently a fixed 24h cadence; only on/off is honored today). Note: datasource imports land at the workspace level; the datasource API cannot target a specific Roboflow project/dataset today. |
| `credential_name` | string | No | Name for a NEW credential (used only when credential_id is omitted) |
| `credential_type` | string | No | Type for a NEW credential (used only when credential_id is omitted). Both are for AWS/S3 buckets: IAM (AWS access keys) or AssumeRole (AWS IAM role). |
| `credential_description` | string | No | Optional description for a new credential |

### Credentials delete

**Slug:** `ROBOFLOW_MCP_CREDENTIALS_DELETE`

Delete a credential. Datasources still referencing it will fail to run.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `credential_id` | string | Yes | Id of the credential to delete |

### Credentials list

**Slug:** `ROBOFLOW_MCP_CREDENTIALS_LIST`

List cloud-storage credentials in the workspace.

Secrets are masked server-side, so only non-sensitive fields (id, type,
name, description) come back. Returns ``{ credentials }``.

### Datasets rebalance splits

**Slug:** `ROBOFLOW_MCP_DATASETS_REBALANCE_SPLITS`

Enqueue an async rebalance of a project's train/valid/test splits.

Use this to fix a starved or empty split — an empty test split blocks
training, and this is the only way to move images between splits after
upload.

`train`, `valid` and `test` are relative weights, not percentages: they
do not have to sum to 100, and each must be a whole number (70, not
70.5). `mode="rebalance"` moves the fewest images needed to reach the
ratios; `mode="shuffle"` reassigns every image.

For anomaly detection, train on normal images only. Keep normal images
in validation for threshold calibration; put anomalous images in
validation or test, never train. Rebalance each class separately with
`classes=["normal"]` or `classes=["anomalous"]` and suitable weights.
Do not apply the default whole-Dataset 70/20/10 rebalance to an anomaly
project: it can move anomalous images into train.

Returns the platform's 202 payload verbatim — at minimum
`{ taskId, url }`, where `url` points at the async-task polling
endpoint. Poll completion with `async_tasks_get(task_id=taskId)`
every 5 seconds until `status` is terminal (`completed` or `failed`).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string ("rebalance" | "shuffle") | No | 'rebalance' moves the fewest images needed to hit the target ratios, leaving every other image where it is. 'shuffle' ignores current assignments and reassigns every image at random to match the ratios. |
| `test` | integer | No | Target weight for the test split |
| `train` | integer | No | Target weight for the train split |
| `valid` | integer | No | Target weight for the valid split |
| `classes` | string | No | Class names to rebalance (for example ['normal'] or ['anomalous']); omit to rebalance the whole Dataset. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |

### Datasources list

**Slug:** `ROBOFLOW_MCP_DATASOURCES_LIST`

List datasource (cloud-bucket mirror) configurations in the workspace.

Returns ``{ datasources }`` where each entry is trimmed to
``{id, name, credentialId, validated, requireVpce, latestJob}``. Use
``datasource_get`` for a single config's full detail.

### Datasource create

**Slug:** `ROBOFLOW_MCP_DATASOURCE_CREATE`

Create a datasource that mirrors a cloud bucket into your workspace.

Returns the created datasource {id}. Nothing is mirrored until you call datasource_trigger (or a schedule fires). A run may overwrite imported images or metadata and remove mirrored images whose source disappears.

Alternative: to only run a model/Workflow over the files and get results out, WITHOUT importing them into Roboflow, use batch processing instead (start with batch_processing_guide). Mirroring also composes with it: imported files become Asset Library images, and bulk predictions over them run as Asset Library jobs (batch_processing_asset_library_job_create).

On datasources with upload screening, new images and overwrites with changed pixels are held until an On Upload Workflow allows or redacts them. A completed mirror run does not mean held images are available as Sources. A changed-pixel overwrite detaches the prior Source from the bucket path, which can remain without a Source if the replacement is rejected. On Sync waits for eligible new-image verdicts and search indexing. It does not wait for held overwrites and can fail if no eligible images are admitted.

AWS/S3 assisted setup: use the bucket and profile chosen by the user. Only query that account for details needed to configure the selected bucket.
- Bucket: Ask the user which bucket to connect. Only inspect that bucket's object paths when the user asks for help choosing mirror rules; do not enumerate other profiles, buckets, or their contents.
- Region: For AWS/S3, look up the chosen bucket's region with `aws s3api get-bucket-location --bucket <bucket-name> --profile <profile>` if the user wants assistance (`null`/`None` means us-east-1). Use the AWS profile the user selected. If it is unclear which profile to use, ask the user before querying their AWS account.
These commands only read non-secret metadata for the selected account and bucket; never read ~/.aws/credentials or pass secret values yourself.
- Credential: When a new AWS credential must be created, before handing off to the Roboflow form: resolve the AWS account for the profile in use with `aws sts get-caller-identity --profile <p>` (reads non-secret identity only), then give the user an account-scoped console deep-link so they land in the right account. Sign in at https://<accountId>.signin.aws.amazon.com/console, then for an IAM credential create an IAM user at https://console.aws.amazon.com/iam/home#/users/create, or for an AssumeRole credential create an IAM role at https://console.aws.amazon.com/iam/home#/roles/create (trusting the Roboflow principal from the prerequisites docs). Collect the resulting access keys (IAM) or role ARN (AssumeRole) and enter them in the Roboflow form.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Display name for the datasource |
| `region` | string | Yes | Bucket region, e.g. 'us-east-1' |
| `endpoint` | string | No | Custom S3-compatible endpoint URL (S3 only) |
| `bucket_name` | string | Yes | Bucket name (without scheme or path) |
| `bucket_type` | string ("s3" | "gcs") | Yes | Cloud bucket provider |
| `description` | string | No | Optional description |
| `require_vpce` | boolean | No | Require AWS PrivateLink (VPC endpoint). Needs an AssumeRoleWithWebIdentity credential; the server rejects otherwise. |
| `credential_id` | string | Yes | Id of a stored credential (see credentials_list) |
| `mirror_configs` | string | No | Optional list of mirror rules. Each rule selects a subset of the bucket and controls how those files sync. Omit the whole argument to mirror the entire bucket with default settings. Each item is {id?, glob_patterns?, glob_file_path?, settings?}: - glob_patterns (list[str]): THE KEY FIELD - glob patterns selecting which images to import, matched against object paths, e.g. ['images/**/*.jpg', 'batch-*/**']. Only images are ingested: non-image objects a pattern matches are skipped, so a broad catch-all still imports only images and does not change which images come in. Sidecar metadata is automatic - for each image the mirror looks for a companion <image-basename>.json beside it and attaches it as metadata, so do NOT list .json/metadata files here (they are never imported on their own). Without it the rule matches every image in the bucket; set it to scope the image set (a subfolder or file type) or split a bucket into multiple rules. - glob_file_path (str): alternative to glob_patterns - path to a manifest file in the bucket whose lines list the image paths to import. - id (str): rule id; auto-generated if omitted (pass the existing id on update to edit a rule in place). - settings (object): sync behavior; omitted keys use server defaults:     - removeOrphanedSourcesWhenDisappeared (bool, default true): delete mirrored images whose source object was removed from the bucket.     - namingStrategy ('fullPath'&#124;'fileName'&#124;'eTag'&#124;'metadata', default 'fullPath'): how the imported image name is derived.     - namingStrategyMetadataKey (str): required when namingStrategy='metadata' - which object-metadata key holds the name.     - updateImageWhenNewer (bool, default true): re-import an image when the bucket object is newer.     - updateImageStrategy ('overwrite', default 'overwrite'): how an updated image replaces the existing one.     - updateMetadataWhenNewer (bool, default true): refresh image metadata when the bucket object is newer.     - updateMetadataStrategy ('overwrite'&#124;'mergeBucketWins'&#124;'merge'&#124;'mergeUserWins'&#124;'untilFirstChange'&#124;'append', default 'mergeBucketWins'): how bucket metadata merges with user edits.     - runScheduledEvery (int hours, default 0=off): >0 enables an automatic recurring mirror (currently a fixed 24h cadence; only on/off is honored today). Note: datasource imports land at the workspace level; the datasource API cannot target a specific Roboflow project/dataset today. |

### Datasource delete

**Slug:** `ROBOFLOW_MCP_DATASOURCE_DELETE`

Delete a datasource configuration. Does not delete already-mirrored images.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `config_id` | string | Yes | Datasource (bucket-mirror config) id |

### Datasource get

**Slug:** `ROBOFLOW_MCP_DATASOURCE_GET`

Get full detail for a single datasource, including its bucket,
mirror rules, and latest job summary.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `config_id` | string | Yes | Datasource (bucket-mirror config) id |

### Datasource job get

**Slug:** `ROBOFLOW_MCP_DATASOURCE_JOB_GET`

Get the status and statistics of a single datasource mirror run.

Poll this with a ``batchId`` from ``datasource_trigger`` to track a run.
Returns the job's ``status`` (running/completed/failed), per-stage
``counters`` (enqueued/completed/failed), any ``errors``, and timestamps
(``startedAt``/``completedAt``/``lastSyncedAt``).

In ``counters.INGEST_FILE.meta``, ``imageHeldForScreening`` counts new
images and changed-pixel overwrites held for screening. ``imageScreeningSkipped``
counts object versions not downloaded because an earlier sync held them
and they are still pending or were rejected. These are not Source counts:
a completed mirror can precede screening verdicts and Source creation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Job id (the batchId returned by datasource_trigger) |
| `config_id` | string | Yes | Datasource (bucket-mirror config) id |

### Datasource trigger

**Slug:** `ROBOFLOW_MCP_DATASOURCE_TRIGGER`

Start a mirror run for a datasource.

This kicks off a job that ingests bucket contents into your workspace.
Depending on the saved mirror rules, it can overwrite imported images or
metadata and remove images whose source objects disappeared. It can
consume compute/storage credits. Returns ``{batchIds}`` for the
run(s) that were started. Use ``datasource_validate`` first if you are
unsure the bucket is reachable.

New images and changed-pixel overwrites may be held for screening after this run completes.
Check ``datasource_job_get`` counters and wait for eligible verdicts
before treating those images as available Sources. An On Sync automation
may then run a Workflow over admitted, searchable images.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `config_id` | string | Yes | Datasource (bucket-mirror config) id |

### Datasource update

**Slug:** `ROBOFLOW_MCP_DATASOURCE_UPDATE`

Update a datasource. Only the fields you pass are changed.

To replace the bucket, pass ``bucket_type``, ``bucket_name`` and
``region`` together (``endpoint`` is optional and only applied with
them). Returns the updated datasource.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New display name |
| `region` | string | No | New bucket region; only for a bucket change |
| `endpoint` | string | No | New custom S3 endpoint URL; only applied as part of a bucket change (pass bucket_type, bucket_name and region too) |
| `config_id` | string | Yes | Datasource (bucket-mirror config) id |
| `bucket_name` | string | No | New bucket name; only for a bucket change |
| `bucket_type` | string | No | New bucket provider; requires bucket_name and region too |
| `description` | string | No | New description |
| `require_vpce` | string | No | Toggle AWS PrivateLink requirement |
| `credential_id` | string | No | New credential id |
| `mirror_configs` | string | No | Optional list of mirror rules. Each rule selects a subset of the bucket and controls how those files sync. Omit the whole argument to mirror the entire bucket with default settings. Each item is {id?, glob_patterns?, glob_file_path?, settings?}: - glob_patterns (list[str]): THE KEY FIELD - glob patterns selecting which images to import, matched against object paths, e.g. ['images/**/*.jpg', 'batch-*/**']. Only images are ingested: non-image objects a pattern matches are skipped, so a broad catch-all still imports only images and does not change which images come in. Sidecar metadata is automatic - for each image the mirror looks for a companion <image-basename>.json beside it and attaches it as metadata, so do NOT list .json/metadata files here (they are never imported on their own). Without it the rule matches every image in the bucket; set it to scope the image set (a subfolder or file type) or split a bucket into multiple rules. - glob_file_path (str): alternative to glob_patterns - path to a manifest file in the bucket whose lines list the image paths to import. - id (str): rule id; auto-generated if omitted (pass the existing id on update to edit a rule in place). - settings (object): sync behavior; omitted keys use server defaults:     - removeOrphanedSourcesWhenDisappeared (bool, default true): delete mirrored images whose source object was removed from the bucket.     - namingStrategy ('fullPath'&#124;'fileName'&#124;'eTag'&#124;'metadata', default 'fullPath'): how the imported image name is derived.     - namingStrategyMetadataKey (str): required when namingStrategy='metadata' - which object-metadata key holds the name.     - updateImageWhenNewer (bool, default true): re-import an image when the bucket object is newer.     - updateImageStrategy ('overwrite', default 'overwrite'): how an updated image replaces the existing one.     - updateMetadataWhenNewer (bool, default true): refresh image metadata when the bucket object is newer.     - updateMetadataStrategy ('overwrite'&#124;'mergeBucketWins'&#124;'merge'&#124;'mergeUserWins'&#124;'untilFirstChange'&#124;'append', default 'mergeBucketWins'): how bucket metadata merges with user edits.     - runScheduledEvery (int hours, default 0=off): >0 enables an automatic recurring mirror (currently a fixed 24h cadence; only on/off is honored today). Note: datasource imports land at the workspace level; the datasource API cannot target a specific Roboflow project/dataset today. |

### Datasource validate

**Slug:** `ROBOFLOW_MCP_DATASOURCE_VALIDATE`

Check that Roboflow can access the datasource's bucket.

Returns ``{checks, errors}`` where ``checks`` reports whether
``listFiles``/``headFile``/``getFile`` succeeded plus a per-mirror
``headGlobFile`` result. Use it to self-diagnose a misconfigured
credential or bucket before triggering a run.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `config_id` | string | Yes | Datasource (bucket-mirror config) id |

### Devices apply pending config

**Slug:** `ROBOFLOW_MCP_DEVICES_APPLY_PENDING_CONFIG`

Request application of pending device config updates now.

Requires the ``device:update`` scope. A no-op when no pending updates
exist. Unapproved production updates remain held through maintenance
windows, and apply-pending may return 409 until they are approved.
A ``configProposal`` is separate from pending updates; MCP cannot
approve it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices create

**Slug:** `ROBOFLOW_MCP_DEVICES_CREATE`

Provision a new v2 device.

Requires the ``device:update`` scope. Returns
``{deviceId, installId, offlineProvisioningQrPayload?}``:
``installId`` is the short-lived token used by the device installer
(``GET /devices/v2/:installId/install.sh``).
``offlineProvisioningQrPayload`` is only present for AI1 devices
provisioned with ``offline_mode=true``.

Secure gateway devices require ``runtime='docker'``. An attached
gateway must be ready. Offline QR provisioning cannot carry gateway
trust, so do not combine ``secure_gateway_id`` with ``offline_mode``.
New and duplicated devices do not copy display mode selections from
templates or the source device. Select modes after the new device
reports its own connected displays.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | string | No | Optional list of tag strings. |
| `runtime` | string | No | Installer runtime. Use 'docker' when device_type is 'secure-gateway'. |
| `device_name` | string | Yes | Human-readable device name |
| `device_type` | string | No | 'ai1', 'edge', or any custom string. Optional. |
| `workflow_id` | string | No | Optional initial workflow assignment. For AI1 devices this seeds the default 'aione' stream; other device types typically bind workflows later when streams are configured. |
| `offline_mode` | string | No | Only valid for AI1 devices on workspaces with the roboflowLiteMode feature flag. |
| `source_device_id` | string | No | When set, duplicate this existing device's config instead of generating a fresh one. |
| `secure_gateway_id` | string | No | ID of an existing ready secure gateway to attach this device to. |

### Devices delete

**Slug:** `ROBOFLOW_MCP_DEVICES_DELETE`

Delete a device and revoke its api_keys. Cannot be undone.

Requires the ``device:update`` scope on a workspace credential;
a device's own api_key cannot delete it (403).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices discover cameras

**Slug:** `ROBOFLOW_MCP_DEVICES_DISCOVER_CAMERAS`

Request camera discovery on a device through its command channel.

Returns ``{id}`` for the queued command. Discovery runs
asynchronously; read ``devices_get`` or ``devices_get_snapshot``
afterward for ``discovered_cameras`` and ``devices_get_events``
for discovery/connection events. A successful enqueue does not
mean discovery finished. Undelivered commands expire after 5
minutes, and discovery support depends on the device runtime.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices get

**Slug:** `ROBOFLOW_MCP_DEVICES_GET`

Get a single device by id.

Returns the Device object. 404 if the device does not exist or belongs
to a different workspace.

When inspecting a device, also call ``devices_get_config`` for its
running services and ``devices_get_default_config`` for the
workspace's recommended versions. Comparing the two ``services``
maps reveals whether the device is up to date or pinned to an
older build of any service.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices get config

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_CONFIG`

Get the device's current runtime configuration.

Returns the full RFDM config JSON: ``device_id``, ``device_name``,
``workspace_id``, ``version``, ``last_updated``, ``config``,
``services``, any ``pendingUpdates`` (queued changes with
``applyUpdatesAt`` and ``updateFields``), and any ``configProposal``.
A proposal is awaiting production approval and is not active config.
Unapproved pending changes remain held even during maintenance windows.
Workspace and OAuth callers receive redacted stream credentials.
Service environment variables can still contain integration
credentials, so treat the payload as sensitive.
``config.kiosk.outputs`` contains any per-connector display mode
selections. The live display report requires a Firebase session
cookie and cannot be read through MCP.

Tip: pair this with ``devices_get_default_config`` and diff the
``services`` map. The default config carries the workspace's
recommended version for each service, so comparing the two tells
you whether the device is up to date or pinned to an older build.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices get config history

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_CONFIG_HISTORY`

List prior configuration revisions, newest first.

Returns ``{data: ConfigRevision[], pagination: {next_cursor,
has_more, limit}}``. Each ConfigRevision carries ``revision_id``,
``created_at``, and ``created_by``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size (1-500, default 10). |
| `cursor` | string | No | ISO timestamp from a previous page's next_cursor. |
| `device_id` | string | Yes | Device id |

### Devices get default config

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_DEFAULT_CONFIG`

Get the workspace's default device configuration.

Returns ``{config, patch}``: ``config`` is the base default config
with the workspace's ``config_patch`` applied (the template used
when provisioning new devices, including default service versions),
and ``patch`` is the raw workspace-level patch object.
Display mode selections in this template are not copied to new devices.

Useful for inspecting which service versions a fresh device would
be created with, or for seeding a payload to ``devices_update_config``.

Requires the ``device:read`` scope. Device-scoped api_keys are
rejected with 403 — this endpoint is workspace-wide.

### Devices get deployments

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_DEPLOYMENTS`

Get the device's deployment history with per-deployment activity.

This is the device Activity tab as structured JSON: each config
revision becomes a half-open deployment window (newest window
open-ended), annotated with what happened while it was live:

- ``exception_issues`` — exceptions grouped by fingerprint with
  occurrence counts, last_seen, and the latest description; drill
  into one with ``devices_get_exception_occurrences``
- ``error_event_issues`` — error events grouped by
  entity/event/error_code
- ``execution_environment`` — the inference runtime reported during
  the window (versions, GPU, loaded models)
- ``workflow_edits`` — workflow publishes that landed mid-deployment
- ``container_pulls`` — image pulls (and failures) during the window
- ``stats`` — unique/unhandled exception counts and error event count
- ``config_changed_paths`` (opt-in) — dotted config paths changed vs
  the prior revision, values omitted
- ``trends`` (opt-in) — bucketed occurrence time series per issue

Returns ``{device_id, deployments: Deployment[], pagination:
{next_cursor, has_more, limit}}``. Prefer this over raw
``devices_get_events`` when diagnosing what a deployment broke.
Rate-limited per-device: 30 requests / minute.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Deployments per page (1-5, default 5). |
| `cursor` | string | No | ISO timestamp from a previous page's next_cursor. |
| `include` | string | No | Comma-separated sections: issues, trends, workflow_edits, container_pulls, config_changed_paths. Default issues,workflow_edits,container_pulls. |
| `device_id` | string | Yes | Device id |

### Devices get events

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_EVENTS`

List device and stream lifecycle events.

Returns ``{data: Event[], pagination: {next_cursor, prev_cursor,
has_more, limit}}``.

By default the feed models **state transitions**: consecutive rows
carrying the same event name for the same entity collapse into one
row unless the previous row's TTL has elapsed. That is right for
lifecycle events and wrong for periodic telemetry, which reuses a
single event name for every sample: ``plc_snapshot`` ticks every
60s with ``ttl_s: 300``, so a deduped read returns roughly one row
where the raw read returns them all.

Pass ``dedupe=False`` to read raw rows. It requires **both**
``entity_type`` and ``entity_id`` (an entity id is only unique
within its type), reports ``event_end_timestamp`` as ``null``
(an "end" is derived from the dedup window and means nothing for a
sampled reading), and is rate-limited at 30 requests / minute per
device, in the same bucket as ``devices_get_services`` and
``devices_get_service_series``. The deduped default is not
rate-limited.

For charting a named sidecar metric, prefer
``devices_get_service_series``, which resolves the entity id and the
dedup behavior for you.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `event` | string | No | Filter by event name. |
| `limit` | string | No | Page size (1-1000, default 100). |
| `cursor` | string | No | Opaque cursor from a previous page. |
| `dedupe` | string | No | Default true. Pass false to read raw rows instead of collapsed state transitions. Requires both entity_type and entity_id. |
| `end_time` | string | No | ISO timestamp upper bound. |
| `device_id` | string | Yes | Device id |
| `direction` | string | No | Pagination direction. Default backward. |
| `entity_id` | string | No | Filter to a single entity id. |
| `start_time` | string | No | ISO timestamp lower bound. |
| `entity_type` | string | No | Filter to one entity type (e.g. 'stream', 'device'). |

### Devices get event store stats

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_EVENT_STORE_STATS`

Report a device's local event store against its capacity limits.

Thin view over ``devices_get_services(kind='event_store')``.
Returns ``{device_id, services: Service[]}``; each ``status``
carries ``records`` / ``records_limit`` / ``records_percent``,
``images``, ``bytes_used`` / ``bytes_limit`` / ``bytes_percent``,
a ``backup`` block (Vision Events upload progress: ``enabled``,
``backed_up_*``, ``pending_*``), a ``drafts`` block, ``disk``,
``capacity_blocked``, ``unuploaded_records``, and ``last_cleanup``.

Reading it correctly:

- ``capacity_blocked`` is ``null`` until the device reports a
  transition. The service emits only ``capacity_blocked`` /
  ``capacity_cleared``, so silence is genuinely unknown and
  ``false`` would assert healthy. It also reads ``true`` only while
  a fresh stats sample has not contradicted it.
- ``drafts`` is ``null`` on firmware predating the draft lifecycle,
  which is not the same as a device reporting zero drafts.
- ``stale: true`` with all counters ``null`` means no recent stats
  sample: a device that only ever reported a cleanup is not a
  healthy, current event store.
- ``reported_at`` is the device's clock and may be ``null``; the
  ``received_at`` fields are the platform's.

For a trend (fill rate, backup backlog), use
``devices_get_service_series`` with metrics such as
``records_percent``, ``bytes_percent``, ``pending_records``, or
``disk_percent_used``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `service_name` | string | No | Config name of one event store service. A name that is not an event store 404s. Omit to return every event store declared on the device. |
| `include_signals` | boolean | No | Add the raw stats/capacity/cleanup device-event slots behind the status. |

### Devices get exception occurrences

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_EXCEPTION_OCCURRENCES`

List raw occurrences of one exception fingerprint, newest first.

Use after ``devices_get_deployments`` to see exactly when a grouped
exception fired — each row is ``{id, timestamp, error_code}``. Pair
the timestamps with ``devices_get_logs`` (``start_time`` /
``end_time`` around an occurrence) to read the surrounding log
context.

Returns ``{data: [...], pagination: {next_cursor, has_more, limit}}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size (1-100, default 20). |
| `cursor` | string | No | Opaque cursor from a previous page. |
| `end_time` | string | No | ISO timestamp upper bound (exclusive). |
| `device_id` | string | Yes | Device id |
| `start_time` | string | No | ISO timestamp lower bound (inclusive). |
| `fingerprint` | string | Yes | Exception fingerprint from devices_get_deployments exception_issues. Pass the value verbatim — fingerprints embed file paths, and URL encoding is handled for you. Do not percent-encode it yourself. |

### Devices get inference versions

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_INFERENCE_VERSIONS`

Get the inference server version each listed device runs.

Requires the ``device:read`` scope. Use it to check whether a
workflow's blocks are supported before deploying it to a device.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_ids` | array | Yes | Device ids to look up. |

### Devices get logs

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_LOGS`

Fetch device logs from Elasticsearch.

Rate-limited at 120 requests / minute per workspace, in a separate
bucket from device log ingestion.

Returns ``{data: LogEntry[], pagination: {next_cursor, has_more,
limit}}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size (1-1000, default 100). |
| `cursor` | string | No | ISO timestamp from a previous page's next_cursor. |
| `service` | string | No | Comma-separated service names to filter by. |
| `end_time` | string | No | ISO timestamp upper bound. |
| `severity` | string | No | Comma-separated severities (INFO, WARN, ERROR, ...). |
| `device_id` | string | Yes | Device id |
| `start_time` | string | No | ISO timestamp lower bound. |

### Devices get plc status

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_PLC_STATUS`

Answer "is this PLC connected?" for a device's PLC relay sidecars.

Thin view over ``devices_get_services(kind='plc_relay')``. Returns
``{device_id, services: Service[]}``; each ``status`` carries:

- ``connected``: reconciled across the every-60s snapshot and the
  transition-only connectivity events by recency, connectivity
  winning ties, so an older optimistic snapshot can never mask a
  newer disconnect. ``null`` means unknown, not disconnected: the
  two slots could not be ordered on one clock.
- ``driver``, ``plc_ip``
- ``tags`` / ``tag_count``: the tag map and its size, **withheld
  (``null``) whenever ``connected`` is not true**. Those readings
  predate the drop, and a frozen part count shown as current is how
  an operator ends up trusting a dead line.
- ``reported_at``: device clock, from the snapshot;
  ``connection_changed_at``: device clock, from the last
  connectivity transition. Both ``null`` when that slot never
  reported.
- ``stale: true``: the reading that decided ``connected`` is old
  (over 30 minutes), which is different from absent.

For connectivity history, use ``devices_get_service_series`` with
``metric='connected'`` (charts as 1/0).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `service_name` | string | No | Config name of one PLC relay service. A name that is not a PLC relay 404s. Omit to return every PLC relay declared on the device. |
| `include_signals` | boolean | No | Add the raw device-event slots behind the status, including a snapshot superseded by a newer disconnect. |

### Devices get secure gateway status

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_SECURE_GATEWAY_STATUS`

Read the secure gateway's recorded bootstrap and cache state.

Returns the platform's gateway state, including ``status``
(``initialising``, ``ready``, or ``error``), gateway/SeaweedFS
versions, timestamps, cache stats, and any last setup error.
A 404 means no state has been recorded for this device. This
does not initialise a gateway or verify current connectivity.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices get services

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_SERVICES`

List the sidecar containers a device runs and what each is doing.

Joins the device's declared ``services`` config with the same
latest-value status cache the Device Manager UI subscribes to.
Returns ``{device_id, services: Service[], unassociated_signals}``.

Each Service carries ``name``, ``kind`` (resolved from the image;
an unrecognized container is ``custom``), ``image``/``tag``,
``tag_is_canonical``, ``automatic_updates``,
``has_pending_changes``, ``state`` plus ``state_reported_at`` /
``state_received_at``, ``image_state``, ``signal_conflicts``, and
the typed ``status`` for its kind.

Reading the nulls correctly:

- ``state`` and ``image_state`` are ``null`` once the last report
  has aged past its TTL; the matching ``*_received_at`` still
  carries a timestamp, so "stale reading" stays distinguishable
  from "never reported".
- ``status`` is ``null`` until the service has reported, for kinds
  that emit no telemetry (``rtsp_simulator``, ``device_hmi``,
  ``custom``), and whenever ``signal_conflicts`` is non-empty.
- ``signal_conflicts`` lists entity ids more than one declared
  service claims. Ids derive from the **kind**, so two services of
  the same kind collide unless each sets a distinct
  ``DEVICE_EVENT_ENTITY_ID``. The reading cannot be attributed, so
  it is withheld rather than guessed.
- ``unassociated_signals`` holds telemetry that matched no declared
  service (a custom container, or an entity-id override we could
  not resolve). It needs ``include=['signals']`` and is omitted
  when a ``kind`` filter is applied.

Two clocks, everywhere in this response: ``*_reported_at`` is the
device's own claim and is ``null`` when the device sent none (it is
never backfilled), while ``*_received_at`` is when the platform
recorded it. Freshness reads ``received_at``; ordering two signals
from one device reads ``reported_at``. Never compare one against
the other.

``metrics_truncated: true`` means the metrics aggregation hit its
row cap and some services report ``metrics: null`` for that reason
rather than never having reported. Narrow ``time_period``.

Rate-limited per-device: 30 requests / minute, in one bucket shared
with ``devices_get_service_series``, the per-sidecar tools, and
``devices_get_events(dedupe=False)``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `kind` | string | No | Filter to one sidecar kind. Omit for every declared service. |
| `include` | string | No | Sections to return. Default ['status']. 'config' returns environment_variables verbatim (commonly PLC/broker passwords and API keys), so ask for it only when you need it. 'signals' adds the raw device-event slots behind status, and populates unassociated_signals. 'metrics' adds latest container CPU/memory. |
| `device_id` | string | Yes | Device id |
| `time_period` | string | No | Window for the 'metrics' section only. Default 24h. |

### Devices get service series

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_SERVICE_SERIES`

Chart one named sidecar metric over time.

The metric name resolves to the right entity id, event names, and
metadata key for that service's kind, and the read skips the dedup
window that would otherwise collapse periodic telemetry. Use this
for trend questions instead of raw ``devices_get_events``.

Returns ``{device_id, service, kind, metric, metric_type,
time_period, available_metrics, truncated, covered_from,
covered_to, points: [{timestamp, value}]}``.

- ``metric_type`` is ``number`` or ``boolean``. A boolean charts as
  1/0, so the type is what tells a ``1`` meaning "true" from a
  ``1`` meaning "one".
- An unknown ``metric`` returns 400 listing the valid names for
  that kind in ``valid_values``; ``available_metrics`` on a
  successful response says the same thing.
- ``truncated: true`` means the window held more than the 5,000
  sample cap. The newest samples are kept, so ``covered_from`` /
  ``covered_to`` report the interval actually returned, which can
  be shorter than the requested window. ``plc_snapshot`` ticks
  every 60s (10,080 samples over ``7d``), so narrow the window
  for full coverage.
- Two clocks: ``time_period`` selects by when the platform
  *received* a sample, while each point's ``timestamp`` (and
  therefore ``covered_from`` / ``covered_to``) is what the device
  reported. On a badly-skewed device those can fall outside the
  requested window; that is the device's own account, not a
  filtering error.
- 409 means two services of this kind claim the same entity id, so
  the samples cannot be attributed to one of them; the response
  names the claimants.

Rate-limited per-device: 30 requests / minute, in one bucket shared
with ``devices_get_services``, the per-sidecar tools, and
``devices_get_events(dedupe=False)``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `metric` | string | Yes | Metric name for that service's kind. event_store: records, records_percent, images, bytes_used, bytes_percent, backed_up_records, backed_up_bytes_percent, pending_records, pending_bytes, draft_records, oldest_draft_age_seconds, disk_percent_used. plc_relay: connected. opcua_server: session_count, refused_total. |
| `device_id` | string | Yes | Device id |
| `time_period` | string | No | Window, measured against platform receipt time. Default 24h. |
| `service_name` | string | Yes | Config name of the service, as returned by devices_get_services (not the kind). |

### Devices get snapshot

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_SNAPSHOT`

Get the full current state of a device in one call.

Prefer this as the FIRST call when diagnosing a device — it
aggregates what would otherwise take six requests:

- ``device`` — identity, online/offline status, hardware summary,
  network interfaces, discovered cameras
- ``streams`` — ``{total, running, data}`` including config-only
  (provisioning) streams
- ``services`` / ``services_summary`` — per-service container
  status and healthy/total counts
- ``telemetry`` — the latest non-empty 1h telemetry bucket (cpu,
  memory, disk, gpu, network throughput)
- ``system_status`` — current docker daemon and NTP health
- ``hardware`` — most recent startup hardware report
- ``current_deployment`` — the live config revision with its
  exception/error issues and execution environment
- ``recent_events`` — the 20 most recent lifecycle events

Sections are best-effort: a failed section is ``null`` and named in
the top-level ``errors`` array. Follow up with the focused tools
(``devices_get_deployments``, ``devices_get_logs``,
``devices_get_telemetry``) for history and detail. The ``services``
section here is container status only. For typed sidecar state
(is the PLC connected, is the event store full) call
``devices_get_services`` or the per-sidecar tools.
Rate-limited per-device: 30 requests / minute.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices get stream options

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_STREAM_OPTIONS`

List every device's stream ids and inferred camera family.

Requires the ``device:read`` scope. Stream URLs are never returned.

### Devices get telemetry

**Slug:** `ROBOFLOW_MCP_DEVICES_GET_TELEMETRY`

Get aggregated hardware metrics and device health sections.

Rate-limited per-device: 60 requests / minute steady, plus a
burst limit of 10 requests / 10 seconds.

By default returns ``{time_period, bucket_interval,
fill_interval_seconds, buckets, stream_fps, system_status, services,
hardware, network_interfaces, metadata}``:

- ``buckets`` — cpu/memory/disk/gpu plus
  ``network_upload_bytes_per_sec`` / ``network_download_bytes_per_sec``
- ``stream_fps`` — one series per running pipeline
  (``pipeline_id``, ``stream_name``, ``stream_id``) with a
  ``buckets`` array in ascending time order, each entry
  ``{bucket_start, camera_fps, inference_fps}``
- ``system_status`` — per-bucket docker daemon and NTP health
  (``up`` / ``partial`` / ``missing``; ``missing`` = no telemetry
  samples in that bucket)
- ``services`` — per-service container status with the latest
  container sample (image, cpu, memory); add ``service_history``
  to ``include`` for per-bucket history
- ``hardware`` — most recent startup hardware report (OS, CPU,
  Jetson/JetPack, GPU driver, uptime, NTP)
- ``network_interfaces`` — most recent interface snapshot

Pass ``include=metrics`` for the compact time-series-only response,
or ``include=stream_fps`` when you only need camera vs. inference
frame rates.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `include` | string | No | Comma-separated sections: metrics, stream_fps, system_status, services, service_history, hardware, network_interfaces. Default is everything except service_history (per-service history arrays are large and opt-in). |
| `device_id` | string | Yes | Device id |
| `time_period` | string | No | Aggregation window, which sets the bucket interval: 1h (2 min buckets), 24h (30 min, default), 7d (4 h), 14d (8 h). |

### Devices list

**Slug:** `ROBOFLOW_MCP_DEVICES_LIST`

List devices registered in the workspace.

Returns a list of Device objects with id, name, status, last_heartbeat,
platform/hardware info, tags, and created_at. ``status`` is ``online``
if a heartbeat was received within the last 5 minutes, otherwise
``offline`` (or ``unknown`` for devices that have never reported).

Requires the ``device:read`` scope. Device-scoped api_keys cannot call
this endpoint and will receive 403.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Devices list events

**Slug:** `ROBOFLOW_MCP_DEVICES_LIST_EVENTS`

List lifecycle events across every device in the workspace.

Requires the ``device:read`` scope. For one device's events with
dedupe control use ``devices_get_events``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | Cursor from the previous page. |
| `events` | string | No | Comma-separated event names. |
| `end_time` | string | No | ISO-8601; default now. |
| `device_id` | string | No | Only this device's events. |
| `direction` | string | No | Pagination direction. Default backward. |
| `entity_id` | string | No | Only this entity's events. |
| `page_size` | string | No | Page size. |
| `start_time` | string | No | ISO-8601; default 14 days ago. |
| `entity_type` | string | No | 'device' or 'stream'. |

### Devices migrations opt out

**Slug:** `ROBOFLOW_MCP_DEVICES_MIGRATIONS_OPT_OUT`

Replace this workspace's device migration opt-out settings.

Requires ``device:update`` on a workspace credential. Device-bound keys
are rejected. Every call replaces the settings: omitted fields reset to
the API defaults (enabled false, target_version 1.0.1, empty lists).
Read the returned settings before changing them again. Changing migration
eligibility does not start a migration.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `enabled` | string | No | Whether workspace migrations are eligible. Omitted defaults to false. |
| `target_version` | string | No | Target device config schema version. Omitted defaults to 1.0.1. |
| `device_denylist` | string | No | Device IDs excluded from migration; omitted defaults to an empty list. |
| `device_allowlist` | string | No | Device IDs eligible for migration; an empty or omitted list allows all devices. |

### Devices os image create

**Slug:** `ROBOFLOW_MCP_DEVICES_OS_IMAGE_CREATE`

Start building a ready-to-flash OS Lite image for a device.

Requires the ``device:update`` scope on a workspace credential and
the OS Lite image builder feature. For a Jetson Orin Nano, omitting
``config.release.format`` builds the USB recovery bundle. Set it to
``"card"`` for a microSD image only when the selected release has a
card image available and the board's firmware is at least the release's
``requiresFirmware`` version. Raspberry Pi boards do not accept
``release.format``. Returns ``{jobId, reused, warnings}``; poll
``devices_os_image_get`` for status and the download link.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `config` | object | Yes | Image config: {board, release?: {variant, version, format?: 'card'&#124;'bundle'}, ethernet?, wifi?: {ssid, password}, login?: {password?, ssh_keys?, ssh_password_auth?}}. |
| `device_id` | string | Yes | Device id of a Roboflow OS device |

### Devices os image get

**Slug:** `ROBOFLOW_MCP_DEVICES_OS_IMAGE_GET`

Get the device's in-flight or last finished OS Lite image job.

Requires the ``device:update`` scope: the finished image embeds the
device's credentials. Returns ``{job, boards, wifiAvailable, cardImages,
osImage}``. ``cardImages`` is keyed by board ID. For Jetson Orin Nano,
``cardImages['jetson-orin-nano-devkit']`` reports whether the selected
release offers a card image and its ``requiresFirmware`` minimum. The
board entry is null when availability could not be checked.
The job includes ``image_format`` and ``requires_firmware`` for the
image being built (null for older jobs). Select a release with a card
image and check the board firmware before requesting
``release.format="card"``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `variant` | string | No | Release variant. |
| `version` | string | No | Release version, default 'latest'. |
| `device_id` | string | Yes | Device id |

### Devices provisioning qr

**Slug:** `ROBOFLOW_MCP_DEVICES_PROVISIONING_QR`

Mint the offline (Lite) provisioning QR payload for a device.

Requires the ``device:update`` scope on a workspace credential and
the workspace's roboflowLiteMode feature. Returns
``{installId, offlineProvisioningQrPayload}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id of an offline-mode device |

### Devices redeploy

**Slug:** `ROBOFLOW_MCP_DEVICES_REDEPLOY`

Mint a fresh install id to reinstall an existing device.

Requires the ``device:update`` scope on a workspace credential.
Returns ``{deviceId, installId, offlineProvisioningQrPayload?}``;
the device runs ``GET /devices/v2/:installId/install.sh``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices restart inference

**Slug:** `ROBOFLOW_MCP_DEVICES_RESTART_INFERENCE`

Request a restart of the device's inference runtime.

Interrupts running pipelines. This restarts inference, not the
host operating system. Returns ``{id}`` for the queued command,
not proof that the restart completed. Follow up with
``devices_get_snapshot`` or ``devices_get_events`` to verify
recovery. Offline devices cannot execute commands; undelivered
commands expire after 5 minutes. Do not retry automatically,
because each call queues another restart.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices restart poe port

**Slug:** `ROBOFLOW_MCP_DEVICES_RESTART_POE_PORT`

Request a power cycle of one camera's PoE port on supported edge hardware.

Interrupts the camera and its stream while power is cycled. Choose
the interface associated with the affected camera, not an arbitrary
network interface. Returns ``{id}`` for the queued command, not a
completed reset. Follow up with ``devices_get_events`` and
``devices_streams_get`` to verify recovery. Each call requests a
new power cycle; undelivered commands expire after 5 minutes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `iface` | string | Yes | PoE interface for the affected camera, e.g. lan4 or eth2. The platform checks whether the device supports resetting this port. |
| `device_id` | string | Yes | Device id |
| `stream_id` | string | No |  |
| `pipeline_id` | string | Yes | Exact pipeline_id from devices_streams_list or devices_streams_get. Pass it verbatim, including any percent escapes; do not decode it. |

### Devices send command

**Slug:** `ROBOFLOW_MCP_DEVICES_SEND_COMMAND`

Queue a command on the device's command channel.

Requires the ``device:update`` scope. A returned ``id`` means a command
was queued for the device's next poll. Stream config commands may
instead return ``{id: null, staged: true}``; inspect
``devices_get_config.configProposal`` before claiming a live change.
Camera-capture commands (``livesample``, ``trigger_stream``, and
``cloud_fallback`` starts) can return 403 with
``error_type=CAMERA_STREAM_DISABLED`` when workspace, device, or
stream settings disable viewing. Other commands, including capture
stops, remain available. Queued capture commands are checked again
before device delivery, so a later opt-out can prevent execution.

For a connectivity check from the device, use ``action='network_probe'``
and ``data`` with ``kind`` (``ping``, ``dns``, ``tcp`` or ``http``) and
``target`` (IP address or hostname up to 253 characters, with labels
of at most 63 characters; not a URL or zone-scoped IP). Optional whole-number
``count`` is 1-10 and ``timeout_s`` is 1-15. ``port`` is 1-65535,
required for TCP, optional for HTTP, and invalid for ping or DNS.
``scheme`` is ``http`` or ``https`` for HTTP only. Other fields are
rejected. The returned ``id`` identifies the queued command, not a
completed probe. Results arrive asynchronously in device monitoring
under ``network_probes[id]``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | No | Action arguments. For network_probe use {'kind': 'ping'&#124;'dns'&#124;'tcp'&#124;'http', 'target': hostname_or_ip}; optional count (1-10), timeout_s (1-15), port (1-65535, required for tcp, allowed for http), and scheme ('http'&#124;'https', http only). Use a hostname or IP, not a URL. No other probe fields are accepted. |
| `action` | string | Yes | Command action, e.g. 'restart', 'pause_stream', 'resume_stream', 'trigger_stream', 'livesample', 'restart_poe_port', 'enumerate_cameras', 'network_probe'. |
| `device_id` | string | Yes | Device id |

### Devices set service version

**Slug:** `ROBOFLOW_MCP_DEVICES_SET_SERVICE_VERSION`

Pin one service's version without replacing the rest of the config.

Requires the ``device:update`` scope. Respects the maintenance window
and queued changes. Returns ``{success, deferred}``; success means the
config was saved, not that the device installed the version.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image` | string | Yes | The service's current image, including any queued update to it (devices_get_config shows both). A different image or a removed service returns 409. |
| `service` | string ("inference" | "manager") | Yes | Service to pin. |
| `version` | string | Yes | Docker tag to run, e.g. '1.2.3'. |
| `device_id` | string | Yes | Device id |

### Devices snooze alerts

**Slug:** `ROBOFLOW_MCP_DEVICES_SNOOZE_ALERTS`

Snooze the device's health alerts for one day.

Requires the ``device:update`` scope. Returns
``{deviceId, alerts_snoozed_until}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

### Devices streams capture frame

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_CAPTURE_FRAME`

Capture the stream's latest frame for a project.

When the response has ``status="screening"``, the frame is held for an
upload screening verdict and is not yet in the project. The returned
project details identify the requested destination, not a frame ready
to open or use. Otherwise the frame is added to the project.

Requires ``device:read`` plus ``image:create`` on a credential not
limited to project groups. Workspace, device, or stream privacy
restrictions return 403 with ``error_type=CAMERA_STREAM_DISABLED``;
other 403 responses can indicate missing upload permission.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `stream_id` | string | Yes | Stream id |
| `frame_type` | string | No | 'live' (default) or the last 'inference' frame. |
| `project_id` | string | Yes | Project to add the frame to |

### Devices streams create

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_CREATE`

Create a stream on a device through the ``add_stream`` command.

Requires the ``device:update`` scope. On V2 devices the platform
applies this as a config update (``status: "applied"``, no command id)
or stages it for production approval (``status: "staged"``). An applied
stream shows in ``devices_streams_list`` as
``provisioning`` until the device reports it running. The Workflow
may write to external integrations once the stream runs.

For a direct Asset Library video stream on a supported edge release,
use ``asset://<finalVideoId>`` as video_reference. Poll
video_upload_status until ``uploaded`` and take the final videoId from
that response, which can change after deduplication. The caller needs
image:read and access to that video; the device API key needs image:read
and access to its folder. For nearby-claimed runtime keys, use the RTSP
Simulator. Direct playback needs network access for its first download,
enough disk space, and a video within the device cache limit (1 GiB by
default, set by ASSET_VIDEO_CACHE_MAX_BYTES). Use the reference directly
in the stream, not in video_sources. RTSP Simulator remains an option.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `fps` | string | No | Max frames per second to process. |
| `mode` | string | No | 'triggered' runs the workflow only on devices_streams_trigger; default is continuous processing. |
| `name` | string | Yes | Stream name. Becomes the stream's key in the device config, so it must not collide with an existing stream on the device. |
| `device_id` | string | Yes | Device id |
| `workflow_id` | string | Yes | Workflow id the stream runs on each frame |
| `workspace_name` | string | No | Workspace the workflow belongs to. Defaults to the calling workspace. |
| `video_reference` | string | Yes | Video source: asset://<finalVideoId> for a directly streamed uploaded Asset Library video on a supported edge release, an RTSP/HTTP URL, or a camera reference such as a device index or discovered-camera reference from devices_get_snapshot. Prefer credential-free references: credentials embedded in an RTSP URL are stored in the device config. |
| `workflow_version_id` | string | No | Pin the stream to a specific workflow version. Omit to track the latest published version. |
| `workflow_input_params` | string | No | Workflow input parameter values. Default {}. |

### Devices streams delete

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_DELETE`

Remove a stream's state document.

Requires the ``device:update`` scope. Remove the stream from the
device config too (``devices_update_config``), or the device
recreates it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `stream_id` | string | Yes | Stream id |

### Devices streams get

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_GET`

Get a single stream by id.

Returns the Stream object. Streams that exist only in the device
config are returned as synthesized ``provisioning`` entries rather
than 404; 404 only if the stream exists neither live nor in config.
Includes structured ``error_code``, ``error_message``, and
``error_retryable`` alongside the legacy ``error`` text.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `stream_id` | string | Yes | Stream id |

### Devices streams list

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_LIST`

List streams configured on the device.

Returns a list of Stream objects, including streams that exist only
in the device config and have not been reported by the device yet
(``status: "provisioning"``, ``provisioning: true``). ``mode`` is
``"triggered"`` for trigger-driven streams, ``"continuous"``
otherwise. Credential-bearing fields (URL userinfo, ``password``,
``credential``, etc.) are redacted from the ``source`` and
``configured_source`` fields.

``id`` is the platform stream record, while ``pipeline_id`` is the
runtime pipeline identifier. Use both values from the same object
when pausing or resuming. Structured ``error_code``,
``error_message``, and ``error_retryable`` describe the latest
status-event failure; null means the field was not reported.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Devices streams pause

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_PAUSE`

Request a pause of a running device stream without removing its config.

``pipeline_id`` targets the edge pipeline. Pass ``stream_id`` from the
same Stream object when it is a platform record; omit it for a
``provisioning`` entry, whose id is only the stream name.
Returns ``{id}`` for the queued command, not completed execution.
Read ``devices_streams_get`` afterward to confirm the status.
Undelivered commands expire after 5 minutes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `stream_id` | string | No |  |
| `pipeline_id` | string | Yes | Exact pipeline_id from devices_streams_list or devices_streams_get. Pass it verbatim, including any percent escapes; do not decode it. |

### Devices streams resume

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_RESUME`

Request that a paused device stream resume processing.

``pipeline_id`` targets the edge pipeline. Pass ``stream_id`` from the
same Stream object when it is a platform record; omit it for a
``provisioning`` entry, whose id is only the stream name.
Returns ``{id}`` for the queued command, not completed execution.
Read ``devices_streams_get`` afterward to confirm the status.
Resuming a configured Workflow can execute external actions.
Undelivered commands expire after 5 minutes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `stream_id` | string | No |  |
| `pipeline_id` | string | Yes | Exact pipeline_id from devices_streams_list or devices_streams_get. Pass it verbatim, including any percent escapes; do not decode it. |

### Devices streams sample frame

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_SAMPLE_FRAME`

Look at what a device camera sees right now.

Returns the frame as an image plus ``image_url``: a signed URL, valid
for an hour, that Workflow and model tools accept as an image input.
Use it to design a Workflow against the real scene, then run the
Workflow on ``image_url`` to check it before deploying to the device.

Requires the ``device:update`` scope: when no frame is under 10s old
the platform asks the device to start sending preview frames and
waits. 504 means the device sent none in time (offline or stalled
stream). Workspace, device, or stream privacy restrictions return
403 with ``error_type=CAMERA_STREAM_DISABLED``; other 403 responses
can have different permission causes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `stream_id` | string | Yes | Stream id, from devices_streams_list |
| `timeout_seconds` | string | No | How long the platform waits for the device to send a frame when none is current: 0-45, default 30. |

### Devices streams terminate

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_TERMINATE`

Remove a stream from a device permanently.

Requires the ``device:update`` scope. On V2 devices the stream is
removed from the device config at once (``status: "applied"``), or
the removal is held for production approval (``status: "staged"``).
Otherwise a ``terminate_stream`` command is queued, and the device
targets the pipeline by ``pipeline_id``. To stop
processing temporarily use ``devices_streams_pause``.
``devices_streams_delete`` removes only monitoring state, so a
configured stream comes back after it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `force` | string | No | When the stream is not in a V2 device config, also clear its monitoring record, frames and HLS objects. A configured V2 stream is cleared regardless. |
| `device_id` | string | Yes | Device id |
| `stream_id` | string | No |  |
| `pipeline_id` | string | Yes | Exact pipeline_id from devices_streams_list or devices_streams_get. Pass it verbatim, including any percent escapes; do not decode it. |

### Devices streams trigger

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_TRIGGER`

Request one Workflow execution on a trigger-driven device stream.

The platform resolves the Workflow and workspace from the stream
or device config. Camera capture must be allowed by workspace,
device, or stream settings. A privacy refusal returns 403 with
``error_type=CAMERA_STREAM_DISABLED``. Queued capture commands are
checked again before delivery, so a later opt-out can prevent execution.
The Workflow may write to external integrations, so do not retry
automatically. Returns ``{id}`` for the queued command, not
inference output or proof of completion. Follow up with
``devices_get_events`` and ``devices_streams_get`` for status.
Undelivered commands expire after 5 minutes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `stream_id` | string | No |  |
| `pipeline_id` | string | Yes | Exact pipeline_id from devices_streams_list or devices_streams_get. Pass it verbatim, including any percent escapes; do not decode it. |

### Devices streams update

**Slug:** `ROBOFLOW_MCP_DEVICES_STREAMS_UPDATE`

Merge fields into a stream's ``data`` map.

Requires the ``device:update`` scope. To change what the stream runs,
edit ``stream`` in the device config with ``devices_update_config``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | object | Yes | Stream data fields to merge, such as name, fps, videoReference, workflowId, workflowVersionId, workflowInputParams or mode. Unknown fields are rejected. |
| `device_id` | string | Yes | Device id |
| `stream_id` | string | Yes | Stream id |

### Devices update

**Slug:** `ROBOFLOW_MCP_DEVICES_UPDATE`

Rename a device, edit its environment variables, or set its workflow,
live sampling or production mode.

Requires the ``device:update`` scope. For runtime configuration
(streams, services, versions) use ``devices_update_config``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `device_id` | string | Yes | Device id |
| `device_name` | string | No | New device name. |
| `workflow_id` | string | No | Device-level workflow_id metadata. It does not change what streams run; set config.stream.<id>.workflow_id with devices_update_config for that. |
| `production_mode` | string | No | Mark the device as production. |
| `livesampling_enabled` | string | No | Turn live sampling on or off; it expires after 5 minutes. |
| `environment_variables` | string | No | Environment variables to set; a null value deletes that variable. Variables you omit are kept. |

### Devices update config

**Slug:** `ROBOFLOW_MCP_DEVICES_UPDATE_CONFIG`

Update the device's runtime configuration.

Requires ``device:update``. Uses JSON Merge Patch, so a small
nested change preserves sibling settings; null explicitly deletes
a key. Set ``config.camera_stream_disabled`` to true to stop live
camera viewing on this device, or set
``config.camera_stream_disabled_streams`` to an array of stream names
to stop viewing only those streams. The list is on ``config``, not
inside ``config.stream.<name>``; arrays replace the whole list.
Pending opt-outs restrict viewing immediately, including changes
awaiting production approval or a maintenance window. A queued
re-enable does not lift an active restriction until applied.
Workspace-wide viewing is controlled in the session-authenticated
web setting; its ``/query/workspace/updateCameraStreamDisabled`` route
is unavailable to MCP credentials.

Deployment-affecting changes wait for the next maintenance
window when one is configured and not currently active. Schedule,
timezone, and device name/type changes can apply immediately when
approval is not required.

Returns ``{success, staged: true, configProposal}`` when a production
change awaits approval. This does not change live config. Otherwise
returns ``{success, config, deferred}``; check ``deferred`` and
``config.pendingUpdates`` before claiming the change is live.
Unapproved changes stay held through maintenance windows. MCP cannot
approve a proposal.
``force_apply`` and ``immediate_delta`` are query-only controls,
not fields in the config payload. Enabling Vision Events backup
additionally requires the platform's ``vision-events:write`` scope.

On supported edge releases, an uploaded workspace Asset Library video
can be used directly: set config.stream.<stream-name>.video_reference to
asset://<finalVideoId>, alongside its workflow_id and workspace_name.
Do not put an asset reference in config.video_sources or use a signed
download URL as the stream reference. The caller needs image:read and
access to the uploaded video; the device API key also needs image:read
and access to its folder. For nearby-claimed runtime keys, use the RTSP
Simulator. Direct playback needs network access for its first download,
enough disk space, and a video within the device cache limit (1 GiB by
default, set by ASSET_VIDEO_CACHE_MAX_BYTES). Check staged,
deferred, and pendingUpdates before treating the stream as active.

The RTSP Simulator remains an option. For either path, call video_upload
without project_id, PUT the bytes, and poll video_upload_status until
"uploaded". Use the final videoId from that status response, which may
differ after deduplication. For the simulator path, read the effective
device config with devices_get_config before patching. Select an existing
RTSP Simulator service or add one under services.<name>. For a new service,
choose free host RTSP and web ports across published ports and service
*PORT environment variables, including resolved $refs. Use the approved
versioned simulator image tag in config.version.<name>, and set the
service tag to {"$ref":"#/config/version/<name>"}; do not guess a tag.
Use the image repo.roboflow.com/roboflow-edge/rtsp-simulator,
restart="unless-stopped", and the persistent volume
/var/lib/rfdm/rtsp-simulator/data:/data. Set RTSP_PORT and WEB_PORT
to the selected ports and give it
ROBOFLOW_API_KEY and API_BASE_URL environment variables as references
to #/roboflow_api_key and #/api_base_url. Set RTSP_SIMULATOR_CONFIG to
a JSON string with source="asset_library", the workspace slug, the final
video_id, and upload_settings and stream_settings. For example the
simulator defaults are target_fps=null, crf_quality=23, max_width=null,
max_bitrate_kbps=5000, buffer_size_kb=3000, max_delay_ms=500.
In the same config patch, set config.stream.<stream-name>.video_reference
to rtsp://127.0.0.1:<host-RTSP-port>/stream, with its workflow_id and
workspace_name. Loopback works only when inference uses host networking.
Check staged, deferred, and pendingUpdates before treating the stream
as active.

New or changed ``config.kiosk.outputs`` selections require the
workspace display controls feature and a fresh report from that
device showing a connected, configurable connector. An explicit mode
id must be selectable in that report; ``auto`` also requires a fresh
compatible report. Removing an
existing connector override with null returns it to automatic mode
and remains possible without the feature or a fresh report. MCP
cannot read the display report because its endpoint requires a
Firebase session cookie. Choose a connector and mode from the
current report in Device Manager.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `config` | object | Yes | JSON Merge Patch: nested objects merge recursively, omitted keys are preserved, null removes a key, and arrays replace the whole array. Send only the fields you intend to change. By default the patch merges into active config plus queued pending changes. Set config.kiosk.outputs.<connector>.mode to a selectable mode id or 'auto'; set the connector to null to remove its override. Do not write pendingUpdates or configProposal directly. |
| `device_id` | string | Yes | Device id |
| `force_apply` | string | No | Request immediate application of the effective config, including queued changes. Production approval can still block this request. Mutually exclusive with immediate_delta=true. |
| `immediate_delta` | string | No | Request immediate application of only this patch while preserving unrelated queued changes. Use for an operational change that must not deploy pending service updates. Production approval can still block this request. Mutually exclusive with force_apply=true. |

### Devices update default config

**Slug:** `ROBOFLOW_MCP_DEVICES_UPDATE_DEFAULT_CONFIG`

Replace the workspace default device config patch.

Requires the ``device:update`` scope. The merged result is validated
against the RFDM config schema (400 with ``details`` on failure).
New devices start from this config except display mode selections.
The workspace default patch may retain or remove existing
``config.kiosk.outputs`` selections, but cannot add or change them.
Choose display modes on each device after it reports its monitors.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `patch` | object | Yes | The workspace's whole patch over the base default config. It replaces the existing patch; read devices_get_default_config first. |

### Device groups add devices

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_ADD_DEVICES`

Add devices to a fleet device group; other members are kept. Requires ``device:update``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_id` | string | Yes | Group id |
| `device_ids` | array | Yes | Device ids to add; at least one. |

### Device groups create

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_CREATE`

Create a fleet device group with at least one member. Requires ``device:update``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Group name, unique in the workspace |
| `color` | string | No | Display color. |
| `device_ids` | array | Yes | Initial member device ids; at least one. |
| `description` | string | No | Description. |

### Device groups delete

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_DELETE`

Delete a fleet device group; its devices are kept. Requires ``device:update``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_id` | string | Yes | Group id |

### Device groups get

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_GET`

Get one fleet device group. Requires ``device:read``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_id` | string | Yes | Group id |

### Device groups get config

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_GET_CONFIG`

Get a fleet device group's config patch. Requires ``device:read``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_id` | string | Yes | Group id |

### Device groups list

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_LIST`

List the workspace's fleet device groups. Requires ``device:read``.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Device groups remove devices

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_REMOVE_DEVICES`

Remove devices from a fleet device group; the devices are kept. Requires ``device:update``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_id` | string | Yes | Group id |
| `device_ids` | array | Yes | Device ids to remove; at least one. |

### Device groups update

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_UPDATE`

Update a fleet device group. Requires ``device:update``.

``device_ids`` replaces the whole membership. To add or remove single
devices use ``device_groups_add_devices`` or ``device_groups_remove_devices``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New name. |
| `color` | string | No | New display color. |
| `group_id` | string | Yes | Group id |
| `device_ids` | string | No | Full member list; replaces the current members. |
| `description` | string | No | New description. |

### Device groups update config

**Slug:** `ROBOFLOW_MCP_DEVICE_GROUPS_UPDATE_CONFIG`

Replace a fleet device group's config patch. Requires ``device:update``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_id` | string | Yes | Group id |
| `config_patch` | object | Yes | The group's whole config patch; replaces the existing one. |

### Folders list

**Slug:** `ROBOFLOW_MCP_FOLDERS_LIST`

List the workspace folders visible to this credential.

Returns ``{ folders: [{id, name, parent_id, child_ids, projects, external_id}, ...] }``.
``projects`` holds the URLs of the projects in the folder; ``parent_id`` and
``child_ids`` describe the folder tree. ``child_ids`` names only folders this
credential can list, but ``parent_id`` is the platform's value, so the top of a
folder-scoped credential's subtree can point at a folder that is not in the list.

A folder-scoped credential sees only its own folders. An empty list means no
folders are visible to this credential, not necessarily that the workspace has
none. Pass ``folder_id`` to fetch a single folder; an unknown id also yields an
empty list.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `folder_id` | string | No | Return only this folder (its platform folder id). Omit to list every folder visible to the credential. |

### Get aws storage credential setup link

**Slug:** `ROBOFLOW_MCP_GET_AWS_STORAGE_CREDENTIAL_SETUP_LINK`

Get a Roboflow app link to set up an AWS S3 storage credential.

This tool does not create a credential. It returns
``manual_entry_required`` with a ``url`` for the Roboflow form, a
``docs_url`` for prerequisites, and ``aws_setup`` guidance for the
correct AWS account. Only the non-secret name, credential_type, and
description are passed here. The user enters AWS access keys or role
details in the Roboflow app, never in chat or this tool.

IAM uses AWS access keys; AssumeRole uses an AWS IAM role. Recommend a
credential dedicated to Roboflow with read-only or bucket-scoped access.
After the user completes the form, use credentials_list to find its id.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Display name for the credential |
| `description` | string | No | Optional description |
| `credential_type` | string ("IAM" | "AssumeRole") | Yes | Credential type. Both are for AWS/S3 buckets: IAM (AWS access keys) or AssumeRole (AWS IAM role). |

### Images add to project

**Slug:** `ROBOFLOW_MCP_IMAGES_ADD_TO_PROJECT`

Add existing workspace Asset Library images or videos to a project (async).

Use for sources already in the workspace: media_upload_finalize results
(`sourceId` / `videoAssetId`), cloud-storage datasource mirrors, or images
in another project. A newly uploaded video is addable only after ingestion;
until then this returns 404 "Image not found in workspace", so retry later.
If it still 404s after a few minutes, ingestion failed or merged it: tell the user.
Find ids or build the filter with images_workspace_search.
To upload new local images, prefer image_upload_files when the host can
supply them in its files input; if you would have to invent download_url or
file_id, use image_upload if the
client can ZIP and PUT to storage. For videos, prefer image_upload_files
only for video-only projects when the host can supply the selected files in its files input. If you would have to invent
download_url or file_id, use the signed-URL fallback.
For other project types, use video_upload; also use it when host transfer
cannot handle the video. video_upload requires a client that can PUT bytes
to the signed URL. If storage is unreachable, use the web uploader.

The source stays owned by the workspace: the project gets an association,
not a copy. Added sources land in one new batch (`batchId`).
Images and videos cannot be added together; the task fails on a mix.
API keys and OAuth tokens restricted to folders get a 403.

Returns `{ taskId, projectId, selectionMode, imageCount?, url, ... }`. Poll
async_tasks_get(task_id) until status is `completed` or `failed`. A completed
result has `batchId` (null when nothing new was added), `imagesLinked`,
`imagesSkipped` (already in the project, removed, or filtered out by media type)
and `annotationsCopied`.

Added sources are not in the Dataset yet, so training cannot use them.
Sources without labels: annotate them with add_to_dataset=true on
annotations_save (images) or video_segments_annotate (Action Recognition videos).
Sources that arrive labeled (copy_annotations_from_project_id, or labels the
project already shares): create a job from `batchId` with annotation_jobs_create,
then annotation_jobs_accept_into_dataset.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | No | Structured RoboQL filter selecting every matching source (e.g. 'tag:review', 'project:my-project metadata:camera=cam1'). Free-text semantic and visual-similarity search are not supported. '*' selects the whole Asset Library; use it only when the user asks for that. Use this or image_ids, not both. |
| `image_ids` | string | No | Asset Library source ids to add (1 to 500). Image ids or video ids (videoAssetId). Use this or query, not both. |
| `project_id` | string | Yes | Target project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `media_types` | string | No | Media types the query resolves. Default: ['video'] for video-only projects (e.g. Action Recognition), ['image'] otherwise. Only valid with query; each image id carries its own type. |
| `source_project_id` | string | No | Project (slug or id) whose Dataset limits the query. Images only in its unassigned or annotating batches do not match; put 'project:<slug>' in query to match every member. Only valid with query. |
| `copy_annotations_from_project_id` | string | No | Project (slug or id) to copy existing annotations from, for added sources that have none in the target. |

### Images batch update metadata

**Slug:** `ROBOFLOW_MCP_IMAGES_BATCH_UPDATE_METADATA`

Batch-update metadata and tags on multiple images (async).

Each item in updates must contain an 'imageId' and at least one
mutation bucket. Same conflict rules as the single-image endpoint.

Returns { taskId, url } with status 202. Poll completion via
async_tasks_get with the returned taskId.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `updates` | array | Yes | List of update objects, each with 'imageId' (required) and at least one of: 'metadata', 'removeMetadata', 'addTags', 'removeTags'. Max 1000 items. |

### Images screening status

**Slug:** `ROBOFLOW_MCP_IMAGES_SCREENING_STATUS`

Read what happened to an image held by upload screening.

Returns the image ID and status: pending, passed, redacted, rejected,
failed or duplicate. A failure may include a reason code. A duplicate
may include resolvedId when you can see the resulting Source. This
screening outcome does not establish Dataset readiness: pending images
are still held, and rejected or failed images do not enter the project.
For an annotation accepted while held, check this verdict and resolvedId
for duplicates; a rejected or failed image loses its deferred annotations.
A 404 can mean the image was never held, does not exist, or is inaccessible.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image_id` | string | Yes | ID returned for an image upload held for screening. |

### Images search

**Slug:** `ROBOFLOW_MCP_IMAGES_SEARCH`

Search images in one project by what they show, with optional filters.

query is semantic search: results are ranked by how well they match the
text, but the query does not narrow them, so total does not change with it.
Narrow results with tag, class_name, in_dataset, batch, batch_id,
annotation_job and annotation_job_id. There is no split filter here.

For RoboQL (split:, metadata:, filename:, NOT, OR, and so on), use
images_workspace_search with project:<slug> in the query, e.g.
'project:my-project split:valid'.

Returns { offset, total, results }.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tag` | string | No | Filter results by tag |
| `batch` | string | No | true keeps only images that are in a batch. false does not filter. |
| `limit` | integer | No | Maximum number of results (the API returns at most 250) |
| `query` | string | No | Plain-language description of the images to find (e.g. 'forklift near a loading dock'). It ranks results by similarity and does not filter them, so RoboQL such as 'split:valid' has no effect here. Leave empty to list images using only the filters. |
| `fields` | string | No | Fields to include in each result. Defaults to id, annotations, labels, split and owner. Include 'url' to access the image directly. Filters such as in_dataset or batch are parameters of this tool, not fields. |
| `offset` | integer | No | Result offset for pagination |
| `batch_id` | string | No | Filter to a specific batch id |
| `class_name` | string | No | Filter results by class name |
| `in_dataset` | string | No | true keeps only images in the project's Dataset. false does not filter: it is the same as leaving this out. For images that are not in the Dataset, use images_workspace_search with 'project:<slug> NOT dataset:<slug>'. |
| `like_image` | string | No | Find images visually similar to this image id/name |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `media_types` | string | No | Media to include: 'image', 'video', or both. Defaults to images only. |
| `annotation_job` | string | No | true keeps only images assigned to an annotation job. false does not filter. |
| `annotation_job_id` | string | No | Filter to a specific annotation job id |

### Images update metadata

**Slug:** `ROBOFLOW_MCP_IMAGES_UPDATE_METADATA`

Update metadata and tags on a single image. Metadata and tags can be useful to find images later in the platform.
Common metadata include photo location, camera, date.

Provide at least one of: metadata, remove_metadata, add_tags, remove_tags.
The same key cannot appear in both metadata and remove_metadata;
the same tag cannot appear in both add_tags and remove_tags.

Returns { success: true } on success.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `add_tags` | string | No | Tags to add (alphanumeric, hyphens, underscores; max 64 chars each) |
| `image_id` | string | Yes | Source image ID to update |
| `metadata` | string | No | Key-value pairs to set on user_metadata (values can be strings, numbers, or booleans) |
| `remove_tags` | string | No | Tags to remove |
| `remove_metadata` | string | No | Metadata keys to remove |

### Images workspace search

**Slug:** `ROBOFLOW_MCP_IMAGES_WORKSPACE_SEARCH`

Search images across the entire workspace using RoboQL.

The workspace is determined automatically from the API key —
no workspace or project parameter is needed. Just provide a query.

Use RoboQL syntax to filter by project, Dataset membership, split, class,
tag, metadata, and more; combine filters with AND, OR, NOT and parentheses.
Quote filter values that contain wildcards or spaces, for example
``filename:"frame_*"``. For compatibility, clearly unquoted filename
wildcards such as ``filename:frame_*`` are quoted before the query is sent.
This is the tool for split filters and other RoboQL queries scoped to one
project: add project:<slug>.
Request the `url` field when you need a direct image URL.
Returns results with a continuationToken for pagination.
To put results into a project, pass their ids (or the same structured
query and media_types) to images_add_to_project.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | No | RoboQL query string; leave empty to list all images. Examples: 'tag:review', 'project:my-project split:valid', 'project:my-project metadata:camera=cam1', or 'project:my-project NOT dataset:my-project' (images in the project but not in its Dataset). |
| `fields` | string | No | Fields to include in each result. Include 'url' to access the image directly. |
| `page_size` | integer | No | Maximum number of results per page |
| `media_types` | string | No | Media to include: 'image', 'video', or both. Defaults to images only. |
| `continuation_token` | string | No | Token from a previous response to fetch the next page |

### Image upload

**Slug:** `ROBOFLOW_MCP_IMAGE_UPLOAD`

Prepare a signed URL for uploading a zip of images, annotations or MP4/MOV videos.

Use image_upload_files when the host supplies the selected files in its files
input. If you would have to invent download_url or file_id, use this
signed-URL flow instead when the client can ZIP and PUT the files.

Use this fallback only when host-assisted file transfer is unavailable or
cannot handle the selected files, and the client can zip them and HTTP PUT
to the signed URL. If its sandbox cannot reach storage, do not keep retrying
the PUT; use host-assisted transfer or direct the user to the web uploader.
This tool does not read, zip, or upload files. To mirror images from cloud
storage (S3/GCS), use the datasource tools.

Returns a signed upload URL, task ID, and client-side instructions.
File bytes are transferred by the client in this flow.

Requires the project slug, plus optional split, batch name, tags and
annotation_overwrite. Local file paths are used by the client after this
tool returns, not passed here.

Remaining steps after this returns (detailed in the response instructions):
1. Zip the images and any annotation files (even one image → zip). Paths inside
   the zip set splits: train/, valid/ and test/ folders override the split
   argument per image.
2. HTTP PUT the zip to signedUrl.
3. Poll image_upload_status(task_id) every few seconds until completed or failed.

Videos in ZIPs require a video-only project (such as Action Recognition).
Poll video_upload_status for every result.videoIds entry after ZIP processing;
use the final videoId from each uploaded response. result.videoIds stops at 100 IDs;
if result.videosStaged exceeds that list length or failedChunks > 0, counts may
be incomplete. Find remaining videos with images_search(project_id,
media_types=["video"]), poll video_upload_status for unverified videos,
and report a partial import if they cannot all be accounted for. Image projects skip videos,
and video-only projects skip images. Inspect warnings and errors, even when
the ZIP task completed. For one raw video up to 3 GB, use video_upload.

Annotation files in the zip are imported with the same parser as the web
uploader: COCO JSON (e.g. one _annotations.coco.json per split folder), YOLO
TXT (with data.yaml or classes.txt for class names), Pascal VOC XML, CreateML
JSON, CSV, and the other formats it accepts. Annotations are matched to images
by file name. In classification projects, an image's parent folder is its
class (cat/img1.jpg).

Check result.screening after polling: it is included in result.uploaded,
and counts images held for a screening verdict. ZIP completion does not
make those images available in the project or Dataset. Passed or redacted images
become available later; rejected or failed images do not. The ZIP result
does not report their final verdicts.
result.annotated may include annotations accepted for held images; it
does not prove they reached a Source. Rejection or failure discards them.
For images not held for screening, annotations go straight into the
Dataset (or a review job when annotation review is on); images without
annotations land in a batch to label with
annotations_save and add_to_dataset=true before training.

An image already in the project counts as a duplicate and is not stored again,
but its annotation from the zip is still saved. An image that already has an
annotation in this project's annotation group (for example from another
project in the workspace that uses the same group) keeps it and is listed in
annotationErrors, unless annotation_overwrite is true.
Up to 2 GB / 10k files. Signed URL expires in 1 hour.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `split` | string ("train" | "valid" | "test") | No | Fallback split, used only for images whose path inside the zip has no split folder. A train, valid or test folder (also training, validation, val or testing) anywhere in an image's path overrides this per image. |
| `tag_names` | string | No | Tags to attach to every uploaded image or video |
| `batch_name` | string | No | Name for the batch that holds images without annotations and for the annotation job created for images with annotations. Defaults to 'Uploaded via API'. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `business_context` | string | No | Brief description of the business problem this upload addresses, if the user has shared one. |
| `annotation_overwrite` | boolean | No | Replace annotations that images already have in this project with the ones in the zip. Without it, such an image keeps its annotation and is listed in annotationErrors as 'Image was already annotated'. Classification labels are always replaced. |

### Image upload files

**Slug:** `ROBOFLOW_MCP_IMAGE_UPLOAD_FILES`

Upload images or MP4/MOV videos into a project through the host's file transfer bridge.

Use this when the host supplies the selected files in the files input,
including when it exposes local paths and transfers them for you. If you
would have to invent download_url or file_id, use image_upload or
video_upload instead when the client can PUT the bytes. Do not invent
file references or put file bytes in tool arguments.

The Roboflow server downloads the supplied files and uploads them as one
zip. No terminal ZIP or PUT is needed, including when the code sandbox
cannot reach storage. Fall back to image_upload only when the bridge is
unavailable or cannot handle the selected files, and the client can zip
and HTTP PUT them to storage. An authentication, validation, or server
error does not by itself mean the bridge is unavailable.

For image projects, pass images plus any annotation files, matched to images by
file name (COCO JSON, YOLO TXT with data.yaml or classes.txt, Pascal VOC XML,
CreateML JSON, CSV), or one zip on its own. A zip keeps its folders, so
train/, valid/ and test/ folders set each media file's split. Up to 100 files
and 1 GB total per call; send larger file counts as one zip within that limit.

For video-only projects (such as Action Recognition), pass MP4/MOV videos
or a zip containing them. Videos remain native videos, not extracted frames.
Image projects skip videos; video-only projects skip images, with warnings.
Do not treat a mixed batch as fully imported without checking those warnings.
When the host cannot transfer videos, use video_upload for a raw video or
image_upload for a ZIP, only if the client can PUT to storage.

Returns a taskId once the files are uploaded. Poll
image_upload_status(task_id) every few seconds until it is completed or
failed. Inspect uploadErrors, annotationErrors and warnings. For videos,
ZIP completion only means staging: then poll video_upload_status for every
result.videoIds entry until uploaded or failed. Use the final videoId from
each uploaded response (deduplication can change it). result.videoIds stops at
100 IDs while result.videosStaged counts videos from successful chunks. If videosStaged
exceeds the returned list length or failedChunks > 0, counts may be incomplete.
Find remaining videos with images_search(project_id, media_types=["video"]),
poll video_upload_status for unverified videos, and report a partial import
if they cannot all be accounted for. Check result.screening: it is included
in result.uploaded but those images await a verdict, so ZIP completion does
not mean they are available in the project or Dataset. Passed or redacted images
become available later; rejected or failed images do not.
result.annotated may include annotations accepted for held images; ZIP
completion does not prove they reached a Source. Rejection or failure
discards them. For images not held for screening, annotations go
straight into the Dataset; images without them land in a batch to label
with annotations_save.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `files` | array | Yes | User-selected images plus annotation files, MP4/MOV videos for a video-only project, or a single zip of them. Supply files through the host's file transfer bridge using its exposed schema. |
| `split` | string ("train" | "valid" | "test") | No | Split for loose media. Inside a zip, a train, valid or test folder in a media file's path overrides this per file. |
| `tag_names` | string | No | Tags to attach to every uploaded image or video |
| `batch_name` | string | No | Name for the batch that holds images without annotations and for the annotation job created for images with annotations. Defaults to 'Uploaded via API'. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `business_context` | string | No | Brief description of the business problem this upload addresses, if the user has shared one. |
| `annotation_overwrite` | boolean | No | Replace annotations that images already have in this project with the uploaded ones. Without it, such an image keeps its annotation and is listed in annotationErrors as 'Image was already annotated'. |

### Image upload status

**Slug:** `ROBOFLOW_MCP_IMAGE_UPLOAD_STATUS`

Check the status of an image or video ZIP upload task.

Use after the zip has been PUT to the signed URL (image_upload step 2), or
after image_upload_files returns.
Poll every 3–5 seconds until status is completed or failed.

Returns status (created, running, completed or failed), progress, and, once
finished, a result with uploaded, duplicates and annotated image counts,
videosStaged and videoIds, plus uploadErrors, annotationErrors and warnings
(for example annotations that matched no image, or ignored files). Error lists stop at 100
entries. Screening appears when positive and is included in result.uploaded, but those
images are held pending a verdict. A completed ZIP task does not make them
available in the project or Dataset. Passed or redacted images become available
later; rejected or failed images do not. This response has no final
per-image screening verdicts. Preserve and report the screening count
separately from images ready for use. result.annotated may include
annotations accepted for held images; ZIP completion does not prove they
reached a Source. Rejection or failure discards them. When screening is
absent, ordinary upload behavior applies.
A completed ZIP task does not mean its videos finished ingesting:
poll video_upload_status for every result.videoIds entry until uploaded or
failed, even when the ZIP task failed after staging some videos. Use the
final videoId from each uploaded response. result.videoIds stops at 100 IDs,
while result.videosStaged counts videos from successful chunks. If videosStaged exceeds
the returned list length or failedChunks > 0, counts may be incomplete. Find
remaining videos with images_search(project_id, media_types=["video"]), poll
video_upload_status for unverified videos, and report a partial import if
they cannot all be accounted for. Check errors and warnings before
reporting success; image projects skip videos and video-only projects skip images.

Status stays "created" until the first chunk finishes; progress
gets a total as soon as processing starts. If the task is still "created"
with no progress 10 minutes after a successful PUT, the zip was not
processed (for example it held no supported media files): stop polling, fix
the input files and retry using the upload selection rules below.

The zip is processed in chunks. If any chunk fails, status is "failed",
failedChunks is above 0, and uploadErrors holds an entry whose path names the
chunk (e.g. "chunk-0"). That chunk's images may already be stored without
their annotations, and its counts are missing from the totals. Re-uploading
the same files is safe and repairs this: stored
images come back as duplicates and their missing annotations are saved.
Images whose annotations were saved the first time are then listed in
annotationErrors as "Image was already annotated", which is expected.

For retries, use image_upload_files when the host supplies fresh selected files
in its files input. If you would have to invent download_url or file_id,
use the signed-URL fallback instead. Use image_upload only when host-assisted transfer is unavailable or
cannot handle those files, and the client can ZIP and PUT to storage.
A failed import does not by itself mean the file transfer bridge is
unavailable. If sandbox networking blocks storage, use host-assisted
transfer or the web uploader instead of retrying signed PUTs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `task_id` | string | Yes | Task ID from the image_upload or image_upload_files response |

### List skills

**Slug:** `ROBOFLOW_MCP_LIST_SKILLS`

Discover Roboflow workflow guidance when native skills/list is unavailable.

Use for Roboflow workflows and interactive apps. Returns descriptions and
file manifests, not full instructions.
Read the relevant SKILL.md with resources/read, or read_skill when the client
cannot read resources. Follow nextCursor to list additional skills.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `cursor` | string | No | nextCursor from a previous listing |

### Media analyze

**Slug:** `ROBOFLOW_MCP_MEDIA_ANALYZE`

Analyze an image or short video with a vision model to understand its contents.

Returns a structured analysis: a summary, the distinct objects present with
approximate counts, the best-fitting CV task (detection, segmentation,
classification, OCR, tracking...), candidate class names, whether those classes
fall within the 80 COCO classes (drives model-family selection), motion notes
for video, and workflow recommendations.

Pass any public HTTPS URL directly — image results from images_search,
images_workspace_search, or universe_dataset_images_search already include a
usable `url` field. For a local file on the user's machine, call media_upload
first and analyze the URL it produces.

This is a stateless one-shot primitive: nothing is recorded in a conversation.

Costs workspace credits (one vision-model call per invocation). Storage allows
videos up to 100 MB, but ANALYSIS is capped at ~15 MB by the vision gateway's
url fetcher; trim longer footage before analyzing.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | Public HTTPS URL of the image or video to analyze. |
| `question` | string | No | Optional focus question, phrased in the context of the user's goal. |
| `media_type` | string ("image" | "video") | No | Kind of media at the URL. |

### Media trim

**Slug:** `ROBOFLOW_MCP_MEDIA_TRIM`

Cut a clip from an Asset Library video and get an analyzable public url.

Use after media_upload_finalize returns `needsTrim: true`. The simplest call is
media_trim(video_asset_id) with no window: the server cuts the longest clip the
~15 MB analysis budget allows from the start (typically up to ~95 seconds; often
the entire video, since long windows are re-encoded, downscaled to at most
1280px, to fit). Pass start_seconds/duration_seconds only when your user cares
about a specific segment.

The response tells you exactly what happened: `clipSeconds` (what was actually
cut), `requestedSeconds`, `clamped: true` when the server shrank the window,
plus authoritative `videoDurationSeconds` and `maxClipSeconds` from the
server-side probe. Report the real clipSeconds to your user; to cover the rest
of a long video, cut the next clip at start_seconds + clipSeconds and repeat.

Only the published clip is re-encoded; the full-quality video stays untouched
in the Asset Library.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `start_seconds` | number | No | Where the clip starts, in seconds. |
| `video_asset_id` | string | Yes | The videoAssetId returned by media_upload_finalize. |
| `duration_seconds` | string | No | Clip length in seconds. Omit to cut as much as fits the analysis budget from start_seconds (the server decides the maximal window). |

### Media upload

**Slug:** `ROBOFLOW_MCP_MEDIA_UPLOAD`

Prepare a local image or video for analysis with media_analyze.

Returns a short-lived signed upload URL plus step-by-step instructions; the
upload itself completes client-side (the MCP server never receives file bytes).
After the PUT, call media_upload_finalize to validate the bytes. For images and
small videos it returns a durable `url` to pass straight to media_analyze; for
videos over the analysis budget it returns `needsTrim: true` with a
`videoAssetId`, and you call media_trim to get the analyzable clip url.

Only needed for files on the user's machine; media already reachable by an
HTTPS URL (including Roboflow-hosted images) can go straight to media_analyze.
To put a video into a project (e.g. for annotation), prefer image_upload_files
only for video-only projects when the host supplies it in the files input.
If you would have to invent download_url or file_id, use video_upload. For other project types, use video_upload because ZIP
imports skip videos. Also use video_upload when host transfer cannot handle
the video. It requires a client that can PUT bytes to the signed URL; if
storage is unreachable, use the web uploader.

Finalized images and videos are saved into the workspace Asset Library
(reusable across the workspace; re-uploading identical bytes reuses the
existing asset instead of duplicating it). The analyzable copy ends up on a
public CDN at an unguessable URL. To put a finalized image into a project,
pass its `sourceId` to images_add_to_project.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `filename` | string | No | Filename of the local file, e.g. 'floor.jpg'. |
| `media_type` | string ("image" | "video") | No | Kind of file being uploaded. |

### Media upload finalize

**Slug:** `ROBOFLOW_MCP_MEDIA_UPLOAD_FINALIZE`

Validate a staged upload (from media_upload) and publish it.

Checks the uploaded bytes match the declared media type and size limits. Images
become workspace Asset Library assets (the response includes their `sourceId`)
and return a durable public `url` to pass to media_analyze.

Videos always become Asset Library records (`videoAssetId`). Small videos also
return a durable `url` right away (`needsTrim: false`). Videos over the analysis
budget return `needsTrim: true`: call media_trim(video_asset_id) with no window
to get the maximal analyzable clip, and read the authoritative numbers from its
response. If you passed duration_seconds here, the response also includes
`maxClipSeconds` and `wholeVideoFits` (true when one clip covers the entire
video, so there is nothing to ask the user). Ask YOUR USER which segment matters
only when the video is longer than one clip can cover. The full video stays in
the Asset Library either way.

The staged object is removed whether validation passes or fails, so a failed
finalize means starting over with a fresh media_upload.

To add the finalized asset to a project, pass its `sourceId` or
`videoAssetId` to images_add_to_project. A new video becomes a Source only
after ingestion finishes (seconds to minutes); until then images_add_to_project
returns 404 "Image not found in workspace". Retry later, or look up its final
id with images_workspace_search(media_types=['video']), since ingestion can
merge identical bytes into an existing video. If it still 404s after a few
minutes, ingestion failed or merged it: tell the user instead of retrying.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `media_type` | string ("image" | "video") | No | Kind of file that was uploaded. |
| `staging_path` | string | Yes | The stagingPath returned by media_upload. |
| `duration_seconds` | string | No | Video duration in seconds, if known (e.g. from ffprobe on the local file). Enables the maxClipSeconds hint in the response for oversized videos. |

### Meta feedback send

**Slug:** `ROBOFLOW_MCP_META_FEEDBACK_SEND`

Send product feedback about Roboflow to the Roboflow team.

Records a bug report, missing-feature request, UX friction note, or
documentation issue against the current workspace. Use when the user
wants to report a problem with Roboflow or send feedback.

Returns confirmation that the feedback was recorded.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `message` | string | Yes | What happened, what was expected, or what's missing |
| `category` | string ("bug" | "missing-feature" | "ux-friction" | "docs-issue") | No | Type of feedback |
| `tool_name` | string | No | Which tool this relates to, if any |

### Meta survey opt out

**Slug:** `ROBOFLOW_MCP_META_SURVEY_OPT_OUT`

Stop asking the MCP outcome survey permanently, only when the user requests it.

This changes the preference for the signed-in user. API keys identify a
credential, not a person, so it applies to everyone sharing that key.

### Models custom weights upload guide

**Slug:** `ROBOFLOW_MCP_MODELS_CUSTOM_WEIGHTS_UPLOAD_GUIDE`

Get the recipe for uploading locally trained model weights to Roboflow.

This tool never uploads anything. Weights packaging must run on the
machine that has the checkpoint (it reads the weights file and needs
torch), and this MCP server cannot read the user's filesystem. Calling
it returns the client-side recipe: how to run the upload with the
Roboflow Python SDK on the machine where the weights live. Pass
whatever arguments you already know; the response names the matching
upload mode and echoes them back for the SDK call. Do not infer the
target project, version, or model name from the checkpoint; those come
from the user.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model_name` | string | No | Model name for a workspace upload. Ask the user for it; never invent one. |
| `model_path` | string | No | Directory containing the trained model artifacts on the machine where training ran. Optional. |
| `model_type` | string | No | Custom model type you plan to upload, e.g. 'yolov8n', 'yolov11s', 'rfdetr-base', 'yolonas', or a supported PaliGemma/Florence type. Optional. |
| `project_ids` | string | No | Target project slugs. Optional. |
| `version_number` | string | No | Dataset version for a versioned deploy. Omit for a workspace model upload. |

### Models get

**Slug:** `ROBOFLOW_MCP_MODELS_GET`

Get details for a trained model in the current workspace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model_id` | string | Yes | Model id in the current workspace: '<workspace>/<model-slug>' (models_list[].url or trainings_get models[].modelId), a bare '<model-slug>', or '<project>/<version>' (legacy version models, or the version's only model). |

### Models infer

**Slug:** `ROBOFLOW_MCP_MODELS_INFER`

Run hosted inference on an image using a trained model or RF-DETR Semantic pretrain.

RF-DETR Semantic returns per-pixel scene classes from ADE20K's 150
classes, not separate object instances. Its six size aliases resolve to
ADE20K model IDs. Other two-segment IDs pass through unchanged; the
inference server resolves their model and task without project-type
derivation. Returns JSON predictions only. For visualized/annotated
images, run a Workflow with a visualization block instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image` | string | Yes | Image as an HTTPS URL or base64-encoded string. |
| `overlap` | number | No | Overlap threshold between 0.0 and 1.0 for object detection |
| `model_id` | string | Yes | Inference model id of either form: '<dataset>/<version>' (e.g. 'the-paid-gallery/138') or '<workspace>/<model-slug>'. Get it from models_list[].url or trainings_get models[].modelId. RF-DETR Semantic ADE20K pretrains also accept 'rfdetr-sem-{nano,small,medium,large,xlarge,2xlarge}'. |
| `confidence` | number | No | Confidence threshold between 0.0 and 1.0 |

### Models list

**Slug:** `ROBOFLOW_MCP_MODELS_LIST`

List trained models associated with a project.

Returns ``{models, total, returned, limit, offset, truncated}``. Each row
carries `metrics`, and (for NAS children) `nasFamily` and `group`, plus
a derived `recommended` flag when the model is the recommended pick for
any (metric, hardware) bucket on its parent version.

`metrics` is sparse and its keys depend on the run. An ordinary training
carries accuracy only, e.g. {map50, precision, recall, f1}. `latency`
and `paretoOptimalFor` come from NAS mining, so they appear on NAS
children and not on ordinary trainings; `metrics` may also be null.
Do not assume a key is present - read what is there.

Two shapes of NAS child are in the data. Newer runs report
`latency` as a map keyed by target hardware (e.g. {"AI1": 6.69,
"T4": 1.98}) and `paretoOptimalFor` entries as "<hardware>:<metric>"
(e.g. "T4:map_50_95"). Older runs report a scalar `latency` with a
sibling `metrics.hardware` (e.g. "gpu") and bare-metric
`paretoOptimalFor` entries (e.g. "map_50"). Branch on the type of
`latency` rather than indexing it. `recommended` is the flattened union of the platform's
per-hardware winners, so more than one row in a group carries it and it
cannot tell you which hardware a child won; `paretoOptimalFor` is
frontier membership, not the recommendation. The authoritative map,
`recommendedByHardware`, exists only on legacy version-based summaries
and is absent from modern MMPV runs. NAS children with
`nasFamily: "baseline"` are stock RF-DETR models trained on the same
data; they carry no `paretoOptimalFor` and are never `recommended`.

A project with NAS runs can have hundreds of models, so the result is
always bounded: filter with `version_number` and/or `group=<modelGroup>`
(the canonical "list NAS models per run" path), and page with
`limit`/`offset`. `truncated` is true when more rows remain past the page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group` | string | No | Optional NAS modelGroup to scope the list to a single NAS run. Get this value from trainings_list, which returns it without the child list that trainings_get inlines. |
| `limit` | string | No | Maximum number of models to return (default 50, max 200). |
| `offset` | string | No | Offset into the (filtered) result set, for paging. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `version_number` | string | No | Filter to a single version's models. Strongly recommended on projects with NAS runs, which can have hundreds of models across versions. |

### Models star nas

**Slug:** `ROBOFLOW_MCP_MODELS_STAR_NAS`

Star or unstar a NAS-trained model.

NAS-only by design — the server rejects non-NAS modelTypes with a
``MODEL_NOT_NAS`` error. Starring triggers TRT compilation for the
model's recommended hardware so the model becomes deployable as an
edge target.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `starred` | boolean | No | True to star, false to unstar. |
| `model_id` | string | Yes | Public model id (the `url` field from models_list[] or models[].modelId from trainings_get), e.g. 'beer-can-hackathon-410-nas-gpu-b'. Just the bare id — workspace prefix added automatically. |

### Models weights download url

**Slug:** `ROBOFLOW_MCP_MODELS_WEIGHTS_DOWNLOAD_URL`

Get a short-lived download URL for an existing trained model checkpoint.

Returns `download_url`, valid for 15 minutes. The platform enforces the
caller's permissions, the workspace's weights-download entitlement, and
artifact availability. Prefer an exact model slug: a numeric version can
resolve its legacy alias rather than a particular model from that version.

This retrieves raw trained weights, not a dataset export or a Core ML,
ONNX, or TensorRT conversion. For offline iOS deployment, converting the
checkpoint and integrating it into the app are separate steps. The tool
does not train, convert, run inference, or download the file itself.
The platform records a model-download event when issuing the URL.
Treat the temporary URL as private and do not publish it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model_id` | string | Yes | Exact trained model slug or 'workspace/model-slug' from models_list[].url. A legacy dataset version, such as '7' or 'project/7', is also accepted. |
| `project_id` | string | Yes | Project containing the model; accepts 'project' or 'workspace/project'. |

### Model evals compare

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_COMPARE`

Compare models trained on or uploaded to one dataset version.

Returns the project, version, selected frontier metric, available metrics,
and one compact record per model. Each record includes evaluation metrics,
median latency, exclusion reason, and server-computed frontier membership.

Frontier membership indicates a speed/accuracy tradeoff, not a model
recommendation or selection. This tool is read-only and starts no jobs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project URL slug. |
| `version_number` | integer | Yes | Dataset version number. |
| `frontier_metric` | string | No | Metric for accuracy and frontier membership. Uses the project default when omitted. |

### Model evals get

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_GET`

Get the top-level summary for a single model evaluation.

Returns the eval metadata plus a ``summary`` of mAP / precision /
recall on done evals, and an ``app_url`` deep link into the UI panel.

The ``modelUrl`` field is the resolvable public model id (feed it to
``models_get`` / ``models_infer``); ``modelId`` is the eval's internal id.

The ``model_evals_get_*`` result tools only work once ``status`` is
``done``; while it is ``pending`` or ``running``, poll this tool first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Model evaluation id. |

### Model evals get confidence sweep

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_GET_CONFIDENCE_SWEEP`

Get the precision/recall/F1 confidence sweep for an eval.

For each split returns ``perThreshold`` (metrics keyed by threshold
like ``"0.20"``), the ``optimalThreshold`` and ``optimalMetrics``,
and ``perClass`` sweeps.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Model evaluation id. |

### Model evals get confusion matrix

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_GET_CONFUSION_MATRIX`

Get the confusion matrix for an eval.

Returns ``{split, confidenceThreshold, classes, matrix}`` where
``matrix[actual][predicted]`` is the count.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `split` | string | No | Split to inspect — defaults to 'test'. |
| `eval_id` | string | Yes | Model evaluation id. |
| `confidence` | string | No | Integer confidence threshold 0-100. Most evals store results only at 1, 10, 20, 30, 40, 50, 60, 70, 80, 90 and at each split's optimalThreshold from model_evals_get_confidence_sweep (times 100), so other values fail. Omit to use the eval's default threshold (20 for most evals). |

### Model evals get image predictions

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_GET_IMAGE_PREDICTIONS`

Get per-image prediction stats for an eval (paginated).

Returns ``{split, confidenceThreshold, totalImages, offset, limit,
images: [...]}``. Each image carries TP/FP/FN counts, precision,
recall, F1, the assigned cluster, and a per-class confusion list.
Select by image_name or eval_input_id to inspect a specific input.
Set include_geometry to include its saved predictions, ground truth,
image URL, coordinate space, and media evidence when available. If one
image has multiple evaluated inputs, use eval_input_id and split to
select one; geometry requests with multiple matches return 400.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size (default 200, max 1000). |
| `split` | string | No | Split to inspect — defaults to 'test'. |
| `offset` | string | No | Offset into the result set for pagination. |
| `eval_id` | string | Yes | Model evaluation id. |
| `confidence` | string | No | Integer confidence threshold 0-100. Most evals store results only at 1, 10, 20, 30, 40, 50, 60, 70, 80, 90 and at each split's optimalThreshold from model_evals_get_confidence_sweep (times 100), so other values fail. Omit to use the eval's default threshold (20 for most evals). |
| `image_name` | string | No | Exact evaluated image name to select. |
| `eval_input_id` | string | No | Evaluated input ID to select, useful when one image has multiple transformed inputs. |
| `include_geometry` | boolean | No | Include saved prediction and ground-truth geometry for one selected evaluated input. |

### Model evals get map results

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_GET_MAP_RESULTS`

Get per-split mAP results for an eval.

Returns ``{splits: {train, valid, test}}`` where each split has
overall ``map50`` / ``map50_95`` / ``map75``, ``byObjectSize``
(small/medium/large), and ``perClass`` breakdowns.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Model evaluation id. |

### Model evals get performance by class

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_GET_PERFORMANCE_BY_CLASS`

Get per-class performance metrics for a single split.

Returns ``{split, classes: [{className, map50, map50_95, map75,
precision, recall, f1, optimalThreshold}, ...]}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `split` | string | No | Split to inspect — defaults to 'test'. 'all' is rejected by the API. |
| `eval_id` | string | Yes | Model evaluation id. |

### Model evals get recommendations

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_GET_RECOMMENDATIONS`

Get the LLM-generated recommendations for an eval, if available.

Returns ``{generated: false}`` until the recommendations job has
run. When ready, returns ``{generated: true, generatedAt,
recommendations: {summary, items}}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Model evaluation id. |

### Model evals get vector analysis

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_GET_VECTOR_ANALYSIS`

Get UMAP + HDBSCAN clustering of image embeddings for an eval.

Returns ``{clustering, preprocessing, clusters: [...]}`` — useful
for finding pockets of poor-performing images. Each cluster carries
``numImages``, ``splitDistribution``, F1 stats, and sample image refs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Model evaluation id. |
| `confidence` | string | No | For cluster F1 stats. Integer confidence threshold 0-100. Most evals store results only at 1, 10, 20, 30, 40, 50, 60, 70, 80, 90 and at each split's optimalThreshold from model_evals_get_confidence_sweep (times 100), so other values fail. Omit to use the eval's default threshold (20 for most evals). |

### Model evals list

**Slug:** `ROBOFLOW_MCP_MODEL_EVALS_LIST`

List model evaluations in the current workspace.

Returns ``{evals: [...]}`` where each entry has evalId, status,
project (URL slug), versionId, modelId, modelUrl, and createdAt. Use
``model_evals_get`` for the headline ``summary`` (mAP/precision/recall)
on a specific eval.

Two model identifiers are returned and they are NOT interchangeable:
``modelId`` is the eval's internal id (the ``model_id`` filter key here);
``modelUrl`` is the resolvable public id that ``models_get`` / ``models_infer``
accept and that joins to ``models_list[].url`` and ``trainings_get`` results.

Filters combine: ``project_id`` + ``version_number`` returns the evals of
that project version, ``model_id`` + ``version_number`` the evals of that
model on that version. The version is matched within the newest 200
evals of the project or model, the most the platform returns per call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Maximum number of evals to return (default 50, max 200). |
| `status` | string | No | Filter by eval status. |
| `model_id` | string | No | Filter by the eval's internal `modelId` (e.g. 'eff8cb21218fe2fdb5d1') as returned in model_evals records — NOT the `modelUrl` slug and NOT a 'workspace/project-...-arch' ref. Use it to find sibling evals of a model you already have an eval for. When set, project_id is ignored. |
| `project_id` | string | No | Filter by project slug (e.g. 'chess-pieces-fmhpz'). |
| `version_number` | string | No | Filter by version number. Pass project_id too: on its own it matches that version number in every project of the workspace. |

### Preview job cancel

**Slug:** `ROBOFLOW_MCP_PREVIEW_JOB_CANCEL`

Stop a preview job. It cannot resume; a new run starts a new job.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | The preview job id from the opening result. |
| `workspace_id` | string | Yes | The workspace the preview runs in, from the opening result. |

### Preview job get

**Slug:** `ROBOFLOW_MCP_PREVIEW_JOB_GET`

Read a preview job with its segments and results; every call signs its urls again.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | The preview job id from the opening result. |
| `workspace_id` | string | Yes | The workspace the preview runs in, from the opening result. |

### Preview media refresh

**Slug:** `ROBOFLOW_MCP_PREVIEW_MEDIA_REFRESH`

A fresh signed url for the preview's source video, when the widget reopens after it expired.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | No | Asset Library video id. Give this or source_id. |
| `source_id` | string | No | Asset Library image id. Give this or video_id. |
| `workspace_id` | string | Yes | The workspace the preview runs in, from the opening result. |

### Preview rerun

**Slug:** `ROBOFLOW_MCP_PREVIEW_RERUN`

Run a preview again from its rerunArguments, with the classes the user changed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `classes` | string | No | SAM 3 projects only: the classes to look for in this preview instead of the saved prompt. The saved endpoint does not change. |
| `video_id` | string | No | Asset Library video id. Give this or source_id. |
| `source_id` | string | No | Asset Library image id. Give this or video_id. |
| `confidence` | string | No | Initial confidence threshold, 0 to 1. The user can change it in the widget without a new run. |
| `parameters` | string | No | Values for the Workflow's own non-image inputs, by input name. |
| `project_id` | string | No | The project of a model preview. |
| `workflow_id` | string | No | The Workflow of a Workflow preview. |
| `workspace_id` | string | Yes | The workspace the preview runs in, from the opening result. |
| `disable_sinks` | boolean | No | Skip the Workflow's sink blocks (webhooks, uploads, notifications). They run by default, as in the app's Workflow preview. |
| `trim_start_ms` | string | No | Video only: where the clip starts, in milliseconds. |
| `trim_duration_ms` | string | No | Video only: clip length in milliseconds, 60000 at most (the default and the cap). |

### Projects create

**Slug:** `ROBOFLOW_MCP_PROJECTS_CREATE`

Create a new computer vision project, including Action Recognition and Anomaly Detection.

Action Recognition projects are video-only. Anomaly Detection requires workspace
enablement and creates fixed, single-label normal/anomalous classes. Active
anomaly detection and ordinary projects cannot use the same annotation group.

The annotation group is not private to the project: projects that use the
same group share annotations on the images they have in common. If an active
project of the same kind already uses the name, the new project silently joins
that group. Projects in the Trash are excluded from the kind check, so a new
project can also join a group used by a trashed project of either kind.
Images uploaded to the new project that are already stored in the workspace
come with their annotations from that group, and
uploading them with annotations fails with "Image was already annotated"
unless image_upload's annotation_overwrite is set. Unless the user wants
shared annotations, check the annotation values from projects_list and
trash_list first and pick a name no other project uses.

Returns the created project's id, name, type, and url.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `license` | string ("" | "Private" | "Public Domain" | "MIT" | "CC BY 4.0" | "BY-NC-SA 4.0" | "ODbL v1.0") | No | Project license. Leave empty for a private project unless the user chose a license. Workspaces on the free Public plan or a Research plan can only create public projects, which anyone can see on Roboflow Universe: there a license is required and cannot be 'Private'. The license is the user's choice; ask them instead of picking one. |
| `annotation` | string | Yes | Annotation group: what you're annotating, as a dash-separated slug of letters, numbers, and dashes (e.g. 'defects', 'hard-hats'). Projects with the same group share annotations, so pick a name no other project uses unless the user wants that. |
| `project_name` | string | Yes | Display name for the project: only unaccented letters (A-Z, a-z), digits, spaces, dashes and underscores, up to 256 characters not counting leading or trailing spaces. Accented or non-Latin letters, dots, slashes, em dashes and emoji are rejected. If the user's name has any of them, suggest a version without them (e.g. 'Pallets 2023-08' for 'Pallets 2023.08') and confirm it with the user. |
| `project_type` | string ("object-detection" | "single-label-classification" | "multi-label-classification" | "instance-segmentation" | "semantic-segmentation" | "action-recognition" | "anomaly-detection") | Yes | Computer vision task type |
| `business_context` | string | No | Brief description of the business problem this project addresses, if the user has shared one. |

### Projects delete

**Slug:** `ROBOFLOW_MCP_PROJECTS_DELETE`

Delete a project, moving it to the workspace Trash.

This is a soft delete: the project (including its versions, images,
and models) stays in the Trash for 30 days and can be restored with
``trash_restore_project`` using the project's document id from the
delete response or ``trash_list``. After 30 days it is permanently
removed. Active trainings on the project are cancelled.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |

### Projects fork

**Slug:** `ROBOFLOW_MCP_PROJECTS_FORK`

Enqueue an async fork of a public Universe project into your workspace.

Provide either a Universe `url` or `source_project`.
Returns the platform's 202 payload verbatim — at minimum
`{ taskId, url }`, where `url` points at the async-task polling
endpoint. Poll completion with `async_tasks_get(task_id=taskId)`
every 5 seconds until `status` is terminal (`completed` or `failed`).
Processing may take up to 30 seconds to start.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | No | Full Universe project URL, e.g. https://universe.roboflow.com/workspace/project |
| `source_project` | string | No | Universe project slug to fork into your workspace; optional if url is provided |

### Projects get

**Slug:** `ROBOFLOW_MCP_PROJECTS_GET`

Get detailed info about a project including versions, classes, splits, and trained models.

Returns full project details with workspace, project info, versions, and classes.
A workspace/project ID from Universe can also be read when the project is
public; resolving its owner additionally requires workspace:read. Private
projects remain restricted to the connected workspace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |

### Projects health

**Slug:** `ROBOFLOW_MCP_PROJECTS_HEALTH`

Get dataset health check for a project.

Running this for the first time or with regenerate=True might take up to a couple minutes.

Returns class balance, image quality issues, annotation statistics, and other dataset health metrics.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `regenerate` | boolean | No | Set to true to regenerate the health report from scratch. |

### Projects list

**Slug:** `ROBOFLOW_MCP_PROJECTS_LIST`

List projects in the workspace associated with the credential.

Returns ``{ projects, total, limit, offset }`` where ``projects``
holds up to ``limit`` entries (id, name, type, image count, and more)
and ``total`` counts the usable projects across all pages. Page with
``offset`` when ``total`` exceeds ``limit``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of projects to return |
| `offset` | integer | No | Number of projects to skip, for paging |

### Project deployment configure active learning

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_CONFIGURE_ACTIVE_LEARNING`

Configure how a Project Deployment collects Active Learning data.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `enable` | boolean | No | Enable Active Learning before saving configuration. |
| `filters` | string | No | Optional classConfidence or detectionSize filters. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `collection_limits` | string | No | Collection limit overrides. Defaults are used for omitted fields. |

### Project deployment disable active learning

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_DISABLE_ACTIVE_LEARNING`

Pause Active Learning collection for a Project Deployment.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |

### Project deployment enable active learning

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_ENABLE_ACTIVE_LEARNING`

Enable Active Learning for a Project Deployment.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |

### Project deployment get

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_GET`

Get the stable live endpoint state for a project, with `workspaceDetectionDefault` and `openAiDetectionAvailability`.

Use the returned `workspaceDetectionDefault` for new non-COCO object-detection Workflow steps and object-detection catalog labeling with no explicit model choice. Free/trial workspaces: GPT-6.1 Terra (`gpt-6-1-terra-boxes`) for Workflow detection and Auto Label; new endpoints GPT-6.1 Sol (`{type: "sol", classes}`). Paid workspaces or unknown usage: Gemini 4 Carbon (`gemini-4-carbon-boxes`) for Workflow detection and Auto Label; new endpoints GPT-6 Astra (`{type: "astra", classes}`). Auto Label instance-segmentation defaults are `gpt-6-1-terra-sam3-masks` for free/trial and `gemini-4-carbon-sam3-masks` for paid or unknown usage. Use the returned API defaults and Auto Label model list for actual selection; `isDefault` marks only the object-detection default. If `workspaceDetectionDefault` is absent, use the paid endpoint default. Name an endpoint by its endpoint model, never by the Auto Label one. Never infer the tier from user messages. Explicit choices and saved models take precedence.

The returned `openAiDetectionAvailability` applies to OpenAI blocks and endpoints. When it is `available` or absent, follow the workspace detection default. A `managed-key-denied` or `region-unavailable` restriction does not establish another provider's availability: retain a non-OpenAI default only when its own access and deployment policies permit it. When no permitted VLM default is available, use the native SAM 3 fallback without another selection question. Never switch providers, credentials or global routes to evade plan, workspace-key or residency restrictions.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |

### Project deployment launch

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_LAUNCH`

Create or prepare a stable Project Deployment. Configure this optional endpoint only when the requested task needs a stable serving endpoint or active learning.

A new Project's detection default can only be read once the Project exists. For a new object-detection Project outside COCO with no explicit model choice, call this without `model` or Active Learning, read the returned `workspaceDetectionDefault` and `openAiDetectionAvailability`, then call project_deployment_set_model with `{type: workspaceDetectionDefault.objectDetectionEndpoint.type, classes}` (the classes to detect) as project_deployment_get describes, then project_deployment_enable_active_learning if wanted. Active Learning needs a model on the endpoint.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model` | string | No | Omit for a new object-detection Project outside COCO with no explicit model choice (see the tool description). Default deployment model. Use {type:"model_id", modelId} with an exact compatible trained id from models_list or universe_search (use its exact model_id, including a listed older Universe version), or a pretrained alias from the roboflow-model-journey skill (e.g. "rfdetr-nano"), {type:"sam3", classes} for compatible detection/segmentation Projects, or {type:"qwen", classes} for compatible classification Projects. For new zero-shot object-detection Projects outside COCO, use the Workspace detection default returned by project_deployment_get: `{type: workspaceDetectionDefault.objectDetectionEndpoint.type, classes}` (GPT-6.1 Sol for free/trial workspaces; GPT-6 Astra for paid workspaces or unknown usage). If `workspaceDetectionDefault` is absent, use GPT-6 Astra ({type:"astra", classes}). OpenAI detection availability restrictions take precedence over that default. Honor explicit supported choices, including Sol, Astra, SAM3 and {type:"gemini", classes} for Gemini 3.8 Flash, and keep Auto Label catalog selection separate. Retain pretrained RF-DETR for COCO detection. {type:"clip", classes} remains supported when the user explicitly requests CLIP or for an existing CLIP setup. |
| `license` | string | No | Project license when creating a project. |
| `annotation` | string | No | What the project annotates when creating a new project, such as 'forklift'. This is the annotation group: projects with the same group share annotations, so pick a name no other project uses unless the user wants that. |
| `project_id` | string | No | Existing project slug. If omitted, project_name, project_type, and annotation create a new project. |
| `project_name` | string | No | Display name when creating a new project. |
| `project_type` | string | No | Project type when creating a new project. |
| `business_context` | string | No | Brief description of the business problem being solved. |
| `enable_active_learning` | boolean | No | Enable Active Learning so production inference images become reviewable data. |
| `active_learning_filters` | string | No | Optional Active Learning filters such as classConfidence or detectionSize conditions. |
| `active_learning_collection_limits` | string | No | Optional Active Learning collection limit overrides. Defaults are used for omitted fields. |

### Project deployment list review queues

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_LIST_REVIEW_QUEUES`

List Active Learning review queues fed by production inference.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | string | No | Review queue page number. |
| `search` | string | No | Search queue names, ids, labelers, or reviewers. |
| `status` | string | No | Filter review queues by status. |
| `sort_by` | string | No | Review queue sort field. |
| `reviewer` | string | No | Reviewer email, or 'unassigned' for queues without a reviewer. |
| `page_size` | string | No | Items per page, up to 50. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `sort_direction` | string | No | Review queue sort direction. |

### Project deployment preview

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_PREVIEW`

Show the project's live endpoint on one workspace image or video, in an interactive player.

Use this when the user wants to see what the project's model finds on their own media.
Each call runs inference and spends credits; a video runs as a job on a clip of 60 s at
most. Only the counts per class come back here; the user filters by confidence and class
in the widget, and on SAM 3 projects can change the classes and run again there.
A project that never had an endpoint gets one (its base workflow) before the preview runs.
For usage guidance, read skill://roboflow-apps/model-preview/SKILL.md.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `classes` | string | No | SAM 3 projects only: the classes to look for in this preview instead of the saved prompt. The saved endpoint does not change. |
| `video_id` | string | No | Asset Library video id. Give this or source_id. |
| `source_id` | string | No | Asset Library image id. Give this or video_id. |
| `confidence` | string | No | Initial confidence threshold, 0 to 1. The user can change it in the widget without a new run. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `trim_start_ms` | string | No | Video only: where the clip starts, in milliseconds. |
| `trim_duration_ms` | string | No | Video only: clip length in milliseconds, 60000 at most (the default and the cap). |

### Project deployment run

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_RUN`

Run inference through the project's stable live endpoint.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `images` | object | Yes | Map of input names to image values. Usually {'image': 'https://...'} or base64. |
| `parameters` | string | No | Optional runtime parameters supported by the deployment, such as confidence. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |

### Project deployment set model

**Slug:** `ROBOFLOW_MCP_PROJECT_DEPLOYMENT_SET_MODEL`

Change which model a Project's hosted endpoint serves without changing its stable inference path. Creates the endpoint if necessary. Configure this optional endpoint only when the requested task needs a stable serving endpoint or active learning. Ordinary model testing and Auto Label samples use a standalone Workflow and need no endpoint configuration. Never replace a configured serving model or saved prompt unless the user explicitly requests that persistent change. Training completion, Auto Label setup, Adjust feedback, and trying a preview do not authorize replacement. This saves the configuration, so do not describe it as temporary. Never use this tool for temporary classes or confidence changes. Active Learning settings are preserved.

If the user explicitly requests Sol or Astra and project_deployment_get's `openAiDetectionAvailability` is `managed-key-denied`, explain that its managed-key access is unavailable in this workspace and offer SAM 3 or resolving that access. If it is `region-unavailable`, explain that OpenAI detection is unavailable in the EU deployment and offer SAM 3; do not suggest upgrading the plan or adding a provider key as a residency workaround. Do not configure a new Sol or Astra detection endpoint or suggest a global provider route in that case. For either restriction, do not configure a substitute without their agreement or claim the requested detector ran. Never bypass provider-access controls. Leave existing configured endpoints, COCO RF-DETR, other task defaults, and Auto Label's separate selection policy unchanged.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model` | object | Yes | Default deployment model. Use {type:"model_id", modelId} with an exact compatible trained id from models_list or universe_search (use its exact model_id, including a listed older Universe version), or a pretrained alias from the roboflow-model-journey skill (e.g. "rfdetr-nano"), {type:"sam3", classes} for compatible detection/segmentation Projects, or {type:"qwen", classes} for compatible classification Projects. For new zero-shot object-detection Projects outside COCO, use the Workspace detection default returned by project_deployment_get: `{type: workspaceDetectionDefault.objectDetectionEndpoint.type, classes}` (GPT-6.1 Sol for free/trial workspaces; GPT-6 Astra for paid workspaces or unknown usage). If `workspaceDetectionDefault` is absent, use GPT-6 Astra ({type:"astra", classes}). OpenAI detection availability restrictions take precedence over that default. Honor explicit supported choices, including Sol, Astra, SAM3 and {type:"gemini", classes} for Gemini 3.8 Flash, and keep Auto Label catalog selection separate. Retain pretrained RF-DETR for COCO detection. {type:"clip", classes} remains supported when the user explicitly requests CLIP or for an existing CLIP setup. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |

### Read skill

**Slug:** `ROBOFLOW_MCP_READ_SKILL`

Read server-hosted workflow or app instructions when MCP resources are unavailable.

Load the relevant SKILL.md before following its workflow; retrieve referenced
files only as needed, using their manifest URIs on this same server. Returns
the actual text (or base64 blob for binary files). This reads guidance only:
it does not execute scripts, install skills, or grant tool permissions.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uri` | string | Yes | Exact SKILL.md or supporting-file URI from list_skills or the skills index |

### Streams camera url add

**Slug:** `ROBOFLOW_MCP_STREAMS_CAMERA_URL_ADD`

Save a public camera URL and start its connection test after the user confirms access.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `camera_url` | string | Yes |  |
| `request_id` | string | Yes | A stable unique request ID (8-128 letters, numbers, dots, underscores, colons or hyphens). Reuse it only when retrying this same operation. |
| `camera_name` | string | Yes |  |
| `accept_terms` | boolean | Yes |  |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |
| `camera_password` | string | No |  |
| `camera_username` | string | No |  |

### Streams connect

**Slug:** `ROBOFLOW_MCP_STREAMS_CONNECT`

Connect a phone, webcam or network camera in the live stream app.

Use this when the user wants to connect a camera or run a Workflow on a live stream.
Call without arguments to open a new camera session; no internal IDs are required.
Optionally supply a stable request_id for retry-safe creation or select a known
source_id. Calls without request_id each create a new session. Reopen an existing
session with stream_session_id instead (session_id remains a supported alias).
The app offers phone/webcam pairing and
authorized camera setup for connector USB/RTSP and direct RTMP publishers.
Camera permission and connection happen in the app; never ask for camera credentials
in chat. If no Workflow or detection goal is known, ask what the user wants to detect
or invite them to choose a saved Workflow in the card. Do not leave them at a bare
camera feed. When the connected source and Workflow are known, call streams_preview in
the same interaction. No Workflow editor or additional "start" turn is required.
Read skill://roboflow-apps/stream-preview/SKILL.md for usage guidance.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source_id` | string | No |  |
| `request_id` | string | No | Optional stable request ID for retries. Omit to create a new camera session automatically. |
| `session_id` | string | No |  |
| `workspace_id` | string | No |  |
| `stream_session_id` | string | No |  |

### Streams input close

**Slug:** `ROBOFLOW_MCP_STREAMS_INPUT_CLOSE`

Close only this viewer's raw WebRTC connection, including after a source change.

Ownership is rechecked. It does not disconnect the camera publisher or other viewers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `viewer_id` | string | Yes | The stable unique ID of this mounted viewer, not the session ID. Keep it through retries; each card has its own ID. |
| `session_id` | string | Yes | The stream preview session ID from streams_connect or streams_preview_status. |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |
| `connection_id` | string | Yes | The exact connectionId returned to this viewer's input offer. |

### Streams input offer

**Slug:** `ROBOFLOW_MCP_STREAMS_INPUT_OFFER`

Negotiate raw camera playback through the authorized platform signaling proxy.

The answer and connection handle are app metadata only. Source media keys and
relay session URLs remain server-side. This does not start Workflow processing.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `offer_sdp` | string | Yes | The browser's receive-only SDP offer after ICE gathering. Retry with the same request_id and unchanged SDP. |
| `viewer_id` | string | Yes | The stable unique ID of this mounted viewer, not the session ID. Keep it through retries; each card has its own ID. |
| `request_id` | string | Yes | A stable unique request ID (8-128 letters, numbers, dots, underscores, colons or hyphens). Reuse it only when retrying this same operation. |
| `session_id` | string | Yes | The stream preview session ID from streams_connect or streams_preview_status. |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |
| `session_revision` | integer | Yes | The sessionRevision being viewed; stale viewers cannot renew a newer run. |

### Streams phone pair

**Slug:** `ROBOFLOW_MCP_STREAMS_PHONE_PAIR`

Create a short-lived phone QR or browser webcam pairing link for this member.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `intent` | string ("phone" | "webcam") | No |  |
| `request_id` | string | Yes | A stable unique request ID (8-128 letters, numbers, dots, underscores, colons or hyphens). Reuse it only when retrying this same operation. |
| `session_id` | string | Yes | The stream preview session ID from streams_connect or streams_preview_status. |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |
| `expected_session_revision` | integer | Yes | The sessionRevision from the latest session result. A stale mutation is rejected; read status before deciding a new action. |

### Streams preview

**Slug:** `ROBOFLOW_MCP_STREAMS_PREVIEW`

Start or replace a live annotated Workflow preview on the session's camera.

Use this when a connected camera should show a selected or newly prepared Workflow.
Updates the existing streams_connect card; it does not open another app. Reuse the
session and workspace from that card's model context. Pass the session as
stream_session_id (session_id remains a supported alias). Do not call streams_connect
again unless the user needs to reopen the card or its session has expired.
For a detection goal or Workflow change, use agent_chat to build and validate
through the Roboflow in-app agent. Request class filtering and an annotated image
output. Poll agent_chat_result when running, then pass the returned Workflow ID
and exact specification unchanged. Read current session status after building.
An existing saved Workflow that already fits can be read and previewed directly.
This tool pins the supplied specification and spends credits; it does not publish
or edit the Workflow. Agent edits can be previewed as drafts without publishing.
Sink blocks are disabled; unsupported side effects are refused.
Never read settings from a Workflow editor. A returned starting/stopping status is
pending, not success: use streams_preview_status. If retry is needed, reuse the exact
request_id and arguments; do not create a second request while outcome is uncertain.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request_id` | string | Yes | A stable unique request ID (8-128 letters, numbers, dots, underscores, colons or hyphens). Reuse it only when retrying this same operation. |
| `session_id` | string | No |  |
| `workflow_id` | string | Yes | Saved Workflow URL slug or document ID. Read it before preparing a preview snapshot. |
| `image_output` | string | Yes | The declared image output containing visualization, such as bounding boxes and labels. Prediction JSON alone is not visual output. |
| `workspace_id` | string | No |  |
| `stream_session_id` | string | No |  |
| `workflow_parameters` | string | No | Values for declared non-image inputs. The session's connected camera supplies the image. |
| `workflow_specification` | string | No | Optional exact specification to execute for this preview only, without modifying the saved Workflow. Referenced resources must be authorized. Omit to resolve the current saved specification; no silent fallback replaces a supplied snapshot. |
| `expected_session_revision` | integer | Yes | The sessionRevision from the latest session result. A stale mutation is rejected; read status before deciding a new action. |

### Streams preview release

**Slug:** `ROBOFLOW_MCP_STREAMS_PREVIEW_RELEASE`

Release only this viewer's attachment, without cancelling other viewers or the camera.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `viewer_id` | string | Yes | The stable unique ID of this mounted viewer, not the session ID. Keep it through retries; each card has its own ID. |
| `session_id` | string | Yes | The stream preview session ID from streams_connect or streams_preview_status. |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |
| `session_revision` | integer | Yes | The sessionRevision being viewed; stale viewers cannot renew a newer run. |

### Streams preview status

**Slug:** `ROBOFLOW_MCP_STREAMS_PREVIEW_STATUS`

Read the current source, run, revision and processing state without starting work.

Use stream_session_id; session_id remains a supported alias. The result describes
processing, not whether the user's viewer rendered a frame.
Pairing links, media grants and frame data stay out of the conversation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `session_id` | string | No |  |
| `workspace_id` | string | No |  |
| `stream_session_id` | string | No |  |

### Streams preview stop

**Slug:** `ROBOFLOW_MCP_STREAMS_PREVIEW_STOP`

Stop this session's processing, preserving its camera connection.

Use stream_session_id; session_id remains a supported alias. A stopping result
means termination is pending. Read status for confirmation.
This never stops unrelated sessions or disconnects the phone publisher.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `request_id` | string | Yes | A stable unique request ID (8-128 letters, numbers, dots, underscores, colons or hyphens). Reuse it only when retrying this same operation. |
| `session_id` | string | No |  |
| `workspace_id` | string | No |  |
| `stream_session_id` | string | No |  |
| `expected_session_revision` | integer | Yes | The sessionRevision from the latest session result. A stale mutation is rejected; read status before deciding a new action. |

### Streams preview watch

**Slug:** `ROBOFLOW_MCP_STREAMS_PREVIEW_WATCH`

Renew this viewer's authorized lease and obtain current-generation output access.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `viewer_id` | string | Yes | The stable unique ID of this mounted viewer, not the session ID. Keep it through retries; each card has its own ID. |
| `session_id` | string | Yes | The stream preview session ID from streams_connect or streams_preview_status. |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |
| `session_revision` | integer | Yes | The sessionRevision being viewed; stale viewers cannot renew a newer run. |

### Streams rtsp add

**Slug:** `ROBOFLOW_MCP_STREAMS_RTSP_ADD`

Add a camera from the in-app form to a Roboflow connector.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `camera_url` | string | Yes |  |
| `request_id` | string | Yes | A stable unique request ID (8-128 letters, numbers, dots, underscores, colons or hyphens). Reuse it only when retrying this same operation. |
| `camera_name` | string | Yes |  |
| `connector_id` | string | Yes | A source ID selected through the stream app, never a camera URL or credential. |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |
| `camera_password` | string | No |  |
| `camera_username` | string | No |  |

### Streams rtsp connectors

**Slug:** `ROBOFLOW_MCP_STREAMS_RTSP_CONNECTORS`

List workspace connectors that can accept an RTSP camera.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |

### Streams setup open

**Slug:** `ROBOFLOW_MCP_STREAMS_SETUP_OPEN`

Get the authorized first-party setup page for connectors, Verkada, or RTMP.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source_tab` | string | No |  |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |

### Streams sources list

**Slug:** `ROBOFLOW_MCP_STREAMS_SOURCES_LIST`

List the camera sources the app's caller can select, without media credentials.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |

### Streams source select

**Slug:** `ROBOFLOW_MCP_STREAMS_SOURCE_SELECT`

Select an authorized source for an idle session; a running session must stop first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source_id` | string | Yes | A source ID selected through the stream app, never a camera URL or credential. |
| `request_id` | string | Yes | A stable unique request ID (8-128 letters, numbers, dots, underscores, colons or hyphens). Reuse it only when retrying this same operation. |
| `session_id` | string | Yes | The stream preview session ID from streams_connect or streams_preview_status. |
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |
| `expected_session_revision` | integer | Yes | The sessionRevision from the latest session result. A stale mutation is rejected; read status before deciding a new action. |

### Streams workflows list

**Slug:** `ROBOFLOW_MCP_STREAMS_WORKFLOWS_LIST`

List authorized Workflow names and IDs for hosts that cannot read app resources.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_id` | string | Yes | The workspace from the opening stream app result. |

### Survey feedback submit

**Slug:** `ROBOFLOW_MCP_SURVEY_FEEDBACK_SUBMIT`

Record the user's explicit answer to an offered survey question using its request_id.

For a chat reply, submit Yes or No only when the user answers that question.
For No, include their explanation. Use dismiss only for an explicit dismissal.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `answer` | string ("yes" | "no" | "dismiss") | Yes |  |
| `reason` | string | No |  |
| `request_id` | string | Yes |  |

### Trainings cancel

**Slug:** `ROBOFLOW_MCP_TRAININGS_CANCEL`

Cancel an in-flight training run.

Works for any architecture. For NAS runs the underlying handler
accepts the ``mining`` status — same call cancels mining or training
phases.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug; 'workspace/my-project' is also accepted. |
| `training_id` | string | No | Training id from trainings_list to cancel a specific run. Omit to target the version's sole run; required when the version owns several runs. |
| `version_number` | integer | Yes | Version number whose training to cancel. |
| `continue_if_no_refund` | boolean | No | If true, cancel even when the run is past the refund window. Default false (the server will return refund:false without cancelling). |

### Trainings create

**Slug:** `ROBOFLOW_MCP_TRAININGS_CREATE`

Create a training on a dataset version.

A dataset version must exist before training. Reuse an existing ready
version when its images, labels, and splits match the requested data;
check it with versions_get. Generate a new version only when the data
or version-level transforms need to change. The MCP versions_generate
tool uses the REST generation route: it still applies version
preprocessing and augmentation and has no training-purpose option.

A modern (MMPV) version may own MANY trainings — concurrent and
repeated runs are allowed. Legacy single-model-per-version (SMPV)
versions already hold their one model and reject a second training with
a 409; generate a fresh version to train more models. To inspect a
version's trainings, use trainings_list; to monitor a specific run, use
trainings_get with the returned training_id.

For Action Recognition, pass model_type='cosmos3-edge' or
'vjepa2-1-vitb-384'. Their video-coco export is prepared by this call.
The returned trainingId identifies a background v2 run; poll
trainings_get with it until the run finishes.
A train_recipe is optional and is sent only when you supply one.

For the multi-stage keypoint architecture, pass model_type=
'rfdetr-keypoint-two-stage' and configure detector and keypointHead in
stages. Each stage has its own modelType and optional checkpoint,
hyperparameters, and trainRecipe. Recipe lookup is limited to the
project task, so use the detector's defaults unless you already have
a compatible recipe. Set epochs within each stage's hyperparameters
or recipe. Top-level epochs and train_recipe are invalid for this
architecture. This architecture is currently enabled
only on staging for eligible workspaces; platform availability and
validation errors are authoritative.

Optional trt_compilation enables paid Jetson TensorRT compilation for
this run using current target IDs and pricing.trainingId from
trt_fleet_settings_get. Enabling requires model:compile in addition to
training-job:create, version:read, and version:export, and a workspace-wide
API key when using a key. Ordinary training uses version:read to check
readiness and version:export to prepare the export. Review
the maximum reservation and obtain the user's approval before enabling. Pricing or
target profile changes require fresh consent; inspect trt_fleet_status
after training for the compilation result.

MODEL CHOICE: for object detection and instance segmentation, prefer a
NAS parent over a single named architecture: searching the architecture
space against this dataset usually beats hand-tuning one. See the
model_type description for ids and prerequisites.

To customize model-specific preprocessing, online augmentation, or
hyperparameters without changing the version, call
trainings_describe_recipe FIRST, edit its ``template`` (set
``template["hyperparameters"]``; set supported ``online_preprocessing``
and ``online_augmentation`` steps, with augmentation steps as
``{name, params: {...}}`` dicts), and pass the whole dict as
train_recipe. Recipe hyperparameters are sparse: keys you leave out
keep their server-side defaults, which are the tuned values, so omitting a
key is the right default, not a missed opportunity. Set a knob when you
have a specific reason to move it, not to explore. Recipe training
requires platform recipe access and an enabled runtime;
trainings_describe_recipe reports their availability.

COMPARING ARCHITECTURES: use the same ready MMPV version for each
candidate. Agree with the user whether to run the comparison in
parallel or sequentially, then launch one trainings_create per
candidate and retain each returned trainingId. MMPV versions allow
concurrent trainings. Include a NAS parent whenever its
prerequisites are met, e.g. 'rfdetr-medium' vs 'yolo26m' vs
'rfdetr-nas-parent'.

A NAS arm returns a frontier of models rather than one. Resolve it with
trainings_list -> modelGroup -> models_list(group=<modelGroup>), whose
docstring describes the per-child fields; use trainings_list rather than
trainings_get, which inlines every child and defeats the paging. Which
child represents that arm depends on the question being asked, and the
obvious reading of the `recommended` flag is wrong - read the
training-and-evaluation skill before comparing arms or deploying.

This tool checks that the dataset version has finished generating and
that the required export is ready before starting, and waits up to
about 20 seconds for the export. If either is still pending it does
NOT start a training: it returns status 'waiting_for_version' or
'waiting_for_export' with training_started false, no trainingId, the
progress, and retry_after_seconds. That is expected, not a failure:
call trainings_create again with the same arguments after that delay,
and keep retrying until it returns a trainingId. Version generation can
take up to about an hour on large datasets and reports 0 progress for
most of it.

Training runs in the background on Roboflow servers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `speed` | string | No | Training speed (deprecated — model_type is usually sufficient) |
| `epochs` | string | No | Number of training epochs. With a train_recipe this folds into the recipe's hyperparameters (a value set inside the recipe wins) and has no fixed cap; trainings_describe_recipe reports the recommended range per model type (the epochs descriptor's advice.low/high). Without a recipe, the server caps this value at 300. For rfdetr-keypoint-two-stage, set epochs in each stage's hyperparameters instead. |
| `stages` | string | No | Per-stage configuration for a multi-stage architecture, keyed by 'detector' and 'keypointHead'. Each stage needs modelType and may include checkpoint, hyperparameters, and trainRecipe. Recipe lookup only works for models compatible with the project task. For the detector, omit trainRecipe unless you already have a compatible recipe. The platform validates stage keys, models, and configuration. Omit for single-model training. |
| `checkpoint` | string | No | Starting weights. Omit to use the model's default: pretrained weights for RF-DETR, YOLO26, classification and VLM models, but random initialization for YOLOv5, YOLOv8 and YOLOv11, so pass 'COCO' for those. Accepted values: 'COCO' (COCO-pretrained weights), 'CITYSCAPES' (yolo26 semantic segmentation), '<dataset>/<version>' for a trained version, or '<workspace>/<model>' for a trained workspace or Universe model. The checkpoint must be the same architecture as model_type, and some model types do not support checkpoints. |
| `model_type` | string | No | Model architecture ID. For object detection and instance segmentation, prefer Neural Architecture Search: 'rfdetr-nas-parent' (detection) or 'rfdetr-nas-seg-parent' (instance segmentation). NAS searches the RF-DETR space against this dataset and returns a speed/accuracy frontier, so it is the option most likely to produce the best model for the user's data. Two prerequisites: >=15 validation images (check versions_get splits.valid before choosing) and a plan entitled to NAS. The entitlement is not readable from the MCP, so it surfaces as a rejection from this tool with code 'nas_not_available_for_plan'. Treat that as a plan limit rather than a transient error and do not retry it. Ask the user to approve a named model and its credit usage before starting a different training. The remedy depends on the plan carried on that error: self-serve plans upgrade, enterprise/legacy need NAS enabled on the workspace, so say NAS is unavailable on the current plan and may need an upgrade or workspace enablement rather than naming one. Named models: 'rfdetr-medium' (detection), 'rfdetr-seg-medium' (instance segmentation), 'yolov11n' (fast YOLO), 'yolo26n-pose' (keypoint), 'vit-base-patch16-224-in21k' (classification), 'qwen3_5-2b-peft' (multimodal/VLM), and 'cosmos3-edge' or 'vjepa2-1-vitb-384' (Action Recognition). Action Recognition requires an explicit model_type and a video-coco export; this tool prepares that export before starting the v2 training run. Keypoint, classification, semantic segmentation, VLM, and Action Recognition tasks have no NAS option. If an invalid ID is passed, the API returns the full list of valid model types for the project's task. Read the training-and-evaluation skill for the complete list and model selection guidance. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `train_recipe` | string | No | Full trainRecipe dict, together with the model_type it was minted for (model_type is required with it). Get one from trainings_describe_recipe: take its `template`, set template['hyperparameters'] (sparse; omitted keys keep server-side defaults), set supported `online_preprocessing` and `online_augmentation` steps for model-specific transforms, with augmentation steps as {name, params: {...}} dicts, and pass the whole dict here. If the recipe's hyperparameters omit epochs, the epochs param is folded in; an epochs set inside the recipe wins. |
| `version_number` | integer | Yes | Version number to train on |
| `trt_compilation` | string | No | Optional Jetson TensorRT compilation consent for this training run. Use {'enabled': true, 'targetIds': [...], 'pricingId': ...} with current target IDs and pricing.trainingId from trt_fleet_settings_get; {'enabled': false} opts out. Enabling requires a workspace-wide credential with model:compile in addition to training-job:create, version:read, and version:export. Omit for ordinary training. Review maximum credits and obtain the user's approval before starting paid compilation. Changed pricing or target profiles require fresh consent. |
| `business_context` | string | No | Brief description of the business problem this model addresses, if the user has shared one. |

### Trainings delete

**Slug:** `ROBOFLOW_MCP_TRAININGS_DELETE`

Delete a training run, moving it to the workspace Trash.

This is a soft delete: the training stays in the Trash for 30 days
and can be restored with ``trash_restore_training`` using the
training id. After 30 days it is permanently removed. Deleting may
repoint or remove the ``{project}/{version}`` serving alias; the
response reports the alias action taken.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug; 'workspace/my-project' is also accepted. |
| `training_id` | string | Yes | Training id from trainings_list identifying the run to delete. |
| `version_number` | integer | Yes | Version number that owns the training run. |

### Trainings describe recipe

**Slug:** `ROBOFLOW_MCP_TRAININGS_DESCRIBE_RECIPE`

Describe the tuning surface for a model type and get a ready-to-submit train recipe.

Returns two things:

- ``schema``: the valid tuning knobs for this model on this version,
  namely manifest hyperparameters with hard bounds (``valid``) and
  advisory ranges (``advice.low``/``advice.high``) for a deliberate,
  hypothesis-driven change. A descriptor's ``advice.default`` is the
  tuned value the server applies when you omit the key, so a sparse
  recipe is the good default; a descriptor with NO ``advice.default``
  is one only the trainer can resolve (it derives the value from the
  dataset at train time), so leave those out unless you specifically
  intend to override the derivation. Also included: the task-supported
  online augmentation steps with their field contracts, the supported
  online preprocessing steps, and input/resolution rules.
- ``template``: a ready-to-submit ``trainRecipe`` for this model type.
  Edit the knobs you want to change, including model-specific
  ``online_preprocessing`` and ``online_augmentation`` steps, then pass
  the whole dict as ``train_recipe`` to trainings_create.

An unknown ``model_type`` fails with a 404 whose error body lists the
valid model types for the project's task.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model_type` | string | Yes | Model architecture ID to describe, e.g. 'rfdetr-medium'. If an invalid ID is passed, the 404 error lists the valid model types for the project's task. |
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `version_number` | integer | Yes | Version number the training will run on. |

### Trainings get

**Slug:** `ROBOFLOW_MCP_TRAININGS_GET`

Get a training's status, produced models, and metrics.

With ``training_id``, returns that run:
``{ trainingId, status, createdAt, modelType, modelGroup, modelCount,
    models: [ { modelId, nasFamily, metrics, recommended }, ... ],
    recommendedByHardware?, mining?,
    epochs?: [ { epoch, ts_ms, map50?, map50_95?, precision?, recall?,
                 f1?, accuracy?, miou?, val_loss?, nativeMetrics?,
                 latency?, modelKey? }, ... ], trainRecipe? }``.
``createdAt`` is when the run
was launched (ISO 8601 UTC), or null if unknown. Statuses are surfaced
verbatim: 'failed', 'cancelled', and 'stopped' are distinct.

Without ``training_id``, returns the version's sole run. A version with
several trainings returns 409 ``MULTIPLE_TRAININGS``; use trainings_list
to choose a run and pass its ``training_id``.

Set ``include_epochs=True`` to read recorded per-epoch curves, including
legacy trainings. Top-level ``map50``, ``map50_95``, ``precision``,
``recall``, ``f1``, ``accuracy``, and ``miou`` are percentages (0 to 100).
``nativeMetrics`` holds recorded validation quality scores in 0-1 units
and losses in native units; ``val_loss`` is also in native units. Loss
definitions vary by trainer. Missing curves or metrics are unavailable,
not zero. ``trainRecipe`` is the submitted recipe, not the resolved
trainer configuration. ``latency`` is a number or an object of numbers;
``ts_ms`` is a Unix timestamp in milliseconds. NAS runs with several
curves include ``modelKey`` on each entry: group by ``modelKey`` before
comparing or plotting. Multi-stage trainings have separate curves per
stage: read ``stages`` from trainings_list and call trainings_get with
each exact stage ``trainingId``.

For headline metrics (mAP/precision/recall) on a specific model, use
model_evals_list to find the version's evaluations and then
model_evals_get and its siblings. Those tools require the
``model-eval:read`` scope, so eval lookup is deliberately kept out of
this tool — monitoring a run only needs ``version:read``.

For full per-model metadata on a NAS run, call models_list with the
returned modelGroup.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug; 'workspace/my-project' is also accepted. |
| `training_id` | string | No | Training id from trainings_list. Omit to summarize the version's sole run; required when the version owns several runs. |
| `include_epochs` | boolean | No | Include recorded per-epoch validation curves, including legacy trainings, in epochs. Default false. |
| `version_number` | integer | Yes | Version number whose training to summarize. |

### Trainings list

**Slug:** `ROBOFLOW_MCP_TRAININGS_LIST`

List the trainings on a dataset version.

A version may own many trainings. Returns one entry per run:
``{ trainingId, status, createdAt, modelType, modelGroup, modelIds,
    stages? }``. ``stages`` maps stage names to their exact
``{ trainingId, modelType }`` when a run has multiple stages. Use each
stage's ``trainingId`` with trainings_get to read its own curves.
``createdAt`` is when the run was launched (ISO 8601 UTC), or null if
unknown. Entries are sorted oldest-to-newest by ``createdAt``. Statuses
are surfaced verbatim (e.g. 'finished', 'failed', 'cancelled',
'stopped', 'running'). Pick a ``trainingId`` and pass it to
trainings_get, trainings_cancel, or trainings_stop.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `version_number` | integer | Yes | Version number whose trainings to list. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Trainings stop

**Slug:** `ROBOFLOW_MCP_TRAININGS_STOP`

Request an early stop on an in-flight training run.

Distinct from cancel: the run finishes the current phase gracefully
(mining or training) instead of terminating immediately.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug; 'workspace/my-project' is also accepted. |
| `training_id` | string | No | Training id from trainings_list to stop a specific run. Omit to target the version's sole run; required when the version owns several runs. |
| `version_number` | integer | Yes | Version number whose training to stop early. |

### Trash list

**Slug:** `ROBOFLOW_MCP_TRASH_LIST`

List soft-deleted items currently in the workspace Trash.

Deleted projects, versions, workflows, and trainings stay in the
Trash for 30 days before permanent removal. Use the returned item
type and document id with the matching ``trash_restore_*`` tool to
recover an item.

### Trash restore project

**Slug:** `ROBOFLOW_MCP_TRASH_RESTORE_PROJECT`

Restore a soft-deleted project from the workspace Trash.

Undoes ``projects_delete`` while the project is still within its
30-day retention window.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `item_id` | string | Yes | Document id of the trashed project, from the delete response or trash_list. |

### Trash restore training

**Slug:** `ROBOFLOW_MCP_TRASH_RESTORE_TRAINING`

Restore a soft-deleted training run from the workspace Trash.

Undoes ``trainings_delete`` while the training is still within its
30-day retention window.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `item_id` | string | Yes | Document id of the trashed training, from the delete response or trash_list. |

### Trash restore version

**Slug:** `ROBOFLOW_MCP_TRASH_RESTORE_VERSION`

Restore a soft-deleted dataset version from the workspace Trash.

Undoes ``versions_delete`` while the version is still within its
30-day retention window. ``parent_id`` is the parent project's
document id.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `item_id` | string | Yes | Document id of the trashed version, from the delete response or trash_list. |
| `parent_id` | string | Yes | Parent project document id; required when restoring a version. |

### Trash restore workflow

**Slug:** `ROBOFLOW_MCP_TRASH_RESTORE_WORKFLOW`

Restore a soft-deleted workflow from the workspace Trash.

Undoes ``workflows_delete`` while the workflow is still within its
30-day retention window.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `item_id` | string | Yes | Document id of the trashed workflow, from the delete response or trash_list. |

### Trt fleet model settings get

**Slug:** `ROBOFLOW_MCP_TRT_FLEET_MODEL_SETTINGS_GET`

Read the model's inherited or explicit future compilation settings.

This does not change automatic compilation consent. API credentials
cannot change workspace or model automatic settings; use the Roboflow app.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model_id` | string | Yes | Model ID from models_list or trainings_list; the model must belong to this workspace. |

### Trt fleet quote

**Slug:** `ROBOFLOW_MCP_TRT_FLEET_QUOTE`

Quote compilation for a trained model before reserving credits.

Requires a sealed trusted FP32 ONNX source. The quote shows the maximum
credit reservation and hourly rate. Only successful native compilation
time is charged; unused reservation is released. The quote ID reflects
the source, target profiles, and price. If any changes, request returns
a conflict; fetch a new quote and obtain approval for its terms.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model_id` | string | Yes | Model ID from models_list or trainings_list; the model must belong to this workspace. |
| `target_ids` | string | No | Target IDs from trt_fleet_settings_get. Omit to use the workspace's saved targets. Keep the same selection for quote and request. |

### Trt fleet request

**Slug:** `ROBOFLOW_MCP_TRT_FLEET_REQUEST`

Reserve credits and enqueue paid compilation after the user approves the quote.

Repeating the same request reuses matching jobs. A changed quote returns
a conflict; quote again before retrying. A queued job can wait for a
build device and expires after 24 hours without a charge. Poll
trt_fleet_status for each variant's outcome; enqueueing is not success.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model_id` | string | Yes | Model ID from models_list or trainings_list; the model must belong to this workspace. |
| `quote_id` | string | Yes | quoteId from a current trt_fleet_quote for this model and targets. |
| `target_ids` | string | No | Target IDs from trt_fleet_settings_get. Omit to use the workspace's saved targets. Keep the same selection for quote and request. |

### Trt fleet settings get

**Slug:** `ROBOFLOW_MCP_TRT_FLEET_SETTINGS_GET`

Read fleet availability, enrolled targets, and current pricing.

Cloud TRT is off by default, including on Enterprise. The response's
pricing.trainingId is the consent ID for trainings_create; pricing.id
identifies the current fleet price. Automatic compilation settings are
read-only through API credentials and must be changed in the Roboflow app.
A disabled feature or unavailable fleet can block new work.

### Trt fleet status

**Slug:** `ROBOFLOW_MCP_TRT_FLEET_STATUS`

Poll a model's compilation jobs and their charges or failures.

Jobs can be awaiting_source, queued, running, finalizing, succeeded,
failed, or expired. A request response only confirms admission; check
this status for the final result and chargedCredits.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `model_id` | string | Yes | Model ID from models_list or trainings_list; the model must belong to this workspace. |

### Universe dataset images search

**Slug:** `ROBOFLOW_MCP_UNIVERSE_DATASET_IMAGES_SEARCH`

Search images inside a public Universe dataset given its URL.

Accepts a full Universe dataset URL and derives the workspace and
project slugs from it before searching the dataset's images.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results |
| `query` | string | No | Search prompt for image discovery inside this public dataset |
| `offset` | integer | No | Result offset for pagination |
| `dataset_url` | string | Yes | Full Universe dataset URL, e.g. https://universe.roboflow.com/workspace/project |

### Universe search

**Slug:** `ROBOFLOW_MCP_UNIVERSE_SEARCH`

Search Roboflow Universe for datasets or models.

With result_type 'model', each result lists its runnable modelVersions,
each with the exact model_id to deploy or run, older versions included.

The query supports operators mixed with free-text:
- Add 'model' to only return datasets with trained models
- 'class:helmet,person' filters by class names
- 'images>500' filters by image count (also >=, <, <=)
- 'sort:stars' sorts results (stars, images, downloads, views, updated)
- 'object detection' filters by project type
- 'updated:30d' filters by recency

Example: 'fire smoke class:fire,smoke images>200 model sort:stars'

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number starting at 1 |
| `limit` | integer | No | Maximum number of results |
| `query` | string | Yes | Universe search query |
| `result_type` | string | No | Optional result type filter |

### Versions delete

**Slug:** `ROBOFLOW_MCP_VERSIONS_DELETE`

Delete a dataset version, moving it to the workspace Trash.

This is a soft delete: the version stays in the Trash for 30 days
and can be restored with ``trash_restore_version`` using the
version's document id and ``parent_id`` set to the parent project's
document id (both are in the delete response or ``trash_list``).
After 30 days it is permanently removed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `version_number` | integer | Yes | Version number to delete |

### Versions export

**Slug:** `ROBOFLOW_MCP_VERSIONS_EXPORT`

Check or trigger a dataset export for a version.

Public projects can be exported by their full workspace/project ID without
forking. Canonical ownership and visibility checks additionally require
workspace:read and project:read. Private projects remain restricted to
the connected workspace.

Generation must finish first: use versions_get to check ``generating``
and poll roughly once a minute while it is true. An export request made
during generation is rejected and does not queue the export.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug or workspace/project ID; public projects in another workspace are supported. |
| `export_format` | string | Yes | Export format such as 'coco', 'yolov8', or 'jsonl' |
| `version_number` | integer | Yes | Version number |

### Versions generate

**Slug:** `ROBOFLOW_MCP_VERSIONS_GENERATE`

Create a new dataset version with optional preprocessing and augmentation.

Reuse an existing ready version when its images, labels, and splits
match the training request. Use trainings_describe_recipe and
trainings_create for model-specific online preprocessing and
augmentation. This tool uses the REST generation route, which still
applies version transforms and has no training-purpose option.

Preprocessing and augmentation choices are user decisions: confirm the
desired options with the user before generating rather than assuming
defaults.

Pass each option in the shape this tool's schema shows. The platform
rejects its internal saved shape (``{"enabled": true, ...}``,
``remap.labels``, ``crop.percent``) and the step lists that
trainings_create recipes use.

Generation continues after this tool returns and can take several minutes.
While ``generating`` is true, poll versions_get roughly once a minute
before starting training or requesting an export. The export request is
not queued while generation is in progress.

Returns the version number, image count, split sizes, and readiness fields.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `augmentation` | string | No | Augmentation options, e.g. {"image": {"versions": 3}, "flip": {"horizontal": true, "vertical": false}, "brightness": {"brighten": true, "darken": true, "percent": 15}}. |
| `preprocessing` | string | No | Preprocessing options, e.g. {"auto-orient": true, "resize": {"width": 640, "height": 640, "format": "Stretch to"}}. |
| `business_context` | string | No | Brief description of the business problem this version addresses, if the user has shared one. |

### Versions get

**Slug:** `ROBOFLOW_MCP_VERSIONS_GET`

Get info about a dataset version including splits and its trainings.

A workspace/project ID from Universe can also be read when the project is
public; canonical visibility checks additionally require workspace:read
and project:read. Private projects remain restricted to the connected
workspace.

Returns version details with id, name, images, splits, preprocessing,
augmentation, and a ``trainings`` summary (one entry per training on the
version: ``trainingId``, ``status``, ``modelType``, ``modelGroup``,
``modelIds``). Use trainings_get for a single run's detail and metrics.

Readiness fields report generation state for callers that need to poll:
``generating`` is true only while generation looks actively in progress,
and ``ready`` is true once generation is not active AND at least one
train/valid/test split count is present. Generation usually takes several
minutes and can take up to about an hour on large datasets, with
``progress`` stuck at 0 or null for most of that wait: that is normal,
not stuck. Poll this tool roughly once a minute until ``ready`` is true.
Trainability floors (min images per split, labels, NAS mins) are enforced
by the platform train endpoint; if ``ready`` is false only because splits
are empty/insufficient, waiting will not help. Call trainings_create and
surface that error.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `project_id` | string | Yes | Project slug (e.g. 'my-project'); 'workspace/my-project' is also accepted. |
| `version_number` | integer | Yes | Version number |

### Video pull capabilities

**Slug:** `ROBOFLOW_MCP_VIDEO_PULL_CAPABILITIES`

Check available URL schemes, providers and source limits before adding a camera.

### Video pull create

**Slug:** `ROBOFLOW_MCP_VIDEO_PULL_CREATE`

Add a camera and start its connection test. Poll video_pull_get until testing ends.

Choose either a URL or a provider listed by video_pull_capabilities.
The returned idempotencyKey is needed to safely retry a lost response.
Camera URL fields are omitted from results because they may carry secrets.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | No | Public RTSP, RTSPS or supported HLS URL; may contain credentials. |
| `name` | string | Yes | Camera name. |
| `password` | string | No | Camera password, if required. |
| `provider` | string | No | Connected provider camera: connectionId, cameraId and optional resolution. |
| `username` | string | No | Camera username, if required. |
| `accept_terms` | boolean | Yes | Confirm you may connect Roboflow to this camera. |
| `idempotency_key` | string | No | Reuse this key only to retry the same create request. |

### Video pull get

**Slug:** `ROBOFLOW_MCP_VIDEO_PULL_GET`

Poll connection testing and inspect status, certificate, codec and errors.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source_id` | string | Yes | Video source ID. |

### Video pull update

**Slug:** `ROBOFLOW_MCP_VIDEO_PULL_UPDATE`

Rename, change, or retest a camera. Poll video_pull_get for the test result.

A URL, credential, or certificate change may restart active Workflows. The
API rejects it until restart_workflows=true explicitly confirms that impact.
Set trust_certificate=true only after reviewing the pinned/blocked fingerprint.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | No | New public camera URL. |
| `name` | string | No | New camera name. |
| `retest` | string | No | Test the stored address again. |
| `password` | string | No | New camera password. |
| `username` | string | No | New camera username. |
| `source_id` | string | Yes | Video source ID. |
| `restart_workflows` | string | No | Confirm active Workflows may restart and lose tracker and session state. |
| `trust_certificate` | string | No | Trust and pin the certificate currently presented by the camera. |

### Video segments annotate

**Slug:** `ROBOFLOW_MCP_VIDEO_SEGMENTS_ANNOTATE`

Annotate one Action Recognition video Source with a complete video-coco document.

To have a model label a batch of videos instead, use autolabel_start with
model='video-segment'.

Upload the video with image_upload_files when the host supplies it in the files input; if you would have to invent
download_url or file_id, use video_upload if the client can
PUT the bytes to the signed URL. For image_upload_files, first poll
image_upload_status until ZIP processing completes, then poll
video_upload_status for each returned video ID. Use the final videoId
once status is "uploaded" (it can differ from the staged ID after
deduplication). The ZIP status videoIds list stops at 100 IDs; if videosStaged
exceeds the returned list length or failedChunks > 0, counts may be incomplete.
Find remaining videos with images_search(project_id, media_types=["video"]),
poll video_upload_status for unverified videos, and report a partial import
if they cannot all be accounted for.
Preserve the video's native PTS, frame indices, and rational time base.
The API creates unknown classes unless the project locks them. It
controls overwrite, split, and Dataset membership. No training starts.
With job_name, saving moves the Source from its batch or current job to
the named job, even if add_to_dataset=false. When adding to the Dataset
without a name, a Source outside a job moves from its batch into
"Annotated via API"; a Source already in a job stays there. Saving
without Dataset addition or a job name preserves placement.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `split` | string | No | Assign train, valid, or test split; omit to use the API default. |
| `document` | object | Yes | Complete roboflow-video-coco document with videos, categories, segments, native frame indices, PTS, and rational time_base. |
| `job_name` | string | No | Move the video Source into this annotation job, creating it if needed. Omit to use the API's placement rules. |
| `video_id` | string | Yes | Final videoId from the video_upload_status response with status 'uploaded' (the canonical Source ID after deduplication). |
| `overwrite` | boolean | No | Replace different existing segments. Without this, identical retries succeed and conflicts return 409 with prior annotations preserved. |
| `project_id` | string | Yes | Action Recognition project slug, or workspace/project. |
| `add_to_dataset` | string | No | Add the video Source to the Dataset. Omit for the API default (true); false preserves existing membership. |

### Video upload

**Slug:** `ROBOFLOW_MCP_VIDEO_UPLOAD`

Prepare a signed URL for uploading one local video (MP4 or MOV).

Set project_id for a project video, for example one you will label with
video_segments_annotate. Omit it for a workspace Asset Library video to
use as a direct device stream on supported edge releases or with an
RTSP Simulator. Split and batch require a project. This tool does not
read or upload local files: the client HTTP PUTs the bytes to the returned
signed URL.

Prefer image_upload_files for MP4/MOV files in video-only projects when the
host supplies them in the files input, including local paths when the host
transfers them. If you would have to invent download_url or file_id, use video_upload.
For other project types, use video_upload because ZIP imports skip videos. Use this signed-URL fallback when the host cannot
transfer the selected video or it exceeds the file transfer tool's 1 GB limit,
and the client can read and PUT the file. If sandbox networking blocks storage,
use host-assisted transfer for video-only projects or the web uploader instead
of repeating failed PUTs.

Returns signedUrl, requiredHeaders, videoId, and client-side instructions.

Remaining steps after this returns (detailed in the response instructions):
1. HTTP PUT the raw video file to signedUrl with every requiredHeaders entry
   plus a Content-Type header.
2. Poll video_upload_status(video_id) every few seconds until status is
   "uploaded" or "failed". Use the videoId from the "uploaded" response.

A direct edge stream uses ``asset://<finalVideoId>`` as its
video_reference on supported releases. The caller needs image:read and
access to the uploaded video; the device API key needs image:read and
access to its folder. Direct playback needs network access, free disk
space, and a video within the device cache limit (1 GiB by default).
For nearby-claimed runtime keys, use the RTSP Simulator.

Re-uploading identical bytes creates no new video. It updates the existing
one instead: its metadata changes and tags are added; project uploads also
update its split. Use the final videoId from video_upload_status.

Up to 3 GB per video. Signed URL expires in 1 hour.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `split` | string | No | Dataset split for the video; omit for the API default (train). |
| `filename` | string | Yes | Filename of the local video, e.g. 'clip.mp4'. Only the base name is sent and used as the video name. |
| `metadata` | string | No | Key-value metadata to store on the video (e.g. camera, location, date). |
| `tag_names` | string | No | Tags to attach to the video |
| `batch_name` | string | No | Group the upload under a named batch |
| `project_id` | string | No | Project slug (e.g. 'my-project'); omit for a workspace Asset Library video. |
| `content_type` | string | No | Video MIME type, only for a filename with no extension. Omit to infer it from the .mp4 or .mov extension. |

### Video upload status

**Slug:** `ROBOFLOW_MCP_VIDEO_UPLOAD_STATUS`

Check ingestion of a raw video upload or a video staged from a ZIP.

Use after the raw video PUT (video_upload step 1), or for each videoId
returned by image_upload_status after image_upload_files or image_upload.
Poll every 3-5 seconds while status is "pending"; "uploaded" and "failed"
are terminal, and "failed" includes a message.

When status is "uploaded", the response videoId is the final video ID (the
canonical Source ID). On supported edge releases, use
``asset://<finalVideoId>`` as the direct device stream video_reference
for an uploaded Asset Library video, or configure an RTSP Simulator.
The caller needs image:read and video access; the device API key needs
image:read and access to the video's folder. Direct playback needs
network access, free disk space, and a video within the device cache
limit (1 GiB by default). Use the RTSP Simulator for nearby-claimed keys.
For project videos, pass the final ID to video_segments_annotate. It can
differ from the id you polled with: when an identical video already
existed, the upload is deduplicated, duplicate is true, and videoId names
the existing video. That video takes the metadata of the new upload
and gains its tags; project uploads also update its split.
resolvedBatch is null for duplicates. Otherwise
resolvedBatch names the batch the video joined.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | videoId from video_upload or result.videoIds from image_upload_status |

### Vision events custom metadata schema get

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_CUSTOM_METADATA_SCHEMA_GET`

Get the custom-metadata schema discovered for a use case.

Custom metadata is arbitrary key/value data attached to events at
ingestion time. This returns the fields seen so far and their value
types, which is what you need to build ``customMetadataFilters`` for
``vision_events_query``. Keys attached to individual images
(``images[].metadata``) are listed separately by
``vision_events_image_metadata_schema_get``.

Returns ``{useCaseId, fields}`` where ``fields`` maps each field name to
the value types observed for it (string, number, and/or boolean).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `use_case_id` | string | Yes | Use case id. |

### Vision events delete

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_DELETE`

Delete Vision Events by ID, with an explicit option to remove unshared media.

Event deletion is a soft delete. By default, media stays in the Asset
Library. With ``delete_media=True``, the platform permanently removes
only media that no other live event, project, dataset, eval dataset, or
bucket mirror uses. This requires ``project:update`` as well as Vision
Events deletion access. The platform returns ``deleted``, ``notFound``
and, when requested, ``media: {deleted, kept, failed}``. A kept count
means that media was not removed; a failed cleanup may follow event
deletion. Check the returned summary before reporting the outcome.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `event_ids` | array | Yes | Non-empty list of event IDs to delete. |
| `use_case_id` | string | Yes | Use case containing the events. |
| `delete_media` | boolean | No | Also permanently delete media used only by these events. Requires project:update in addition to vision-events:manage; folder-scoped API keys cannot use this option. |

### Vision events image metadata schema get

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_IMAGE_METADATA_SCHEMA_GET`

Get the per-image metadata schema discovered for a use case.

Per-image metadata is key/value data attached to an individual image
inside an event (for example the camera or station that captured it),
as opposed to the event-level ``customMetadata`` covered by
``vision_events_custom_metadata_schema_get``. In
``vision_events_query`` results it appears on each image as
``images[].metadata``. This returns the keys seen so far and their
value types, which is what you need to build ``imageMetadataFilters``
for ``vision_events_query``.

Returns ``{useCaseId, fields}`` where ``fields`` maps each key to the
value types observed for it (string, number, and/or boolean). A key
holding date-like strings may instead report a raw storage type such
as ``DateTime64(9)``; such a key is not returned in
``images[].metadata`` and cannot be used in ``imageMetadataFilters``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `use_case_id` | string | Yes | Use case id. |

### Vision events query

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_QUERY`

Query production vision events for a use case, with filters and pagination.

This is the primary tool for answering questions like "what safety
alerts fired in the last week?" or "how many failed quality checks did
device X report yesterday?". Combine ``start_time``/``end_time`` with
``event_types`` for time-bounded reporting, then page with ``cursor``.

Returns ``{events, nextCursor, hasMore, lookbackDays}``. ``hasMore`` is
true when more pages exist; pass ``nextCursor`` back as ``cursor`` to
fetch them. ``lookbackDays`` is the workspace's maximum history window,
queries cannot see events older than that regardless of ``start_time``.

Each event generally carries ``eventId``, ``eventType``, ``timestamp``,
``eventData`` (type-specific), ``images`` with their detections, and
event-level ``customMetadata``. Each image may also carry its own
``metadata``, a flat map of per-image keys (string, number, or boolean
values) returned as ``images[].metadata``. Fields such as ``deviceId``,
``streamId``, ``workflowId``, and ``displayImagePosition`` appear only
when set on the event. The use case is not echoed back per event
because the result is already scoped to the ``use_case_id`` you passed,
so don't rely on a ``useCaseId``/``solution`` field being present on
each event.

To run a search someone saved in the Search tab, pass its id as
``saved_filter_id`` (list them with ``vision_events_saved_filters_list``)
instead of filters; only ``limit`` and ``cursor`` can go with it. Saved
filters exclude ``operator_feedback`` events, as the Search tab does.

To filter on metadata, discover the keys first:
``vision_events_custom_metadata_schema_get`` lists the event-level keys
for ``customMetadataFilters`` and
``vision_events_image_metadata_schema_get`` lists the per-image keys
for ``imageMetadataFilters``. Pass either list through
``additional_filters``. An ``imageMetadataFilters`` item matches an
event when any of its images satisfies it, while ``neq``/``not_in``
match only when none of its images does.

To find a known event, pass its ID as ``event_id``. For other Event ID
comparisons, pass ``additional_filters={"eventId": {"operator":
"in", "value": ["event-1", "event-2"]}}`` (or ``eq``, ``neq``,
``not_in``). Event ID filtering stays within the use case and lookback
window and combines with any other supplied filters.

For OR conditions, pass ``filterGroup`` through ``additional_filters``.
Each leaf combines its own predicates with AND; groups use ``op`` and
``items`` to combine leaves or nested groups. Flat filters are ANDed
with the group, and time bounds apply to the whole query.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size (1-1000, default 100). |
| `cursor` | string | No | Pagination cursor from a previous page's 'nextCursor'. |
| `end_time` | string | No | ISO 8601 upper bound on event timestamp. |
| `event_id` | string | No | Only the event with this event ID (exact match). For neq, in, or not_in, pass eventId through additional_filters instead. |
| `device_id` | string | No | Only events from this device id (exact match). |
| `stream_id` | string | No | Only events from this stream id (exact match). |
| `start_time` | string | No | ISO 8601 lower bound on event timestamp (e.g. '2026-06-15T00:00:00Z'). Results are also capped by the workspace's lookback window, returned as 'lookbackDays'. |
| `event_types` | string | No | Filter to these event types. Valid values: quality_check, inventory_count, safety_alert, custom, operator_feedback. Max 20. |
| `use_case_id` | string | Yes | Use case to query (the bucket events are grouped under). Discover available ids with vision_events_use_cases_list. |
| `workflow_id` | string | No | Only events from this workflow id (exact match). |
| `saved_filter_id` | string | No | Run a filter saved for this use case (id from vision_events_saved_filters_list), applied as the Search tab applies it. A saved filter is the whole search: pass it instead of filters, with only limit and cursor alongside. Passing it with any other filter is refused. |
| `additional_filters` | string | No | Advanced structured filters merged into the query body, for cases the typed parameters above don't cover. Supported keys: 'detection' {operator: eq&#124;neq&#124;in&#124;not_in, value: str&#124;str[], confidence?: {operator: gt&#124;gte&#124;lt&#124;lte, value: 0-1}}; 'customMetadataFilters' [{field, operator, value, type: string&#124;number&#124;boolean}] on event-level customMetadata keys; 'imageMetadataFilters' [same item shape] on per-image metadata keys (images[].metadata), where an event matches when ANY of its images satisfies the comparison and neq/not_in match only when NO image does (so events whose images lack the key match a neq). For both metadata filter lists, operators by type are string: eq&#124;neq&#124;in&#124;not_in&#124;text&#124;exists&#124;not_exists (in/not_in take up to 50 strings), number: eq&#124;neq&#124;gt&#124;gte&#124;lt&#124;lte&#124;exists&#124;not_exists, boolean: eq&#124;neq&#124;exists&#124;not_exists; max 20 filters each. Text operators are contains&#124;not_contains&#124;starts_with&#124;not_starts_with&#124;ends_with&#124;not_ends_with (case-sensitive). Existence operators omit value; type is optional for them. Negated operators match missing fields. 'eventFieldFilters' [{column: event_type&#124;result&#124;location&#124;item_count&#124;item_type&#124;alert_type&#124;severity&#124;feedback&#124;related_event_id&#124;description&#124;custom_value, operator, value?}]; 'eventId' {operator: eq&#124;neq&#124;in&#124;not_in, value: string or a nonempty list of up to 50 IDs, each at most 256 characters}; 'deviceId'&#124;'streamId'&#124;'workflowId'&#124;'externalId' {operator: eq&#124;neq&#124;in&#124;not_in&#124;text&#124;exists&#124;not_exists, value?}; 'filterGroup' {op: and&#124;or, items: [group or leaf]} ANDed with flat filters. A leaf uses the same filter keys but not useCaseId/startTime/endTime. Max depth 5, 20 groups and 50 predicates across the tree and flat filters. 'imageCount' {operator, value}; 'hasWarnings' bool; 'feedbackStatus' [correct&#124;incorrect&#124;inconclusive&#124;none]. To match a device/stream/workflow with neq, pass it here as {operator: 'neq', value: ...} instead of the typed parameter. |

### Vision events saved filters list

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_SAVED_FILTERS_LIST`

List the filters saved for a use case.

Saved filters are named Search-tab filter sets, shared with the whole
workspace. Run one with ``vision_events_query`` and its
``saved_filter_id``. Returns ``{savedFilters}``, sorted by name. Each carries
``id``, ``name``, ``filters`` (the flat chips, in the shape described on
``vision_events_saved_filter_create``), optional ``group`` (AND/OR
chips), ``createdBy`` and ``updatedBy`` (user ids), and
``createdAt``/``updatedAt``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `use_case_id` | string | Yes | Use case id. |

### Vision events saved filter create

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_SAVED_FILTER_CREATE`

Save a named filter for a use case, shared with the whole workspace.

Everyone in the workspace sees it in the use case's Search tab. Needs
the Create Vision Events permission. A use case holds at most 100
saved filters; a duplicate name or a full use case is refused with a
409. Returns ``{savedFilter}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Name shown in the Search tab (1-100 characters, unique per use case ignoring case). |
| `group` | string | No | Optional {op: and&#124;or, items: [chip or nested group]} combined with flat filters using AND. Group chips use the filters item shape; dates stay in flat filters. Up to 5 levels and 50 chips total. |
| `filters` | array | Yes | Flat Search-tab filter chips, combined with AND (0-50 items; at least one chip across filters and group). Each item is {category, operator, label, value?, field?, type?, confidence?}. category: eventType&#124;deviceId&#124;streamId&#124;workflowId&#124;eventId&#124;externalId&#124;customMetadata&#124;eventField&#124;startDate&#124;endDate&#124;detection&#124;imageCount&#124;videoCount&#124;hasWarnings&#124;hasFeedback. operator: eq&#124;neq&#124;gt&#124;gte&#124;lt&#124;lte&#124;in&#124;not_in&#124;contains&#124;not_contains&#124;starts_with&#124;not_starts_with&#124;ends_with&#124;not_ends_with&#124;exists&#124;not_exists. Text operators need a non-empty string; exists/not_exists must omit value. Other values are a string, number, boolean, or list of strings. label: the text shown on the chip in the Search tab, e.g. 'Device: cam-1' (required). customMetadata needs field (the key, see vision_events_custom_metadata_schema_get) and type (string&#124;number&#124;boolean); eventField needs field (an event column such as result, severity, description or custom_value); eventId takes one ID or up to 50 IDs for in/not_in; detection takes a class name or list and may add confidence {operator, value 0-1}; hasFeedback takes a list of correct&#124;incorrect&#124;inconclusive&#124;none; hasWarnings takes true. startDate and endDate take an ISO date or a relative date like 'now-7d', which is stored as written so the filter keeps meaning the last 7 days. Use one condition per category, except customMetadata and eventField, which can repeat. The platform rejects filters the event query would reject. |
| `use_case_id` | string | Yes | Use case id. |

### Vision events saved filter delete

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_SAVED_FILTER_DELETE`

Delete a saved filter for everyone in the workspace.

Allowed for the person who saved it, or with ``vision-events:manage``
and the Manage Vision Events permission. A plain API key is never the
person who saved a filter, so with one this needs
``vision-events:manage``. Events are not affected. Returns
``{success}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `use_case_id` | string | Yes | Use case id. |
| `saved_filter_id` | string | Yes | Saved filter id to delete. |

### Vision events saved filter get

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_SAVED_FILTER_GET`

Get one saved filter. Returns ``{savedFilter}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `use_case_id` | string | Yes | Use case id. |
| `saved_filter_id` | string | Yes | Saved filter id, from vision_events_saved_filters_list. |

### Vision events saved filter update

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_SAVED_FILTER_UPDATE`

Rename a saved filter, replace its flat chips or group, or remove its group.

Saving over replaces the filter's chips for everyone in the workspace
and needs ``vision-events:write`` with the Create Vision Events
permission; it works on any saved filter, and changing someone else's
is recorded in the workspace audit log. Renaming needs the person who
saved the filter, or ``vision-events:manage`` with the Manage Vision
Events permission. A plain API key is never the person who saved a
filter, so with one, renaming needs ``vision-events:manage``. Returns
``{savedFilter}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New name, to rename the filter. |
| `group` | string | No | Replacement {op: and&#124;or, items: [chip or nested group]}; null removes the existing group. Omit to keep it unchanged. An empty object also means unchanged. Dates stay in flat filters. |
| `filters` | string | No | Replacement chips, to save over the filter. Flat Search-tab filter chips, combined with AND (0-50 items; at least one chip across filters and group). Each item is {category, operator, label, value?, field?, type?, confidence?}. category: eventType&#124;deviceId&#124;streamId&#124;workflowId&#124;eventId&#124;externalId&#124;customMetadata&#124;eventField&#124;startDate&#124;endDate&#124;detection&#124;imageCount&#124;videoCount&#124;hasWarnings&#124;hasFeedback. operator: eq&#124;neq&#124;gt&#124;gte&#124;lt&#124;lte&#124;in&#124;not_in&#124;contains&#124;not_contains&#124;starts_with&#124;not_starts_with&#124;ends_with&#124;not_ends_with&#124;exists&#124;not_exists. Text operators need a non-empty string; exists/not_exists must omit value. Other values are a string, number, boolean, or list of strings. label: the text shown on the chip in the Search tab, e.g. 'Device: cam-1' (required). customMetadata needs field (the key, see vision_events_custom_metadata_schema_get) and type (string&#124;number&#124;boolean); eventField needs field (an event column such as result, severity, description or custom_value); eventId takes one ID or up to 50 IDs for in/not_in; detection takes a class name or list and may add confidence {operator, value 0-1}; hasFeedback takes a list of correct&#124;incorrect&#124;inconclusive&#124;none; hasWarnings takes true. startDate and endDate take an ISO date or a relative date like 'now-7d', which is stored as written so the filter keeps meaning the last 7 days. Use one condition per category, except customMetadata and eventField, which can repeat. The platform rejects filters the event query would reject. |
| `use_case_id` | string | Yes | Use case id. |
| `saved_filter_id` | string | Yes | Saved filter id to change. |

### Vision events use cases list

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_USE_CASES_LIST`

List the vision-event use cases in the workspace.

Use cases are the logical buckets events are grouped under; every query
is scoped to one. Call this first to discover the ``id`` values to pass
as ``use_case_id`` to ``vision_events_query``.

Returns ``{useCases, lookbackDays}``. Each use case reliably carries
``id`` (the value to pass as ``use_case_id`` elsewhere), ``name``, and
``status``; other fields (timestamps, and any per-use-case counts or
event-type summaries) may or may not be present depending on the
workspace, so treat them as optional rather than guaranteed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `status` | string | No | Filter by lifecycle status: 'active' (default) or 'inactive' (archived). |

### Vision events use case archive

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_USE_CASE_ARCHIVE`

Archive a vision-event use case.

Sets the use case to ``inactive``: it is hidden from the default
``active`` listing and incoming events for it are rejected at ingestion,
so this can disrupt a live pipeline. The use case and its existing
events are preserved and it can be restored with
``vision_events_use_case_unarchive``. Returns ``{success}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `use_case_id` | string | Yes | Use case id to archive. |

### Vision events use case create

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_USE_CASE_CREATE`

Create a new vision-event use case.

Use cases are the buckets that incoming events are grouped under.
Returns ``{id, name}``; use the returned ``id`` as ``use_case_id`` when
querying or ingesting events for this bucket.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Human-readable name for the new use case. |

### Vision events use case rename

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_USE_CASE_RENAME`

Rename an existing vision-event use case.

Only the display name changes; the ``id`` and all associated events are
preserved. Returns ``{id, name}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | New human-readable name. |
| `use_case_id` | string | Yes | Use case id to rename. |

### Vision events use case unarchive

**Slug:** `ROBOFLOW_MCP_VISION_EVENTS_USE_CASE_UNARCHIVE`

Restore a previously archived vision-event use case.

The reverse of ``vision_events_use_case_archive``; the use case returns
to the default ``active`` listing. Returns ``{success}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `use_case_id` | string | Yes | Use case id to unarchive. |

### Workflows create

**Slug:** `ROBOFLOW_MCP_WORKFLOWS_CREATE`

Create and save a new Workflow in the workspace.

Use agent_chat for natural-language creation requests, including simple
detection goals. It builds and validates through the Roboflow in-app
agent. This low-level tool saves an explicit definition supplied by the
user or an existing integration; it does not build or validate it.
Validate that config with workflow_specs_validate before saving. Do not
use this as a fallback after an agent build or validation failure.
Validation supports OAuth and API-key connections with required permissions.

Once saved, execute the published workflow by URL slug with
workflows_run. Saving does not test inference.

Returns the created workflow including its document ID. Save
this ID: it is required for workflows_update.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Human-readable workflow name |
| `config` | object | Yes | Workflow JSON definition with 'version', 'inputs', 'steps', and 'outputs' |
| `business_context` | string | No | Brief description of the business problem this workflow addresses, if the user has shared one. |

### Workflows delete

**Slug:** `ROBOFLOW_MCP_WORKFLOWS_DELETE`

Delete a saved Workflow, moving it to the workspace Trash.

This is a soft delete: the workflow stays in the Trash for 30 days
and can be restored with ``trash_restore_workflow`` using the
workflow's document id from the delete response or ``trash_list``.
After 30 days it is permanently removed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_url` | string | Yes | Workflow URL slug (the `url` field from workflows_list). |

### Workflows get

**Slug:** `ROBOFLOW_MCP_WORKFLOWS_GET`

Get a saved workflow. Use draft=true before editing its current draft.

An enrolled workflow returns workflow.branchSave with its editable config.
Pass that exact receipt to workflows_update or workflow_versions_save.
If the branch changes concurrently, reload and reconcile your edit; never
obtain a newer receipt solely to make a stale edit overwrite it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `draft` | boolean | No | Read the editable draft and its branchSave receipt instead of the published version. |
| `workflow_id` | string | Yes | Workflow URL slug or ID |

### Workflows list

**Slug:** `ROBOFLOW_MCP_WORKFLOWS_LIST`

List saved workflows in the current workspace.

Returns up to ``limit`` workflows plus ``total``, the full workspace
workflow count. Page with ``offset`` when ``total`` exceeds ``limit``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of workflows to return |
| `offset` | integer | No | Number of workflows to skip, for paging |

### Workflows preview

**Slug:** `ROBOFLOW_MCP_WORKFLOWS_PREVIEW`

Show a saved Workflow's results on one workspace image or video, in an interactive player.

Use this when the user wants to see a Workflow's output images, values and JSON on their
own media. Each call runs the Workflow and spends credits; a video runs as a job on a clip
of 60 s at most. Sink blocks (webhooks, uploads, notifications) run unless disable_sinks
is true. Only Workflows with exactly one image input can be previewed; the platform
refuses others before running, and the refusal is returned.
For usage guidance, read skill://roboflow-apps/workflow-preview/SKILL.md.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | No | Asset Library video id. Give this or source_id. |
| `source_id` | string | No | Asset Library image id. Give this or video_id. |
| `parameters` | string | No | Values for the Workflow's own non-image inputs, by input name. |
| `workflow_id` | string | Yes | Saved Workflow URL slug or ID |
| `disable_sinks` | boolean | No | Skip the Workflow's sink blocks (webhooks, uploads, notifications). They run by default, as in the app's Workflow preview. |
| `trim_start_ms` | string | No | Video only: where the clip starts, in milliseconds. |
| `trim_duration_ms` | string | No | Video only: clip length in milliseconds, 60000 at most (the default and the cap). |

### Workflows run

**Slug:** `ROBOFLOW_MCP_WORKFLOWS_RUN`

Execute a saved Workflow on one or more images.

Runs a previously created Workflow against the provided images on
the Roboflow serverless infrastructure. This always hits the
latest **published** version of the workflow, never an unpublished
draft.

Images are processed synchronously; calls with many images take
proportionally longer.

Workflow blocks may send data to external services or change existing records.
Execution therefore requires the same care as those configured actions.
Returns workflow outputs as defined by the workflow's output blocks.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `images` | object | Yes | Map of input names to image values (HTTPS URLs or base64). Example: {'image': 'https://...'} |
| `parameters` | string | No | Optional runtime parameters (e.g. confidence thresholds, class filters) |
| `workflow_id` | string | Yes | Workflow ID to execute |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Workflows update

**Slug:** `ROBOFLOW_MCP_WORKFLOWS_UPDATE`

Update an existing saved Workflow's name and definition, preserving its URL.

Use agent_chat for natural-language edits so the Roboflow in-app agent
builds and validates the change. This low-level tool is for an explicit
definition supplied by the user or an existing integration.
Validate the config with workflow_specs_validate before updating.
Validation and execution support OAuth and API-key connections with
the required permissions. Block types and their schemas are in the
roboflow://workflows/blocks resources.

Use workflows_get with draft=true to retrieve the editable workflow and
its branchSave receipt, then modify the returned config. Pass the same
receipt as branch_save. Branch saves stay as drafts and do not publish.
Keep the existing name when saving a branch; metadata changes are separate.
If the branch head has changed, reload and reconcile before retrying.

A Workflow with deploy gates rejects direct publishing. On that
rejection, save the definition with workflow_versions_save. Run
workflow_version_deploy_gates_run only for Eval gates. For manual approval,
read workflow_version_approval_get and have an eligible person decide in
the Roboflow app. Poll workflow_version_deploy_gates_get and call
workflow_version_deploy only when publishable is true.

Publishing a new version can stage
Workflow pins on production devices for approval. Do not assume a
successful publish changed their live config; check each device's
``devices_get_config.configProposal``. MCP cannot approve a proposal.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Updated workflow name |
| `config` | object | Yes | Updated workflow JSON definition |
| `branch_save` | string | No | The exact workflow.branchSave receipt returned by workflows_get with draft=true. |
| `workflow_id` | string | Yes | Workflow document ID — NOT the URL slug. Get it from workflows_list or workflows_create response. |

### Workflow blocks get schema

**Slug:** `ROBOFLOW_MCP_WORKFLOW_BLOCKS_GET_SCHEMA`

Get the full schema of a specific Workflow block.

Returns all properties, required fields, and descriptions for a block
identified by its manifest key (as returned by ``workflow_blocks_list``)
or by the ``type`` string used in Workflow specifications.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `manifest` | string | Yes | Block identifier: the manifest key from workflow_blocks_list, the block type used in specifications (e.g. 'roboflow_core/open_ai@v7'), or a type alias. |

### Workflow blocks list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_BLOCKS_LIST`

List all available Workflow blocks with a short summary of each.

Returns a list of blocks, each with manifest (schema key), type (the
identifier used in specifications, e.g. 'roboflow_core/open_ai@v7'),
name, block_type, and short_description. Use ``workflow_blocks_get_schema``
to get the full schema of a specific block.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `block_type` | string | No | Filter by block category. If omitted, all blocks are returned. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `result` | array | Yes |  |

### Workflow branches list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_BRANCHES_LIST`

List a Workflow's branches and Main head. Use nextCursor for another page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `after` | string | No | Cursor returned as nextCursor by the previous page. |
| `limit` | integer | No | Maximum branch count, from 1 to 100. |
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow branch get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_BRANCH_GET`

Read a selected branch's current snapshot and save receipt.

Pass branchSave as branch_save to workflows_update or workflow_versions_save
for an edit based on this snapshot. An archived or merged branch has no save
receipt. On a head conflict, reread and reconcile before saving a new edit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `branch_id` | string | Yes | Branch ID from workflow_branches_list. |
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow branch merge

**Slug:** `ROBOFLOW_MCP_WORKFLOW_BRANCH_MERGE`

Merge one branch into Main; this does not publish or start a stream.

Preview first and use its exact heads. If either head changes, preview again
and reconcile before retrying. Conflicts fail without changing Main unless
overwrite_main is explicitly requested; it can discard Main's changes.
After a successful merge, publishing is a separate action.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `branch_id` | string | Yes | Branch ID to merge. |
| `workflow_id` | string | Yes | Workflow document ID. |
| `overwrite_main` | boolean | No | Replace Main on conflict. Only use when the user explicitly asks to overwrite Main. |
| `expected_head_version_id` | string | Yes | Branch head from workflow_branch_merge_preview. |
| `expected_main_head_version_id` | string | Yes | Main head from the same merge preview. |

### Workflow branch merge preview

**Slug:** `ROBOFLOW_MCP_WORKFLOW_BRANCH_MERGE_PREVIEW`

Preview merging a branch into Main without writing or publishing.

The response reports the branch and Main heads, changes, and conflicts.
Use these exact heads for a merge based on this preview.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `branch_id` | string | Yes | Branch ID from workflows_get or workflow_branches_list. |
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow deploy gates list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_DEPLOY_GATES_LIST`

Read every configured gate and its current status for a Workflow.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow deploy gates openapi get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_DEPLOY_GATES_OPENAPI_GET`

Read the public deploy gate API OpenAPI schema.

### Workflow deploy gates workspace list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_DEPLOY_GATES_WORKSPACE_LIST`

List Eval gates in the workspace. Requires View Workflow Evals permission.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | No | Filter to gates backed by this Eval ID. |

### Workflow evals agent manifest

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_AGENT_MANIFEST`

Get the engine's agent manifest. Start here before designing or drafting an Eval.

To evaluate a Project's current model, first call project_deployment_get.
Its ``model`` and ``deployment.status`` show whether a model is ready;
``deployment.url`` is the Project base Workflow URL, which can differ from
the Project slug. If no model is configured, say so and offer to set one
with project_deployment_set_model; do not create an empty Workflow or
attach the Project base Workflow itself. Do not change a configured
serving model just to evaluate it.

For a configured model, page through workflows_list and inspect candidate
definitions with workflows_get (the published version when present).
Reuse a saved Workflow only if its definition has exactly one
``roboflow_core/inner_workflow@v1``
Project Model step pointing to the same workspace and base Workflow URL,
has no pinned version or model/parameter overrides, binds only ``image``
to ``$inputs.image``, and exposes that step's predictions. Otherwise use
workflow_specs_validate and workflows_create to save that one-step
Workflow. Its input is ``InferenceImage image``; its step is named
``model`` with ``workflow_workspace_id`` set to the workspace slug,
``workflow_id`` set to ``deployment.url``, ``workflow_version_id`` null,
and ``parameter_bindings`` set to ``{'image':'$inputs.image'}``.
Expose ``$steps.model.predictions`` as a ``JsonField`` output named
``predictions`` with ``coordinates_system`` ``own``. Attach the saved
Workflow document ID as a savedWorkflow Eval Subject and use it in the
Run. This wrapper follows the Project's current model. After that model
changes, start the next Run with ``execution_reuse='never'`` so old
outputs are not reused.

Returns ``{engineVersion, manifest}``: ``entrySkill`` plus IDs of skills,
bundles, schemas, resources, tool contracts, and examples. To draft a Spec and
its bindings yourself:
1. Read ``entrySkill`` (e.g. 'skill:workflow-evals') and the task skill
   (e.g. 'skill:create-eval') with workflow_evals_agent_resource_get.
2. Read the task bundle (e.g. 'bundle:create-eval') and fetch the schemas and
   examples listed in its ``assets`` with ``kind='asset'``.
3. Write the Spec from the user's intent, the Workflow's inputs/outputs
   (workflows_get), and the Dataset contract. Iterate with
   workflow_evals_specs_validate, then save with workflow_evals_specs_create.
4. Get bindings from workflow_evals_bindings_suggest (or write them), confirm
   with workflow_evals_bindings_validate, and review both with the user.
If ``engineVersion`` changes between calls, reload the manifest.

### Workflow evals agent resources list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_AGENT_RESOURCES_LIST`

List engine-owned agent skills or bundles. Returns ``{engineVersion, items}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `kind` | string ("skill" | "bundle") | Yes | List skills or bundles. |

### Workflow evals agent resource get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_AGENT_RESOURCE_GET`

Get one engine-owned agent resource.

``skill`` returns Markdown ``content``; ``bundle`` returns the parsed
``bundle`` whose ``assets`` IDs can be fetched with ``kind='asset'`` (schemas,
resources, tool contracts, examples). Unknown IDs or IDs from another
category return 404.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `kind` | string ("skill" | "bundle" | "asset") | Yes | Resource category the ID belongs to. |
| `resource_id` | string | Yes | Case-sensitive manifest ID, e.g. 'skill:workflow-evals', 'skill:create-eval', 'bundle:create-eval', or an asset such as 'schema:spec' or 'example:create-eval-spec'. |

### Workflow evals bindings suggest

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_BINDINGS_SUGGEST`

Propose a BindingSet mapping a Spec's inputs/outputs onto a Workflow Subject.

Returns one proposed BindingSet and the normalized ``workflowSubject``.
Nothing is saved; validate the BindingSet with workflow_evals_bindings_validate,
then save it in the Eval's ``subject_bindings`` map keyed by Subject ID.
Saved Workflow Subjects also need workflow:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `spec_id` | string | Yes | Saved Spec ID. |
| `subject` | object | Yes | Workflow Subject: {'kind':'savedWorkflow','workflowId':<Workflow document ID>,'subjectKey':<same ID>}, {'kind':'savedWorkflowVersion','workflowId':...,'workflowVersionId':...,'subjectKey':...}, or {'kind':'inline','manifest':<raw Workflow JSON>,'subjectKey':...}. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals bindings validate

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_BINDINGS_VALIDATE`

Validate a BindingSet against a Spec, Dataset, and Subject.

Returns ``{valid, diagnostics, ...}`` with the planned capture contract. A
valid BindingSet is what an Eval Run executes against. To save it on an
Eval, pass ``subject_bindings`` as {Subject ID: BindingSet}, never the bare
BindingSet. The key is the Workflow document ID for a saved Workflow
(never its URL slug), ``workflowVersionId`` for a saved version, or
``subjectKey`` for an inline Subject. Saved Workflow Subjects also need
workflow:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `spec_id` | string | Yes | Saved Spec ID. |
| `subject` | object | Yes | Workflow Subject: {'kind':'savedWorkflow','workflowId':<Workflow document ID>,'subjectKey':<same ID>}, {'kind':'savedWorkflowVersion','workflowId':...,'workflowVersionId':...,'subjectKey':...}, or {'kind':'inline','manifest':<raw Workflow JSON>,'subjectKey':...}. |
| `binding_set` | object | Yes | Complete BindingSet: schemaVersion, id, inputs, outputs. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals capabilities

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CAPABILITIES`

Describe the Workflow Evals API: operations, schemas, evaluators, and caller actions.

Start here in an unfamiliar workspace. Returns ``workspace`` (the authenticated
workspace URL slug, not the internal id), the public operation registry, each
operation's required permission, the installed engine version, and which
actions the current credential can perform. Never changes state.

### Workflow evals cases create

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASES_CREATE`

Add one Case to an Eval Dataset, validated against the Dataset's contracts.

A Run that selects an incomplete Case is rejected with ``EVAL_NOT_READY`` and the
``incompleteCaseIds``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | No | Optional readable URL suggestion. |
| `name` | string | Yes | Case name. |
| `inputs` | object | Yes | Concrete inputs keyed by declared input name. Images: {'artifactId': ...} from workflow_evals_case_assets_upload_complete. |
| `slices` | string | No | Slice labels for grouping results. |
| `ground_truth` | object | Yes | Ground truth keyed by declared field name. |
| `evidence_refs` | string | No | Optional evidence references. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |
| `ground_truth_state` | string | No | Default complete. Use incomplete to save a draft that lacks required ground truth (present values are still type-checked); approve it later with workflow_evals_cases_replace. |

### Workflow evals cases delete

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASES_DELETE`

Remove a Case from the live Dataset. Runs that already froze it stay readable.

When the user explicitly replaces an example with a different image,
create or import the new image as an incomplete Case first, then delete
the old Case using its current revision. Keep both only if the user asked
to add an example. Do not delete a mislabeled Case; correct it in place.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `case_id` | string | Yes | Case ID. |
| `revision` | integer | Yes | Current numeric `revision` of the resource (from its last read). Stale revisions return 412. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals cases get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASES_GET`

Get one complete Case with short-lived read URLs for its assets and its ``revision``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `case_id` | string | Yes | Case ID. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals cases import

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASES_IMPORT`

Bulk-import images from Roboflow sources, project datasets, or uploaded artifacts.

Returns 202 ``{intakeId, asyncTaskId, status, pollUrl}``; poll with
workflow_evals_case_imports_get. Imported Cases start with incomplete ground
truth and cannot be run until it is reviewed and completed with
workflow_evals_cases_replace. To copy a Project's existing labels, import its
Dataset test split with groundTruthOutput on the item and ground_truth_eval_id
set to the attached Eval's ID. The Eval must already have this Dataset and a
saved Workflow subject. Choose a compatible exposed prediction output of
the Project's type computed on the original image. Use the sole compatible
output from the Project's own model directly; otherwise ask which output
should receive the labels, including an images-only choice. Omitting
groundTruthOutput imports images without labels. With a declared ground
truth contract, the API writes annotations into its field of the matching
type, preferring the field named groundTruthOutput when several match;
a missing or ambiguous matching field is rejected. Without a contract,
it uses the groundTruthOutput name. Imported labels remain incomplete drafts:
show them for review and approve them before setting ground truth complete.
Draft labels only for Cases without annotations. At most 10,000 Cases per
intake. Source imports need image:read; dataset imports need project:read
and image:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `items` | array | Yes | What to import: {'kind':'source','sourceId':...}, {'kind':'dataset','datasetId':...,'split':'train'&#124;'valid'&#124;'test','groundTruthOutput':<Workflow output>}, or {'kind':'artifact','artifactId':...}. |
| `slices` | string | No | Slices applied to every imported Case. |
| `input_field` | string | Yes | Declared InferenceImage input that receives each image. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |
| `ground_truth_eval_id` | string | No | Eval ID whose saved Workflow subject supplies groundTruthOutput for test-split annotation imports. Required when an item includes groundTruthOutput. |

### Workflow evals cases list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASES_LIST`

List Cases in an Eval Dataset (summaries, no media bytes).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `slices` | string | No | Only Cases in these slices. |
| `slice_match` | string | No | How to combine slices. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |
| `ground_truth_completeness` | string | No | Filter by ground-truth state. |

### Workflow evals cases replace

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASES_REPLACE`

Replace a Case atomically (full replacement, not a field patch).

Read workflow_evals_cases_get first and preserve its name, groundTruthState,
slices, and evidenceRefs unless deliberately changing them. Set
ground_truth_state to complete only after the user confirms the answer.
Apply user-stated corrections yourself after confirmation. Include every
required ground-truth field, using [] or 0 for an empty answer when its
type calls for that value. Never use null or omit a required empty answer.
Runs that froze the Case keep their copy.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Case name. Preserve the current name unless renaming. |
| `inputs` | object | Yes | Complete replacement inputs. |
| `slices` | string | No | Complete replacement slices. |
| `case_id` | string | Yes | Case ID. |
| `revision` | integer | Yes | Current numeric `revision` of the resource (from its last read). Stale revisions return 412. |
| `ground_truth` | object | Yes | Complete replacement ground truth. |
| `evidence_refs` | string | No | Replacement evidence references. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |
| `ground_truth_state` | string ("incomplete" | "complete") | Yes | Preserve the current state when editing a draft; use complete to approve ground truth. |

### Workflow evals case assets upload

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASE_ASSETS_UPLOAD`

Start uploading a local image as Case input. The MCP server never receives bytes.

Returns ``{uploadId, artifactId, uploadUrl, requiredHeaders, expiresInSeconds}``
and ``instructions``. Then:
1. HTTP PUT the file bytes to ``uploadUrl`` with exactly ``requiredHeaders``.
2. Call workflow_evals_case_assets_upload_complete(eval_dataset_id, upload_id).
3. Use ``{'artifactId': ...}`` as the image input in workflow_evals_cases_create.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `role` | string | No | Optional asset role. |
| `asset_name` | string | Yes | Filename, e.g. 'frame-001.jpg' (max 256 chars). |
| `content_type` | string ("image/jpeg" | "image/png" | "image/webp" | "image/gif") | Yes | Image MIME type. |
| `expected_size` | integer | Yes | Exact file size in bytes. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |

### Workflow evals case assets upload complete

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASE_ASSETS_UPLOAD_COMPLETE`

Verify and publish an uploaded Case image. Returns the stable ``artifactId``.

Checks size, type, and that the bytes decode as an image. Call only after the
PUT to the signed URL succeeded.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `upload_id` | string | Yes | The `uploadId` from workflow_evals_case_assets_upload. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals case imports get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASE_IMPORTS_GET`

Poll a Case import.

``status`` is queued, running, completed, partially_completed, failed, or
cancelled; ``progress`` has discovered, processed, adopted, failed, total.
List Cases with workflow_evals_cases_list while it runs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `intake_id` | string | Yes | The `intakeId` from workflow_evals_cases_import. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals case preparations cases

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASE_PREPARATIONS_CASES`

Page through prepared Cases and their candidate outputs.

With include='proposal', successful Cases include ``proposal.groundTruth``
mapped through the Eval's saved bindings onto Dataset fields. Check
``proposal.imageSizes`` before using boxes: boxes from a crop or resized
image may not align with the Case image. ``proposal.unmapped`` explains
missing fields; ``proposal.outputSummary`` gives bounded output evidence
when mapping is incomplete. Treat predictions as drafts to review and
correct before marking ground truth complete. Follow ``cursor`` until absent.
If a page exceeds the client's result limit, retry that page with a
smaller ``limit`` and the same input cursor.
Each success also has a short-lived ``candidateOutput.readUrl`` for raw
Workflow output; do not share or persist signed URLs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-100 (default 5 with proposals, otherwise 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `eval_id` | string | Yes | Eval ID. |
| `include` | string | No | Set to 'proposal' to include draft labels mapped through the Eval's saved bindings. |
| `preparation_id` | string | Yes | Preparation ID. |

### Workflow evals case preparations get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASE_PREPARATIONS_GET`

Get a Case preparation's state and progress (current one when no ID is given).

Returns ``{}`` when the Eval has no current preparation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Eval ID. |
| `preparation_id` | string | No | Preparation ID. Omit to get the current one for this Eval. |

### Workflow evals case preparations resume

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASE_PREPARATIONS_RESUME`

Resume a preparation, keeping successful Cases and requeueing only failed ones.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Eval ID. |
| `preparation_id` | string | Yes | Preparation ID. |

### Workflow evals case preparations start

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CASE_PREPARATIONS_START`

Run the Eval's Workflow over Dataset Cases to produce candidate outputs. Costs inference.

Helps draft ground truth from predictions. Save the Eval's Spec and
subject_bindings for its Workflow first (suggest and validate bindings,
then update the Eval); without them predictions cannot map to labels.
Returns 202 with the preparation (``id``, ``state``, progress counters).
Poll with workflow_evals_case_preparations_get, then page through
workflow_evals_case_preparations_cases with include='proposal'.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Eval ID (its Subject and Dataset are used). |
| `runtime` | string | No | {'kind':'serverless'} (default) or {'kind':'dedicated','url':'https://*.roboflow.cloud'}. |
| `case_import_id` | string | No | Running Case-import AsyncTask to follow as the Dataset grows. |
| `case_selection` | string | No | {'kind':'all'} (default) or {'kind':'explicit','caseIds':[...]} (max 500). |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |

### Workflow evals create

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_CREATE`

Create an Eval. Every field is optional; an empty call creates a draft.

For a Project's current model, follow the project_deployment_get and
saved Project Model Workflow selection in workflow_evals_agent_manifest
before attaching a Subject. The Project base Workflow is not the Subject.

The Eval becomes ``ready`` once it has an engine-valid Spec and a compatible
Eval Dataset. If it has an authoring Workflow Subject, its
``subject_bindings`` must also map every outcome check output. Missing output
mappings keep it ``draft`` with ``missing_bindings`` diagnostics; use
workflow_evals_bindings_suggest and workflow_evals_bindings_validate to prepare
the mappings. For one saved Workflow, attach its document ID as
``workflowId`` and ``subjectKey`` (the Workflow document ID). After
validating a BindingSet, save ``subject_bindings`` keyed by that ID and
``server_configuration`` matching the Run server before starting a Run,
so the Eval page can run the same
Workflow. Inline Subjects remain available for multi-candidate searches.
Returns the Eval detail including its ``revision`` (needed for
workflow_evals_update).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Eval name. Defaults to 'Untitled evaluation'. |
| `spec_id` | string | No | Saved Spec to attach. |
| `subject` | string | No | Attach the Workflow being evaluated: {'kind':'savedWorkflow','workflowId':<Workflow document ID>,'subjectKey':<same ID>}. Selecting it needs workflow:read. Use an inline Subject for an explicit multi-candidate search. |
| `description` | string | No | Optional description. |
| `eval_dataset_id` | string | No | Eval Dataset to attach. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |
| `subject_bindings` | string | No | Optional {<Subject ID>: <validated BindingSet>} map, not a bare BindingSet. Use the Workflow document ID, not its URL slug, for a saved Workflow; workflowVersionId for a saved version; subjectKey for an inline Subject. |
| `server_configuration` | string | No | Save the server your Runs use so the Eval page can run the attached Workflow: {'kind':'serverless'}, {'kind':'dedicated','url':'https://*.roboflow.cloud'}, or {'kind':'local','url':...} (local is browser-only). |

### Workflow evals datasets compatible specs

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_DATASETS_COMPATIBLE_SPECS`

List Specs whose input and ground-truth requirements this Dataset satisfies.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals datasets create

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_DATASETS_CREATE`

Create an empty Eval Dataset with declared input and ground-truth contracts.

Add Cases with workflow_evals_cases_create or workflow_evals_cases_import.
Adding Cases never changes the contracts; use workflow_evals_datasets_update_contract.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Dataset name. |
| `inputs` | array | Yes | Declared input fields (schema: roboflow://workflow-evals/schemas/eval-dataset). |
| `description` | string | No | Optional description. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |
| `ground_truth_contract` | array | Yes | Declared ground-truth fields. |

### Workflow evals datasets get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_DATASETS_GET`

Get an Eval Dataset and its derived summary (no Cases inline) plus ``revision``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals datasets list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_DATASETS_LIST`

List Eval Datasets with declared contracts, Case counts, slices, and completeness.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |

### Workflow evals datasets search

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_DATASETS_SEARCH`

Search Cases by semantic content, Source metadata and saved ground truth.

Source/semantic filters additionally require image:read and current image-search
permission; only Source-backed Cases match them. Ground-truth filters also cover
artifact-only Cases. Read-only: does not run Workflows or create embeddings.

Returns items, dataset revisions, coverage, total (possibly null), nextCursor.
Continue with the same query and limit even after an empty page; stop only when
nextCursor is absent. Restart without cursor on 409. Preview URLs expire.
Detailed GT filters can return 422 for oversized labels or encoded semantic masks.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Page size, 1-48 (default 24). |
| `query` | string | No | Structured filters: semantic (text); source (filename, tags, width/height {min,max}); groundTruth (state complete/incomplete, slices, sliceMatch any/all, output, className, count {min,max}, scalar {output,value}). Class/count require output. Example: {'groundTruth':{'output':'boxes','className':'car','count':{'min':1}}}. |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals datasets update

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_DATASETS_UPDATE`

Update Eval Dataset metadata (name/description).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New name. |
| `revision` | integer | Yes | Current numeric `revision` of the resource (from its last read). Stale revisions return 412. |
| `description` | string | No | New description. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |

### Workflow evals datasets update contract

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_DATASETS_UPDATE_CONTRACT`

Replace a Dataset's declared input and/or ground-truth contract.

A schema-only change returns the updated Dataset. A change that rewrites
Cases returns 202 with an AsyncTask (poll with async_tasks_get); Case writes
are rejected until it completes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `inputs` | string | No | Replacement declared inputs. |
| `revision` | integer | Yes | Current numeric `revision` of the resource (from its last read). Stale revisions return 412. |
| `eval_dataset_id` | string | Yes | Eval Dataset ID. |
| `ground_truth_contract` | string | No | Replacement ground-truth contract. |

### Workflow evals delete

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_DELETE`

Delete an Eval with all its Runs, Executions, results, and owned artifacts.

Two steps. First call without ``deletion_key``: nothing is deleted; returns
``{confirmationRequired: true, deletionKey, impact}``. Show the impact to the
user and get explicit confirmation, then call again with ``deletion_key``.
That admits deletion and returns ``{asyncTaskId, statusUrl}``; poll with
workflow_evals_operation_get. Shared Specs and Datasets are kept.

If this Eval backs Workflow deploy gates, the preview lists the affected
Workflows in ``impact.deployGates``. Confirming deletion removes those gates
and cancels their pending deploy checks. Deleting a gated Eval also requires
the ``workflow:update`` scope and, for a user, Manage Workflow Deploy Gates
permission. These extra requirements do not apply to an ungated Eval.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Eval ID. |
| `deletion_key` | string | No | The `deletionKey` from the first call. Only pass it after the user confirmed the impact. |

### Workflow evals embeddings cancel

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EMBEDDINGS_CANCEL`

Request cooperative cancellation of an embedding job.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `execution_id` | string | Yes | Execution ID. |
| `async_task_id` | string | Yes | Embedding job `asyncTaskId`. |

### Workflow evals embeddings get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EMBEDDINGS_GET`

Get embedding analysis jobs. Never launches analysis.

With ``provider`` or ``async_task_id``, returns ``{job}`` (``job`` is null when
none exists). With neither, returns ``{jobs: {<provider>: job | null}}`` for every
provider, plus ``errors: {<provider>: message}`` for providers that could not be
read. Completed jobs have ``result.url``: a file with 2D ``points`` per Case
(coordinates 8..92) plus ``skipped`` Cases. New Runs start these jobs on their own.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `provider` | string | No | Read this provider's job. Omit both filters to read every provider's job. |
| `execution_id` | string | Yes | Execution ID. |
| `async_task_id` | string | No | Read a specific job attempt instead. |

### Workflow evals embeddings start

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EMBEDDINGS_START`

Generate (or reuse) a 2D embedding projection of an Execution's input images.

New Runs schedule this automatically; use it for older Runs or explicit
retries. Returns the job; poll with workflow_evals_embeddings_get.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `retry` | boolean | No | Retry a failed/cancelled job (use a new idempotency key). |
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `provider` | string ("clip" | "dinov2" | "dinov3" | "siglip2") | Yes | Embedding model provider. |
| `input_key` | string | No | Image input to embed (fixed by the first request for this provider). |
| `execution_id` | string | Yes | Execution ID. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |

### Workflow evals evaluators get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EVALUATORS_GET`

Get one evaluator's description and configuration JSON Schema.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `evaluator_type` | string | Yes | Evaluator `type` from workflow_evals_evaluators_list. |

### Workflow evals evaluators list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EVALUATORS_LIST`

List the evaluators available to Spec Checks in the installed engine.

Returns ``{engineVersion, items}``; each item has ``type``, ``semanticType``,
and its ``configSchema``. Use the ``type`` in a Spec Check.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `family` | string | No | Filter by evaluator family. |
| `semantic_type` | string | No | Filter by evaluator semantic type. |

### Workflow evals executions configuration

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EXECUTIONS_CONFIGURATION`

Get an Execution's frozen Subject manifest, BindingSet, and linked plan.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `execution_id` | string | Yes | Execution ID. |

### Workflow evals executions get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EXECUTIONS_GET`

Get one Execution's lifecycle, frozen Subject identity, and result availability.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `execution_id` | string | Yes | Execution ID. |

### Workflow evals executions input cases

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EXECUTIONS_INPUT_CASES`

Page through an Execution's input Cases for a client-owned (local) runner.

Only needed when the Run uses a local runtime. Each item has the ``case``,
``shardIndex``, and ``checkpoint`` (absent means not yet submitted);
``artifactReadUrls`` holds short-lived input image URLs. Run inference
yourself, then submit each output with workflow_evals_executions_submit_capture.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `execution_id` | string | Yes | Execution ID. |

### Workflow evals executions list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EXECUTIONS_LIST`

List a Run's Executions (one per evaluated Workflow Subject).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |

### Workflow evals executions submit capture

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EXECUTIONS_SUBMIT_CAPTURE`

Submit one Case's Workflow output from a local runner. The platform scores it.

Identical repeats are idempotent; different bytes for the same attempt return
409; a stale attempt returns 412.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `error` | string | No | Inference error message, if it failed. |
| `output` | string | No | Raw Workflow output for the Case (null when inference failed). Omit with resume=True. |
| `resume` | boolean | No | Resume scoring a running checkpoint that already has a capture. |
| `run_id` | string | Yes | Run ID. |
| `case_id` | string | Yes | Case ID. |
| `eval_id` | string | Yes | Eval ID. |
| `retryable` | string | No | Whether the inference failure is retryable. |
| `timed_out` | string | No | Whether inference timed out. |
| `latency_ms` | string | No | Measured inference latency. |
| `shard_index` | integer | Yes | `shardIndex` of the Case from the input-cases page. |
| `execution_id` | string | Yes | Execution ID. |
| `attempt_count` | integer | Yes | `attemptCount` from the input-cases page. |

### Workflow evals exports download url

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EXPORTS_DOWNLOAD_URL`

Get a fresh short-lived download URL for a completed export.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `artifact_id` | string | Yes | Export `artifactId` from the completed job result. |

### Workflow evals exports get job

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EXPORTS_GET_JOB`

Poll an export. ``{asyncTaskId, state, progress, result?}``; ``result`` has the artifact and download URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `async_task_id` | string | Yes | `asyncTaskId` from workflow_evals_exports_start. |

### Workflow evals exports start

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_EXPORTS_START`

Start a server-side export of a Run's results.

Returns 202 with ``asyncTaskId``; poll workflow_evals_exports_get_job until it
completes, then use its download URL (renew with
workflow_evals_exports_download_url). A Run with retryable failed Cases is
refused with 409 ``retryFirst`` unless ``allow_pending_retries`` is true.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `order` | string | No | Row order. |
| `state` | string | No | Case result state filter. |
| `format` | string ("csv" | "json" | "xlsx") | Yes | Export file format. |
| `run_id` | string | Yes | A stable Run, or any terminal Run with allow_pending_retries. |
| `slices` | string | No | Only these slices. |
| `case_id` | string | No | Only this Case. |
| `eval_id` | string | Yes | Eval ID. |
| `check_id` | string | No | Filter by Check. |
| `judgment` | string | No | Filter by judgment. |
| `slice_match` | string | No | How to combine slices. |
| `failed_check` | string | No | Only Cases with a failed Check. |
| `execution_ids` | string | No | Limit to these Executions. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |
| `allow_pending_retries` | string | No | Export a failed or partially completed Run that still has retryable Cases. The export provenance then records pendingRetryableWork: true. Needs a server with roboflow/roboflow#17151; older servers ignore it and still answer 409. |

### Workflow evals get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_GET`

Get one Eval by ID or by its readable URL (exactly one).

Returns setup ``state`` and diagnostics (including ``missing_bindings`` for
unmapped authoring Workflow check outputs), current Spec/Dataset projections,
``subjects``, ``subjectBindings``, ``serverConfiguration``, recent Runs, and
the ``revision`` used for updates.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | No | Eval ID. |
| `eval_url` | string | No | Exact current readable Eval URL slug. |

### Workflow evals list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_LIST`

List Evals in the workspace, newest first.

Returns ``{items, nextCursor?}``. Items include setup ``state``
(``draft``/``ready``), ``runCount``, and ``lastRunAt``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `search` | string | No | Optional name search (max 256 chars). |
| `include_spec_summary` | boolean | No | Add `specSummary` (check count and first three Checks) to each item. |

### Workflow evals openapi get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_OPENAPI_GET`

Get the machine-readable OpenAPI 3.1 contract for the Workflow Evals API.

Large response. Prefer workflow_evals_capabilities and the per-tool
descriptions; use this when you need exact request/response schemas.

### Workflow evals operation get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_OPERATION_GET`

Poll a Workflow Evals deletion operation.

Returns a sanitized receipt ``{operationId, kind, state, resource}``, readable
even after the deleted resource is gone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `operation_id` | string | Yes | Operation ID (the deletion `asyncTaskId`). |

### Workflow evals results cases list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RESULTS_CASES_LIST`

List per-Case results for an Execution with compact ``checkResults`` by Check ID.

Use ``failed_check=True`` to find failures, then workflow_evals_results_case_get
for details.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `order` | string | No | Sort order. |
| `state` | string | No | Filter by Case result state. |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `run_id` | string | Yes | Run ID. |
| `slices` | string | No | Only Cases in these slices. |
| `case_id` | string | No | Only this Case. |
| `eval_id` | string | Yes | Eval ID. |
| `check_id` | string | No | Filter by Check. |
| `judgment` | string | No | Filter by Check judgment, e.g. 'pass' or 'fail'. |
| `slice_match` | string | No | How to combine slices. |
| `execution_id` | string | Yes | Execution ID. |
| `failed_check` | string | No | Only Cases with at least one failed Check. |

### Workflow evals results case get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RESULTS_CASE_GET`

Get one Case's result: inputs, frozen ground truth, bound actual values, and Check results.

The raw Workflow output is omitted by default (``rawOutputOmitted: true``); the
values the Checks scored are in ``actualValues`` and ``caseResult.boundOutputs``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `case_id` | string | Yes | Case ID. |
| `eval_id` | string | Yes | Eval ID. |
| `execution_id` | string | Yes | Execution ID. |
| `include_raw_output` | boolean | No | Also return the raw Workflow output under caseResult.rawOutput. It can hold base64 images and reach megabytes; leave false unless a bound value is wrong and you need the full response. |

### Workflow evals results compare

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RESULTS_COMPARE`

Compare completed Executions: per-Check deltas and a page of Case-level deltas.

Pure read; sibling Executions from one Run are always comparable.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size for Case-level deltas. |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `eval_id` | string | Yes | Eval ID. |
| `filters` | string | No | Optional Case filters (same keys as the Case results list). |
| `execution_ids` | array | Yes | Two or more completed, compatible Execution IDs. |

### Workflow evals results overview

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RESULTS_OVERVIEW`

Get an Execution's aggregate per-Check performance and runtime summary.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `slices` | string | No | Restrict the summary to these slices. |
| `eval_id` | string | Yes | Eval ID. |
| `slice_match` | string | No | How to combine slices. |
| `execution_id` | string | Yes | Execution ID. |

### Workflow evals runs cancel

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_CANCEL`

Request cancellation of a queued or running Run. Idempotent.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |

### Workflow evals runs configuration

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_CONFIGURATION`

Get a Run's frozen shared configuration: Spec, Dataset snapshot, and Case selection.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |

### Workflow evals runs delete

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_DELETE`

Delete a Run with its Executions and results.

Two steps. Without ``deletion_key`` nothing is deleted; returns
``{confirmationRequired: true, deletionKey, impact}``. After the user confirms,
call again with the key; returns ``{asyncTaskId, statusUrl}``. Poll with
workflow_evals_operation_get.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `deletion_key` | string | No | The `deletionKey` from the first call. Only pass it after the user confirmed the impact. |

### Workflow evals runs get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_GET`

Get a Run's lifecycle state, child Execution counts, and ``retry`` eligibility.

Poll this while the Run is active; refresh results once it is terminal. With
``wait_seconds`` the tool polls for you and returns early when the state is one
of ``completed``, ``partially_completed``, ``failed``, or ``cancelled``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `wait_seconds` | string | No | Keep polling server-side for up to this many seconds (max 25, to stay under MCP client timeouts) and return as soon as the Run reaches a terminal state. Omit for a single read. |

### Workflow evals runs list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_LIST`

List an Eval's Runs, newest first. ``limit=1`` gives the latest Run.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `eval_id` | string | Yes | Eval ID. |
| `include_check_count` | boolean | No | Add each Run's frozen `checkCount` (null when unavailable). |

### Workflow evals runs replay

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_REPLAY`

Create a new derived Run from a source Run, optionally with new Subjects.

Returns 409 if the saved Spec or Dataset changed since the source Run. Server
runtimes also need model:infer; saved Workflow Subjects also need workflow:read.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Source Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `executions` | string | No | Replacement {subject, bindingSet} entries. Omit to reuse the source Run's. |
| `case_selection` | string | No | {'kind':'all'} (default) or {'kind':'explicit','caseIds':[...]}. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |
| `inference_server` | string | No | Override the Eval's saved runtime: {'kind':'serverless'}, {'kind':'dedicated','url':'https://*.roboflow.cloud'}, or {'kind':'local','url':...}. |

### Workflow evals runs rescore

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_RESCORE`

Score retained Workflow outputs against a revised Spec without re-running Workflows.

Creates a new derived Run. Incompatible Executions return rerun-required
diagnostics.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Source Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `spec_id` | string | Yes | The Eval's current saved Spec (save it and attach it first). |
| `executions` | string | No | Selected prior Executions with a replacement BindingSet each. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |

### Workflow evals runs retry failed

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_RETRY_FAILED`

Retry only missing or operationally failed Cases in the same Run.

Check ``retry.allowed`` from workflow_evals_runs_get first. Keeps the frozen
setup; to change the Workflow, use workflow_evals_runs_replay. Server-runtime
retries also need workflow:read and model:infer.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `run_id` | string | Yes | Run ID. |
| `eval_id` | string | Yes | Eval ID. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |

### Workflow evals runs start

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_RUNS_START`

Start one grouped Run that evaluates every Subject on the Eval's Spec and Dataset.

Each execution needs its own valid Subject and BindingSet, even when the
Eval's authoring Workflow is ``draft`` due to ``missing_bindings``. Costs
inference for server runtimes. Returns 202 with ``run``, ``executions``,
and ``asyncTaskId`` (null for local runtimes, which use
workflow_evals_executions_input_cases / submit_capture). Poll
workflow_evals_runs_get until the state is terminal. A one-Case selection is a
cheap dry run. Server runtimes also need model:infer; saved Workflow Subjects
also need workflow:read. If a saved Workflow follows a Project's current
model and that model changed, set ``execution_reuse='never'`` so this Run
does not reuse outputs from the previous model.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Eval with a compatible Spec and Dataset. |
| `executions` | array | Yes | One entry per Workflow to evaluate: {'subject': <Subject>, 'bindingSet': <validated BindingSet>}. |
| `case_selection` | string | No | {'kind':'all'} (default) or {'kind':'explicit','caseIds':[...]}. |
| `execution_reuse` | string | No | Reuse matching retained Workflow outputs (default prefer) or always re-run. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |
| `inference_server` | string | No | Override the Eval's saved runtime: {'kind':'serverless'}, {'kind':'dedicated','url':'https://*.roboflow.cloud'}, or {'kind':'local','url':...}. |

### Workflow evals schema get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_SCHEMA_GET`

Get a JSON Schema for authoring Workflow Evals payloads.

Read the ``spec`` schema before writing a Spec, ``eval-dataset`` before
creating a Dataset, ``case`` before adding Cases, and ``binding-set`` before
hand-writing bindings. The engine still performs semantic validation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `schema_name` | string ("spec" | "eval-dataset" | "case" | "binding-set" | "subject" | "evaluator-config") | Yes | Which authoring JSON Schema to fetch. |

### Workflow evals specs compatible datasets

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_SPECS_COMPATIBLE_DATASETS`

List Eval Datasets whose inputs and ground truth satisfy a Spec.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |
| `spec_id` | string | Yes | Spec ID. |

### Workflow evals specs create

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_SPECS_CREATE`

Validate, compile, and save a Spec. Invalid Specs return 422 with engine diagnostics.

Draft the Spec yourself following the engine skills (start at
roboflow://workflow-evals/manifest) and iterate with workflow_evals_specs_validate
before saving. Confirm the Spec with the user first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Spec name. |
| `spec` | object | Yes | Engine Spec (schema: roboflow://workflow-evals/schemas/spec): schemaVersion, specId, id, inputs, outputs, checks. Subject-independent: no Workflow paths here. |
| `description` | string | No | Optional description. |
| `idempotency_key` | string | No | UUID v4 Idempotency-Key. For work that costs credits, generate one yourself so a retry after a lost response cannot start duplicate work. If omitted, one is generated and returned as idempotencyKey (also in error data). Reuse a key only to retry this exact request. |

### Workflow evals specs get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_SPECS_GET`

Get the current live Spec and its ``revision``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `spec_id` | string | Yes | Spec ID. |

### Workflow evals specs list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_SPECS_LIST`

List live Specs in the workspace. Returns ``{items, nextCursor?}``.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Page size, 1-200 (default 50). |
| `cursor` | string | No | Opaque `nextCursor` from the previous page. |

### Workflow evals specs update

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_SPECS_UPDATE`

Replace a live Spec's policy and/or metadata. The full result is recompiled.

Existing Runs keep the Spec they froze.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New name. |
| `spec` | string | No | Complete replacement engine Spec. |
| `spec_id` | string | Yes | Spec ID. |
| `revision` | integer | Yes | Current numeric `revision` of the resource (from its last read). Stale revisions return 412. |
| `description` | string | No | New description. |

### Workflow evals specs validate

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_SPECS_VALIDATE`

Validate an unsaved Spec: compile diagnostics plus derived ground-truth requirements.

Saves nothing.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `spec` | object | Yes | Unsaved engine Spec to validate. |

### Workflow evals test

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_TEST`

Score a Spec on a few examples whose outputs you already have, the way an Eval Run would.

Use it as a quick check of a draft Spec or BindingSet before saving it or
starting a Run, and to find why a check fails. Get each output by running the
Workflow on the image (workflows_run) or the model (models_infer) first; that
run uses credits like any other, so one image is usually enough. Scoring a
whole set is an Eval Run's job. The ground truth must come from the user or
approved Cases, never from the model's own output.
Scoring runs nothing and saves nothing.

Returns per example and check an outcome: passed, failed, scored (no pass
rule), skipped (check not applicable), or unevaluable. Unevaluable is not a low
score: its diagnostic names the binding path to fix, what the output holds
there (availableFields) and often a suggestedPath. A detection output must be
bound to its list of objects (`.predictions`), not the {image, predictions}
result around it. Per check it also returns outcome counts and the engine
aggregate over the scored examples. Fix bindings with
workflow_evals_bindings_suggest / workflow_evals_bindings_validate.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `spec` | object | Yes | Engine Spec to test: an unsaved draft, or a saved Spec's policy as workflow_evals_specs_get returns it. |
| `cases` | array | Yes | 1-25 examples, each {groundTruth, output, id?, name?, latencyMs?, slices?}. groundTruth: the expected answer at the paths the Spec's checks read (for example {'objects': [{class, x, y, width, height}]}); an empty list is a deliberate negative example, a missing field skips the example. output: what the Workflow or model returned for that image, unchanged: the workflows_run response ({'outputs': [...]}), its outputs list, or a model inference result. latencyMs: only when it was measured; latency checks read nothing else. |
| `binding_set` | string | No | BindingSet mapping the Spec's outputs onto each output: {'outputs': {<spec output id>: {'value': {'kind': 'path', 'path': '$[0].<output>'}}}}. A saved Eval's BindingSet works unchanged; input bindings are ignored. Required when the Spec declares outputs. |

### Workflow evals update

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVALS_UPDATE`

Update an Eval under optimistic concurrency.

Omitted fields are preserved; ``clear_fields`` sets fields to null. The
response re-derives ``draft``/``ready``. An authoring Workflow with unmapped
outcome check outputs stays ``draft`` with ``missing_bindings`` diagnostics;
supply its output mappings in ``subject_bindings``. After validating one
saved Workflow's BindingSet, send ``subjects`` with its Workflow document ID
as both ``workflowId`` and ``subjectKey``, ``subject_bindings`` keyed by
that ID, and ``server_configuration`` matching the Run server before
starting a Run. Existing Runs never change.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New name. |
| `eval_id` | string | Yes | Eval ID. |
| `spec_id` | string | No | Attach or replace the current Spec. |
| `subject` | string | No | Replace the single authoring Subject (resets `subjects`). Cannot be combined with subjects. |
| `revision` | integer | Yes | Current numeric `revision` of the resource (from its last read). Stale revisions return 412. |
| `subjects` | string | No | Ordered 1-20 reviewed Subjects: {'artifactId':...} for existing ones or new Subject objects. For one saved Workflow use {'kind':'savedWorkflow','workflowId':<Workflow document ID>,'subjectKey':<same ID>}. Requires a saved Spec and Dataset. |
| `description` | string | No | New description. |
| `clear_fields` | string | No | Fields to clear (sent as null). |
| `eval_dataset_id` | string | No | Attach or replace the current Eval Dataset. |
| `subject_bindings` | string | No | {<Subject ID>: <validated BindingSet>} map, not a bare BindingSet. Key by Workflow document ID (not URL slug), workflowVersionId for a saved version, or subjectKey for an inline Subject. |
| `server_configuration` | string | No | Save the server your Runs use so the Eval page runs the attached Workflow there. |

### Workflow eval deploy checks list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVAL_DEPLOY_CHECKS_LIST`

Read Eval check history. Results require workflow-evals:read and View Workflow Evals.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_id` | string | No | Optional version ID for one check. |
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow eval deploy gate get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVAL_DEPLOY_GATE_GET`

Read the Eval gate and thresholds; gate is null when none is configured.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow eval deploy gate new check thresholds set

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVAL_DEPLOY_GATE_NEW_CHECK_THRESHOLDS_SET`

Set thresholds for Eval checks missing from the gate. Requires Manage Workflow Evals.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow document ID. |
| `check_thresholds` | array | Yes | Thresholds for newly added Eval checks. |

### Workflow eval deploy gate policy update

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVAL_DEPLOY_GATE_POLICY_UPDATE`

Change only selected Eval thresholds; requires Manage Workflow Deploy Gates.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow document ID. |
| `check_thresholds` | array | Yes | Nonempty checkId and minimumPassRate entries (0.001 to 1, in 0.001 steps). |
| `expected_updated_at` | string | No | The gate updatedAt last read; omit to skip concurrency check. |

### Workflow eval deploy gate remove

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVAL_DEPLOY_GATE_REMOVE`

Remove the Eval gate. Requires Manage Workflow Deploy Gates permission.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow eval deploy gate set

**Slug:** `ROBOFLOW_MCP_WORKFLOW_EVAL_DEPLOY_GATE_SET`

Set the Eval gate. Requires Manage Workflow Deploy Gates permission.

Changing a gate revision makes earlier check results outdated. Checks left
out require every applicable Case to pass.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `eval_id` | string | Yes | Eval ID to require before publishing. |
| `workflow_id` | string | Yes | Workflow document ID. |
| `expect_no_gate` | boolean | No | Set true to require that no Eval gate exists (sends expectedUpdatedAt: null). |
| `check_thresholds` | string | No | Optional checkId and minimumPassRate entries (0.001 to 1, in 0.001 steps). |
| `expected_updated_at` | string | No | The gate updatedAt last read; omit to skip concurrency check. |

### Workflow manual approval gate get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_MANUAL_APPROVAL_GATE_GET`

Read approval rules and their configured members or roles.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow manual approval gate remove

**Slug:** `ROBOFLOW_MCP_WORKFLOW_MANUAL_APPROVAL_GATE_REMOVE`

Remove approval rules. Requires a person with Manage Workflow Deploy Gates.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow manual approval gate set

**Slug:** `ROBOFLOW_MCP_WORKFLOW_MANUAL_APPROVAL_GATE_SET`

Set who may approve versions. Requires a person acting with Manage Workflow Deploy Gates.

Raw API keys cannot change approval rules. Every named member or role must
have Manage Workflows permission. One eligible approval passes the gate;
one rejection rejects it. A change invalidates decisions under old rules.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `rules` | array | Yes | One to ten rules: {kind: user, userId} or {kind: role, role}. |
| `workflow_id` | string | Yes | Workflow document ID. |
| `expected_revision` | string | No | Revision last read, for conflict detection. |
| `allow_self_approval` | boolean | No | Allow the version author to approve their own version. |

### Workflow specs run

**Slug:** `ROBOFLOW_MCP_WORKFLOW_SPECS_RUN`

Execute a Workflow from an inline JSON definition.

Unlike ``workflows_run`` which runs a saved workflow by ID,
this tool accepts a full workflow JSON spec and executes it
directly. Useful for testing workflows before saving them, or
for running a draft without publishing it.

Validate the definition with ``workflow_specs_validate`` before
running it; invalid specifications fail at execution time with
less actionable serverless errors.

IMPORTANT: Images must be public URLs or base64-encoded data.
Local file paths do NOT work — the API runs remotely and cannot
access your filesystem.

Workflow blocks may send data to external services or change existing records.
Execution therefore requires the same care as those configured actions.
Returns workflow outputs as defined by the workflow's output blocks.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `images` | object | Yes | Map of input names to image values (HTTPS URLs or base64). Example: {'image': 'https://...'} |
| `parameters` | string | No | Optional runtime parameters defined in the workflow |
| `specification` | object | Yes | Full Workflow JSON definition with 'version', 'inputs', 'steps', and 'outputs' |

### Workflow specs validate

**Slug:** `ROBOFLOW_MCP_WORKFLOW_SPECS_VALIDATE`

Validate a Workflow JSON definition without executing it.

Check whether a workflow definition is syntactically and
semantically correct before saving or running it.

Example workflow definition — detects objects, enlarges bounding
boxes, crops, runs a second detection filtering for dogs, and
classifies the breed only when exactly one dog is found:

.. code-block:: json

    {
        "version": "1.0",
        "inputs": [
            {"type": "WorkflowImage", "name": "image"}
        ],
        "steps": [
            {
                "type": "ObjectDetectionModel",
                "name": "first_detection",
                "image": "$inputs.image",
                "model_id": "yolov8n-640"
            },
            {
                "type": "DetectionsTransformation",
                "name": "enlarging_boxes",
                "predictions": "$steps.first_detection.predictions",
                "operations": [
                    {"type": "DetectionsOffset", "offset_x": 50, "offset_y": 50}
                ]
            },
            {
                "type": "Crop",
                "name": "first_crop",
                "image": "$inputs.image",
                "predictions": "$steps.enlarging_boxes.predictions"
            },
            {
                "type": "ObjectDetectionModel",
                "name": "second_detection",
                "image": "$steps.first_crop.crops",
                "model_id": "yolov8n-640",
                "class_filter": ["dog"]
            },
            {
                "type": "ContinueIf",
                "name": "continue_if",
                "condition_statement": {
                    "type": "StatementGroup",
                    "statements": [
                        {
                            "type": "BinaryStatement",
                            "left_operand": {
                                "type": "DynamicOperand",
                                "operand_name": "prediction",
                                "operations": [{"type": "SequenceLength"}]
                            },
                            "comparator": {"type": "(Number) =="},
                            "right_operand": {
                                "type": "StaticOperand",
                                "value": 1
                            }
                        }
                    ]
                },
                "evaluation_parameters": {
                    "prediction": "$steps.second_detection.predictions"
                },
                "next_steps": ["$steps.classification"]
            },
            {
                "type": "ClassificationModel",
                "name": "classification",
                "image": "$steps.first_crop.crops",
                "model_id": "dog-breed-xpaq6/1"
            }
        ],
        "outputs": [
            {
                "type": "JsonField",
                "name": "dog_classification",
                "selector": "$steps.classification.predictions"
            }
        ]
    }

Key patterns shown above:
  - ``$inputs.<name>`` references a workflow input.
  - ``$steps.<step_name>.<output>`` references another step's output.
  - ``ContinueIf`` enables conditional branching based on runtime
    values.
  - Steps can chain: detect → transform → crop → detect → classify.

Returns validation status. A valid workflow returns
``{"status": "ok"}``. An invalid one returns error details.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `specification` | object | Yes | Full Workflow JSON definition with 'version', 'inputs', 'steps', and 'outputs' |

### Workflow versions save

**Slug:** `ROBOFLOW_MCP_WORKFLOW_VERSIONS_SAVE`

Save a draft version without publishing, even in Auto-publish mode.

For a non-branched Workflow, the returned version.id identifies the candidate
for checks and deployment. A missing Idempotency-Key is generated and returned
as idempotencyKey.
For a branched workflow, read the editable draft with workflows_get and
pass its branchSave receipt as branch_save. The receipt's saveId is used
as the idempotency key. Saves do not publish. Merge a named branch into Main
before publishing; a receipt with branchId='main' already saves Main.
If the branch head changed, reload and reconcile your edit rather than
replacing the receipt on a stale edit.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `config` | string | Yes | Complete Workflow JSON definition, as an object or JSON string. |
| `branch_save` | string | No | The exact workflow.branchSave receipt returned by workflows_get with draft=true. |
| `workflow_id` | string | Yes | Workflow document ID. |
| `version_name` | string | No | Optional version name. |
| `idempotency_key` | string | No | UUID v4 key. Reuse the same key only to retry this save. |

### Workflow version approvals list

**Slug:** `ROBOFLOW_MCP_WORKFLOW_VERSION_APPROVALS_LIST`

Read approval decisions and review requests for all versions, newest first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow version approval get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_VERSION_APPROVAL_GET`

Read a version's approval status, decision, and eligible approvers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_id` | string | Yes | Saved version ID. |
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow version deploy

**Slug:** `ROBOFLOW_MCP_WORKFLOW_VERSION_DEPLOY`

Publish a saved version. Requires Publish Workflows permission and version history.

A gated version is refused until every gate passes. Manual approval decisions
are made by eligible people in the Roboflow app; this tool cannot approve.
Publishing may stage Workflow pins on production devices for approval. A
successful publish does not mean those devices changed live configuration.
Check each affected device's devices_get_config.configProposal. MCP cannot
approve a device config proposal.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_id` | string | Yes | Saved version ID with publishable=true. |
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow version deploy gates get

**Slug:** `ROBOFLOW_MCP_WORKFLOW_VERSION_DEPLOY_GATES_GET`

Read all gate verdicts and publishable for a saved version. Poll after starting checks.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_id` | string | Yes | Saved version ID. |
| `workflow_id` | string | Yes | Workflow document ID. |

### Workflow version deploy gates run

**Slug:** `ROBOFLOW_MCP_WORKFLOW_VERSION_DEPLOY_GATES_RUN`

Start all checks for this version. Requires Run Workflow Evals permission.

An Eval check can run metered inference. The response is pending, not a passed
verdict. Poll workflow_version_deploy_gates_get until publishable is true or
a gate fails. A replay with the same key returns the check it started.
A version with only a manual approval gate does not need this call.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `version_id` | string | Yes | Saved version ID. |
| `workflow_id` | string | Yes | Workflow document ID. |
| `idempotency_key` | string | No | UUID v4 key. Reuse this key when retrying a lost response. |

### Workspace announcements create

**Slug:** `ROBOFLOW_MCP_WORKSPACE_ANNOUNCEMENTS_CREATE`

Schedule a banner announcement that every member of the workspace sees.

Confirm the text and window with the user before calling: the banner reaches
everyone in the workspace as soon as its window opens.

Times are ISO-8601 with an explicit offset, e.g. ``2026-09-03T09:00:00-04:00``.
A window lasts 5 minutes to 365 days and may not overlap another announcement;
an overlap fails with 409 and names the conflicting announcement and its window,
so pick a free window or update the other announcement.

Returns ``{ announcement, start_at_clamped, dismissals_reset }``. When
``start_at_clamped`` is true the start was in the past and was moved to now;
tell the user.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ends_at` | string | Yes | When the banner stops showing (ISO-8601 with offset). |
| `message` | string | Yes | Banner text, 1 to 400 characters after trimming. Plain text; newlines are kept, 3 or more in a row collapse to one blank line. |
| `timezone` | string | Yes | IANA timezone the schedule is shown in, e.g. America/New_York. It only affects how times are displayed, not when the banner shows. |
| `starts_at` | string | No | When the banner starts showing (ISO-8601 with offset). Omit to start now; a start in the past is moved to now. |

### Workspace announcements delete

**Slug:** `ROBOFLOW_MCP_WORKSPACE_ANNOUNCEMENTS_DELETE`

Delete an announcement. A live banner disappears for everyone right away.

The announcement drops out of workspace_announcements_list and cannot be restored
through MCP. An unknown or already deleted id answers 404.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `announcement_id` | string | Yes | Announcement id from workspace_announcements_list. |

### Workspace announcements list

**Slug:** `ROBOFLOW_MCP_WORKSPACE_ANNOUNCEMENTS_LIST`

List the workspace's scheduled, live and past announcements, newest start first.

Returns ``{ announcements: [{id, message, starts_at, ends_at, timezone, status,
lifecycle, revision, created_at, created_via, updated_at, updated_via}],
next_cursor }``. ``status`` is ``active`` (showing now), ``upcoming`` or
``previous``. ``next_cursor`` is null on the last page. Deleted announcements are
not listed.

Requires permission to manage workspace announcements and a plan that includes
them; otherwise the platform answers 403.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum announcements to return, from 1 to 100 |
| `cursor` | string | No | next_cursor from the previous page |

### Workspace announcements update

**Slug:** `ROBOFLOW_MCP_WORKSPACE_ANNOUNCEMENTS_UPDATE`

Change an announcement's text, window or display timezone.

Only the fields you pass change; pass at least one. The previous text is
replaced and cannot be recovered. The same window rules as
workspace_announcements_create apply, including the 409 on overlap.

Returns ``{ announcement, start_at_clamped, dismissals_reset }``. Changing the
message or start shows the banner again to everyone who dismissed it
(``dismissals_reset`` true); changing only the end or timezone does not. Tell the
user when either flag is true.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ends_at` | string | No | When the banner stops showing (ISO-8601 with offset). |
| `message` | string | No | Banner text, 1 to 400 characters after trimming. Plain text; newlines are kept, 3 or more in a row collapse to one blank line. |
| `timezone` | string | No | IANA timezone the schedule is shown in, e.g. America/New_York. It only affects how times are displayed, not when the banner shows. |
| `starts_at` | string | No | New start time (ISO-8601 with offset); a start in the past is moved to now |
| `announcement_id` | string | Yes | Announcement id from workspace_announcements_list. |
