Skip to main content
Glama

Delete Version

delete_version
DestructiveIdempotent

Permanently removes a MantisBT project version and clears related issue version fields; this action is irreversible.

Instructions

Permanently delete a version of a MantisBT project. This action is irreversible.

MantisBT clears the version, target_version and fixed_in_version fields of all issues that reference the deleted version (including subprojects if versions are inherited). To retire a version without touching issues, set obsolete=true via update_version instead.

The version must belong to project_id itself: versions inherited from a parent project can only be changed via the parent's project_id (otherwise MantisBT answers "Version not found"). get_project with include: ["versions"] and without inherit lists the project's own versions.

Requires the manage_project_threshold access level in the project (MantisBT default: manager).

Input Schema

NameRequiredDescriptionDefault
project_idYesNumeric ID of the project the version belongs to — use list_projects to discover project IDs
version_idYesNumeric version ID — use get_project with include: ["versions"] to discover version IDs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.15.0
    • changedInput schema / properties / version_id / description
      Previous value: -"Numeric version ID — use get_project_versions to discover version IDs"New value: +"Numeric version ID — use get_project with include: [\"versions\"] to discover version IDs"
  2. Addedv1.14.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive and idempotent, but the description goes well beyond them: it discloses the exact cascade (version, target_version and fixed_in_version fields cleared on all referencing issues, including subprojects when versions are inherited), irreversibility, and the access level required (manage_project_threshold, default manager).

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 paragraphs, front-loaded with the destructive warning, and every paragraph covers a distinct concern (effect, alternative, ownership constraint, permissions). Slight redundancy with the schema's discovery hints keeps it from being maximally tight.

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, but the description covers everything an agent needs before calling a destructive mutation: side effects, irreversibility, an escape-hatch alternative, the inheritance trap, and permission requirements.

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 both parameters are already documented. The description still adds real meaning by constraining project_id to the version's owning project and explaining that inherited versions will fail, though its discovery hint for get_project largely repeats the schema's own hint.

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 ('Permanently delete a version of a MantisBT project') and immediately marks it as irreversible. It is clearly distinguishable from its nearest sibling update_version, which it names as the non-destructive alternative.

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 an explicit when-not: to retire a version without touching issues, use update_version with obsolete=true. It also states the precondition that the version must belong to project_id itself and that inherited versions must be changed via the parent project, with the exact error MantisBT returns.

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