Skip to main content
Glama

Robot Actions — Remote Device Control

Flow recording delete step

flow_recording_delete_step
DestructiveIdempotent

Delete one step from an in-progress recording (before flow_recording_save). Removes a mis-recorded step — e.g. an assert that bound to the wrong element or a stray tap — without discarding and re-recording the whole flow. Remaining steps are renumbered; the returned step list reflects the new 1-based indices. Deleting the appLaunch step (index 1) is rejected. Use the stepIndex from a flow_recording_action / flow_recording_get response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepIndexYes1-based index of the step to delete
recordingIdYesRecording ID from flow_recording_start

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes beyond the annotations by disclosing real behavioral consequences: remaining steps are renumbered, the returned list reflects new 1-based indices, and deleting the appLaunch step at index 1 is rejected. The annotations already flag destructiveHint/readOnlyHint, so this extra operational detail is genuine added value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences; the core action and its constraint come first, followed by rationale, side effects, and parameter sourcing. No filler or repetition of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation with no output schema, the description covers the action, the edge case (index 1), renumbering, and where to get the index. It could briefly note whether a delete can be undone (e.g. via flow_recording_revert), but otherwise it is sufficient to call correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline is 3, but the description adds provenance the schema lacks — telling the agent to source stepIndex from a flow_recording_action or flow_recording_get response, which prevents guessing an index.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Delete one step from an in-progress recording') and scopes it with 'before flow_recording_save', immediately distinguishing it from the save/list/get siblings. An agent can tell exactly what this tool mutates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context (fix a mis-recorded assert or stray tap 'without discarding and re-recording the whole flow') and the precondition that the recording is in progress. It does not, however, mention the close alternative flow_recording_replace_step, which an agent might prefer when editing rather than removing a step.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources