Skip to main content
Glama

setStepMedia

Sets or clears the media (image, video, or file) shown on a step. Pass an attachmentId from uploadMedia (target 'step') to set it — any existing media on the step is replaced — or attachmentId=null to remove the current media. A TriggeredEmail step shows no media and is rejected here. 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.
attachmentIdYesAttachment handle from uploadMedia (target 'step'), or null to remove the step's current media.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond readOnlyHint=false, it discloses replacement of existing media, immediate versus staged writes by project state, delayed tester visibility, commit and revert behavior, and the editing ban for terminal project states. The explanation of staged response rows, unexpected IDs, and liveVersionId is especially valuable behavioral context not supplied by the annotations.

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?

The set-and-clear behavior is front-loaded, followed logically by prerequisites, exclusions, lifecycle effects, and response-ID behavior. Although relatively long, each sentence supplies an operational rule needed for this stateful mutation rather than filler or marketing language.

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?

For a four-parameter mutation with no output schema, the definition supplies the required workflow, invalid states, replacement behavior, publication lifecycle, and important staged-response semantics. Together with the fully described input schema, it gives an agent enough context to select and invoke the tool 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 description coverage is 100%, and much of the attachmentId guidance repeats that schema, so the baseline is 3. The description earns additional credit by explaining that task and step IDs may be either live or staged during staging, although it adds little specific semantics for productId.

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?

The opening sentence precisely identifies the operation and resource: setting or clearing an image, video, or file on a step. Its step scope distinguishes it from task-media tools, while the replacement and null-removal behavior makes the mutation unambiguous.

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

Usage Guidelines5/5

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

It gives explicit set and clear workflows, including the prerequisite uploadMedia call with target 'step'. It also explains when not to use it, for TriggeredEmail steps and finished or archived projects, and names commitTaskChanges, revertTaskChanges, and getBetaTasks for the staged workflow.

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