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.

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

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

  • Streams preview watch

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

  • Streams rtsp add

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

  • Streams rtsp connectors

    List workspace connectors that can accept an RTSP camera.

  • Streams setup open

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

  • Streams source select

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

  • Streams sources list

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

  • Streams workflows list

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

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

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

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

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

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

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

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

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

  • 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

    Restore a soft-deleted project from the workspace Trash. Undoes ``projects_delete`` while the project is still within its 30-day retention window.

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

PreviousPage 11 / 18Next