Skip to main content
Glama

Delete a release asset

delete_release_asset
DestructiveIdempotent

Delete a release asset by attachment ID so a replacement can be uploaded without Forgejo keeping the old same-named file. Use it to clear outdated assets from a release.

Instructions

Delete one asset from a release by attachment_id (requires write mode). Used to replace a same-named asset, which Forgejo would otherwise keep alongside the new one.

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name.
ownerYesRepository owner.
release_idYesRelease id the asset belongs to.
attachment_idYesAttachment id, from `list_release_assets`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false, and openWorld=true. The description adds useful context beyond those hints: write mode is required, and deleting an old same-named asset prevents Forgejo from retaining duplicates.

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

Conciseness5/5

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

The description is two focused sentences with the action front-loaded and the prerequisite/use case following immediately. There is no redundant restatement of the title or schema.

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 simple destructive delete with full schema coverage and rich annotations, the description supplies the remaining practical context: write mode and the replacement workflow it supports. No output schema is needed for a deletion operation of this kind.

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 all four parameters are already documented. The description reinforces attachment_id as the identifying parameter but adds no syntax, format, or constraint details beyond the schema.

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?

The description states a specific verb and resource: deleting one release asset identified by attachment_id. It is clearly distinguishable from sibling tools such as delete_repo, delete_file, upload_release_asset, and list_release_assets.

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 a concrete usage condition: replacing a same-named asset that Forgejo would otherwise keep alongside the new one. It also states the write-mode prerequisite, though it does not explicitly name alternative tools or state when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.