Skip to main content
Glama

Delete a version

delete_version
Destructive

Permanently deletes an old version of an app in the account, by its number (as listed by get_app). Requires confirm: true. The version in use (the latest) can't be deleted; rollback_app can make another version the current one first. The other versions keep their numbers and the app's data stays unchanged. Can't be undone.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "appId": "<appId>",
      "version": "<version>",
      "confirm": "<confirm>"
    },
    "name": "delete_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYesThe app's short id, as returned by create_app or list_apps (e.g. "a-x7k2pq").
confirmYesMust be true: confirms the deletion.
versionYesThe number of the old version to delete, as listed by get_app. Not the version in use.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so permanence is partly telegraphed. The description still adds real value beyond them: irreversibility, the current-version restriction, and the fact that other versions keep their numbers and app data is unchanged. It stops short of describing auth requirements or any rate limiting. Scored 3 rather than 5 because in this schema-confirmed form the earnable added context is already largely covered by the destructive flag and the schema.

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?

Four compact sentences, front-loaded with the action and identifier, then preconditions, then constraints. Every sentence carries distinct operational information with no filler.

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 three-parameter destructive call with a fully documented schema and no output schema, the description covers what is destroyed, what survives, what is blocked, and how to unblock it. Nothing an agent needs before calling is missing.

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%, and the schema already documents appId's short-id form, confirm's const:true constraint, and version's exclusivity from get_app. The description largely restates these rather than adding syntax or edge cases, 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 and resource ('Permanently deletes an old version of an app') and scopes it precisely with 'by its number', which separates it from delete_app (whole-app deletion) and rollback_app 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?

Gives the precondition (requires confirm: true), an explicit exclusion (the version in use cannot be deleted), and the corrective alternative (rollback_app can make another version current first). It also names the sibling that supplies the version number (get_app).

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