Developer Tools

Roboflow MCP

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

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • 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 }``.

  • Annotation batches create

    Move selected images from one batch into a new batch.

  • Annotation batches merge

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

  • Annotation editor save

    Save the user's annotation edits using the loaded group revision. A conflict requires reloading and reconciling edits. Never blindly retry.

  • Annotation jobs accept into dataset

    Finalize selected job images into the Dataset and assign splits.

  • Annotation jobs create

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

  • Annotation jobs images add

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

  • Annotation jobs images reassign

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

  • Annotation jobs return for edits

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

  • Annotation jobs review image

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

  • Annotation jobs review images

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

  • Annotation jobs submit for review

    Advance a labeling job into review.

  • Annotation jobs update

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

  • 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.

  • 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.

  • 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.

  • 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 }``.

  • 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.

  • 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.

  • Batch processing job abort

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

Page 1 / 5Next