Skip to main content
Glama

Swap Media

swap_media
Destructive

Replace original Wistia media with another while preserving its hashed ID and URLs, queued as a background job.

Instructions

Swap one media with another media. This operation queues a background job to replace the original media with the replacement media while preserving the original media's hashed ID and URLs.

Requires api token with one of the following permissions

Read, update & delete anything

Tokens with the "Act with a team member's permissions" permission (all:delegate_to_contact_permissions scope) can also be used. Requests made with such a token are authorized using the permissions of the contact assigned to the token.

An expiring access token created with the all:delegate_to_contact_permissions scope can also be used when its authorizations grant the update permission on both the media being replaced and the replacement media. A replacement media the token does not name is treated as not found. Requires confirm=true for the requested mutation. May share access, notify people or incur provider charges.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoNamed private Wistia account; selects credentials, not a remote account ID.
confirmNoMust be true for the specific user-requested write.
payloadNoComplete JSON request body instead of body flags. Supports current nested customization, caption and nullable values.
payload_fileNoRegular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload.
media_hashed_idYesThe hashed ID of the media to be replaced.
replacement_media_idNoThe hashed ID of the media that will replace the original media. Must be the same media type as the original.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that a background job is queued, that confirm=true is mandatory, the exact permission scopes required, expiring-token authorization semantics, and that the operation 'may share access, notify people or incur provider charges.' This is rich mutation context layered on top of destructiveHint/openWorldHint.

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

Conciseness4/5

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

The core operation and side-effect warning are front-loaded, and the auth block is clearly delineated in its own section. The permission prose is somewhat verbose and repetitive for a tool that mostly needs the when-to-use framing, but every part is relevant.

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 6-parameter, nested-object mutation with no output schema, the description covers the queued-job behavior, auth requirements, confirm gate, and side effects. It omits what happens on failure and whether the background job's progress can be tracked (e.g., via get_job_status), leaving a small gap.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents media_hashed_id, replacement_media_id, confirm, account, payload, and payload_file. The description adds little parameter-level detail beyond restating the confirm requirement and the same-media-type constraint, which the schema already states. Baseline 3 applies.

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 (swap one media with another), plus the key scoping fact that the original media's hashed ID and URLs are preserved. This distinguishes it clearly from siblings like copy_media, update_media, and upload_media, which do not retain the original identity.

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 concrete preconditions (confirm=true, required permission scopes, delegated/expiring token behavior) and describes the outcome (background replacement preserving identity). It does not explicitly contrast when to use this versus copy_media or upload_media, so the agent must infer the 'replace in place' scenario.

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

Deploy Server

Other Tools