Skip to main content
Glama

Delete uploaded asset

delete_asset
DestructiveIdempotent

Delete an uploaded image or video from PinBridge storage. Irreversible; confirm first.

    Use to clean up media from upload_asset that is no longer needed; its
    public_url stops working. Published pins keep their image on Pinterest.
    With confirm=true, a pin or scheduled pin that has not published yet
    and uses the asset fails to publish, so tell the user which ones first.

    Returns asset_id, deleted, requires_confirmation, referenced_pin_count
    (pins plus scheduled pins that have not run yet) and freed_bytes. With
    confirm=false and the asset still in use, nothing is deleted: deleted
    is false and requires_confirmation true.
    Fails with not_found for an unknown id and insufficient_scope without
    the destructive scope.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNofalse (default) deletes nothing while pins or pending scheduled pins use the asset and reports how many; true deletes it anyway and detaches it.
asset_idYesUUID of the uploaded asset, from upload_asset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive/idempotent/readOnly status, but the description adds substantial context beyond them: irreversibility, that public_url stops working, that unpublished pins fail to publish, and two named failure modes (not_found, insufficient_scope) tied to a required scope. This is exactly the behavioral disclosure a destructive tool needs.

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?

Front-loaded with purpose and the irreversible warning, then usage and return/failure details in scannable paragraphs. Dense but every sentence carries decision-relevant information; slightly verbose for a two-parameter tool.

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?

No output schema exists, yet the description enumerates the return fields (asset_id, deleted, requires_confirmation, referenced_pin_count, freed_bytes) and the confirm=false no-op state. Combined with failure modes, an agent has everything needed to call and interpret this destructive 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 coverage is 100%, so the baseline is 3, but the description goes further by explaining the confirm=false vs confirm=true semantics in terms of consequences (nothing deleted vs deletes anyway and detaches) and the referenced_pin_count meaning. The added meaning is real but largely overlaps the schema's own confirm description.

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 ('Delete an uploaded image or video from PinBridge storage') with clear scope, distinguishing it from sibling delete_pin/delete_board/delete_schedule by naming the asset origin (upload_asset). An agent can identify this tool without opening any 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?

Gives explicit when-to-use ('clean up media from upload_asset that is no longer needed'), the alternative edge case (published pins keep their image on Pinterest), and a precondition ('tell the user which ones first') before destructive confirmation. Routing and sequencing guidance is fully spelled out.

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