Skip to main content
Glama

Archive Media

archive_media
Destructive

Archive up to 100 Wistia media items per request asynchronously; returns a background job status for bulk library cleanup. Webinar and Soapbox videos imported before Sept 1, 2023 cannot be archived.

Instructions

This method accepts a list of up to 100 medias to archive per request. It processes requests asynchronously and will return a background_job_status object rather than the typical Media response object. Note that webinar medias and Soapbox videos imported to Wistia before September 1, 2023 cannot be archived.

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. Requires confirm=true for the requested mutation. May share access, notify people or incur provider charges.

Input Schema

NameRequiredDescriptionDefault
accountNoNamed private Wistia account; selects credentials, not a remote account ID.
confirmNoSet true only when the user asked for exactly this action.
payloadNoComplete JSON request body instead of body flags. Supports current nested customization, caption and nullable values.
hashed_idsNoAn array of the media hashed IDs to be archived.
payload_fileNoRegular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true for the specific user-requested write."New value: +"Set true only when the user asked for exactly this action."
  2. First observedv2.0.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations declare the safety profile (destructive, non-idempotent, non-read-only), and the description adds behavior that annotations cannot convey: asynchronous processing, that a background_job_status object is returned instead of a Media object, and which media types are ineligible for archiving. The auth/permission requirements and the note about sharing/notifications/charges add further operational context.

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 key behavior (batch archive, async, background job return, ineligible media) is front-loaded before the boilerplate permission block. The auth scope section is somewhat long and repetitive, but it is arguably necessary context and does not bury the primary purpose.

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 destructive batch mutation with five params and no output schema, the description covers the important unknowns: async return type, eligibility restrictions, auth requirements, and confirm. It could say more about how to poll the returned background job (e.g., via get_job_status), but overall it is sufficient to call the tool correctly.

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 account, confirm, payload, hashed_ids, and payload_file. The description's only added parameter-level meaning is the 'up to 100' batch limit on hashed_ids, which is useful but minimal. Baseline 3 applies when the schema does the heavy lifting.

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

Purpose4/5

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

The description opens with a specific verb+resource ('archive ... medias') and states a batch ceiling of 100, so the agent immediately knows what the tool does. It does not explicitly name or differentiate from close siblings like delete_media, restore_media, or bulk_delete actions, so an agent must infer the boundary itself.

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?

It gives concrete preconditions and exclusions: up to 100 medias per call, asynchronous execution, uncensorable media types (webinar medias and pre-Sept-2023 Soapbox imports), and a mandatory confirm=true. What's missing is an explicit statement of when to prefer archive over delete/restore alternatives, so usage context is implied rather than routed.

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