Skip to main content
Glama

removeStepMedia

Destructive

Removes the media (image, video, or file) shown on a step and deletes its stored file, like setStepMedia with attachmentId=null. A no-op (cleared: false) when the step has no media. On a draft or scheduled beta project the change is applied immediately. On a running or paused beta project the change is STAGED: testers do not see it until commitTaskChanges publishes all staged changes (revertTaskChanges discards them; getBetaTasks with version 'unpublished' shows the staged state). While staging, these tools accept BOTH the live id and the staged id of a task or step, but always respond with the STAGED row — expect ids you did not pass in, with liveVersionId linking back to the live row. Content of finished or archived beta projects cannot be edited.

Input Schema

NameRequiredDescriptionDefault
stepIdYesID of the step within the task, from getBetaTasks. Never invent ids.
taskIdYesID of the task, from getBetaTasks. Never invent ids.
productIdYesID of the beta project to query. Get valid IDs from the listProducts tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation: it states the stored file is deleted, that an empty step returns cleared: false, that changes are staged on live betas until commitTaskChanges, and that finished/archived projects cannot be edited. That is exactly the mutation risk profile an agent needs before calling.

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?

Dense but front-loaded: the destructive action comes first, then edge cases, then the staging contract, then the hard limit. Every sentence carries operational information and none restates the tool name.

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

Completeness5/5

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

With no output schema, the description still tells the agent what a response looks like (cleared: false, staged rows with liveVersionId) and when the call is refused. There is no meaningful gap for a destructive three-parameter mutation.

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 all three ids are documented, but the description adds real meaning: staging accepts both live and staged ids yet always returns the staged row with a liveVersionId back-link, so the agent should expect unfamiliar ids in the response.

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?

Starts with a specific verb and resource ('Removes the media... shown on a step and deletes its stored file') and names the sibling it mirrors (setStepMedia with attachmentId=null), which distinguishes it from removeTaskMedia and getStepMedia.

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?

Explains the no-op case, the draft/scheduled immediate path, the running/paused staging path, and which sibling tools publish or discard staged changes (commitTaskChanges, revertTaskChanges, getBetaTasks). It stops short of explicitly contrasting step-level vs task-level removal with removeTaskMedia, so a 4 rather than 5.

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