Skip to main content
Glama

Bulk Delete Subfolders

bulk_delete_subfolders
Destructive

Delete multiple subfolders asynchronously and soft-delete their media; owners or managers can restore from trash until purged.

Instructions

Deletes multiple subfolders asynchronously. Their media is also soft-deleted and can be restored from the trash by an account owner or manager until it is purged. To keep the media, use the Delete Subfolder endpoint, which moves it to the folder's root level.

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 and an authorization granting the update permission on this folder can also be used.

An expiring access token created with the all:delegate_to_contact_permissions scope and an authorization granting the update permission on the folder can also be used. 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.
folder_idYesThe hashed ID of the folder containing the subfolders
hashed_idsNoAn array of the subfolder hashed IDs to be deleted.
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. First observedv2.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint, non-idempotent, openWorld, and non-readOnly, so the safety profile is carried by structured data. The description adds meaningful context beyond that: media is soft-deleted and restorable from trash by an owner/manager until purged, and it requires confirm=true. The triple-repeated expiring-access-token paragraph is redundant boilerplate, slightly diluting the behavioral clarity.

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

Conciseness2/5

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

The core opening is well front-loaded, but the permissions block is bloated and repeats the 'expiring access token with all:delegate_to_contact_permissions' paragraph three times nearly verbatim. That redundancy adds significant noise to an otherwise short behavioral statement.

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 bulk mutation with no output schema, the description covers restore behavior, prerequisites, and alternatives, which is sufficient. It could clarify the async job/return behavior (e.g., how to check status via get_job_status), but is otherwise complete.

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, folder_id, hashed_ids, and payload_file. The description adds the confirm=true requirement and mentions folder_id/update authorization, but offers no syntax or format detail beyond the schema. Baseline 3 is appropriate 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.

Purpose5/5

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

States a specific verb+resource: 'Deletes multiple subfolders asynchronously'. It also explicitly distinguishes itself from the sibling delete_subfolder by contrasting behavior: this one soft-deletes contained media, while delete_subfolder moves it to root.

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?

Explicitly names the alternative (Delete Subfolder endpoint) and the condition that selects it ('To keep the media'). It also documents permission requirements and the confirm=true prerequisite, so an agent knows when and how it may be used.

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