Skip to main content
Glama

ensure_editable_version

Returns the app's editable private version before the first edit, creating a new one with user consent and a given name when only locked versions exist.

Instructions

A version you can write to. Only a private version is editable; public, shared-by-link and in-moderation versions are locked: the API responds "The app version is not editable". An app has at most one private version, the latest: the tool returns it, and if there is none, creates a new one. A new version copies the latest entirely, entity IDs in it stay the same, and users don't see the changes until the version is published (that is done in the builder, not with tools). A new one is created only with the user's consent and under the name they give: name + confirmed: true. Call this before the first edit of an app that already has published versions.

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>"
    },
    "name": "ensure_editable_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of the new version, from the user: usually the task or the gist of the change. Needed only if a version has to be created
appIdYesApp ID
confirmedNoThe user agreed to create a new version

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the exact failure surface ('The app version is not editable' for non-private versions), the copy semantics (new version copies the latest entirely, entity IDs preserved), the visibility rule (users see nothing until published), and a consent gate. Nothing material about side effects or auth-like preconditions is left unstated.

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?

Dense and front-loaded: the write-target framing comes first, then the lock rules, then the create semantics, then the call trigger. Every sentence carries a distinct fact, but several are long run-ons chained with commas and colons, which slightly impedes scanning.

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?

There is no output schema, so the description must say what comes back — it does ('the tool returns it'), and it also covers the create branch, side effects on entity IDs, and downstream publication. For a get-or-create tool with a consent gate, nothing an agent needs to invoke it correctly is missing.

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; the description earns an extra point by explaining the conditional nature of two parameters — name and confirmed are only meaningful when a version must be created, and both must come from the user rather than being invented. It does not clarify what happens if name is passed when a version already exists, which keeps it below 5.

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 the resource and the exact semantics: returns the app's single private version, or creates one if none exists. The get-or-create behavior is spelled out explicitly rather than left implied by the verb, and the notion of 'editable' is defined against the sibling concepts of public/shared-by-link/in-moderation versions.

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 a concrete trigger — 'Call this before the first edit of an app that already has published versions' — plus the precondition that a new version requires the user's consent and a user-supplied name (name + confirmed: true). It also states where the workflow ends (publishing happens in the builder, not with tools), which prevents the agent from looking for a subsequent tool.

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