Skip to main content
Glama

Delete Subfolder

delete_subfolder
Destructive

Deletes one Wistia subfolder and moves its media to the parent folder root, making it inaccessible via the API.

Instructions

Deletes one subfolder and moves its media to the folder's root level. The subfolder is soft-deleted and is no longer accessible via the API. To delete multiple subfolders and their media, use the Bulk Delete Subfolders endpoint.

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. 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.
folder_idYesThe hashed ID of the folder
subfolder_idYesThe hashed ID of the subfolder

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.6/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say destructive/not-read-only) by disclosing that the deletion is a soft delete, that the subfolder becomes inaccessible via the API, that media is relocated rather than deleted, and that confirm=true is required. It also spells out the token/permission model, including delegated and expiring-token cases.

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 functional content is front-loaded into two tight sentences with the alternative named early. The trailing permissions block is long boilerplate (including a docs link and a generic 'may share access, notify people or incur provider charges' clause) that is relevant but bulky relative to the core instruction.

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 destructive 2-required-param mutation with no output schema, the description covers what is destroyed, what happens to the contained media, the confirm requirement, the authorization model, and the multi-delete alternative. An agent has everything needed to call it correctly or route elsewhere.

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 folder_id, subfolder_id, account and confirm are already documented in the schema. The description restates the confirm=true requirement and auth context but adds no syntax or format detail for the ID parameters, so the baseline of 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 ('Deletes one subfolder') and immediately adds the key side effect ('moves its media to the folder's root level'). It explicitly distinguishes itself from the sibling bulk_delete_subfolders, so an agent can select it without opening either schema.

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?

Names the alternative (Bulk Delete Subfolders) and the condition that selects it (multiple subfolders and their media). It also states the precondition for the mutation itself (confirm=true) and the permissions required, leaving little to inference.

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