Skip to main content
Glama

SPACEXPLORATION

Delete attachment

delete_attachment
DestructiveIdempotent

Delete an attachment you own by its ULID. Soft-deletes the row so it no longer appears on the listing. Use this to clean up an abandoned upload (one you signed but never finished) or a photo you no longer want. Idempotent: deleting an already-deleted attachment succeeds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
attachment_idYesThe attachment_id (ULID) of the attachment to delete, as returned by sign_attachment_upload / confirm_attachment_upload or listed in get_listing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered; the description adds genuinely new behavior by disclosing that this is a SOFT delete (the row persists but drops off the listing) and that ownership is required. The idempotency sentence restates the annotation rather than adding to it, keeping this from a 5.

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?

Four short sentences, front-loaded with the core action and identifier. The final idempotency sentence largely duplicates the annotation's idempotentHint and is the one mildly redundant piece.

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 single-parameter destructive tool with no output schema, the description covers prerequisites (ownership), effect (soft-delete, removal from listing), retry semantics, and intended use cases. The only gap is not stating the return value or whether the ID becomes reusable, which is minor here.

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 single attachment_id parameter is fully documented in the schema itself. The description adds only the ownership constraint ('you own'), not new format or syntax detail, so the 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 (delete), resource (attachment), ownership scope ('you own'), and identifier type (ULID) in the first sentence. An agent can distinguish this from attach_listing_photo, confirm_attachment_upload, and sign_attachment_upload 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names two use cases – cleaning up an abandoned signed-but-unfinished upload, or removing an unwanted photo – which routes the agent well versus sibling attachment tools. It lacks any when-not guidance or explicit alternative-tool disambiguation (e.g. 'to remove a photo from a live listing, use update_listing'), so it stops short of a 5.

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