Skip to main content
Glama

studio_save

Destructive

Save the open page as a new version and close the session. Runs the same checks as studio_run_checks; when they fail, nothing is saved and the errors come back to you. On a change, the first save that loses functions or element ids the request does not remove is refused once, with their names; so is the first save that changes a table or a gb.storage key other pages read, with those pages. Saving publishes the version, as a change made in the studio is published: a navigation's or a list's code is written in the back office, and the app shows the page after its next publication. The answer says whether the version was published (published) and, when it was not, why and what to do (publication): tell the user. Each API host the page calls is approved for the page by the save itself. A key never passes through here: when the page needs one the studio does not have, the save is refused and says where the user gives it. Shared tables the page declares and does not have yet, and columns it adds to them, are made by the save, without asking the user: for an app with no database yet it creates the app's database first, for a new page of an app on its own Supabase project it attaches the page to that project first (studio_get (what doc) topic supabase says which). A change to entries the user already has, or to who may read or add them, in the app's own Supabase project (a field's type changed, an access rule added or changed, a table rebuilt) is never made without the user: the save answers confirmation_needed with each change and its id; show the user each one, then call studio_save again with accepted_changes. A save can take a minute: a save_pending error means the save goes on; call studio_save again with the same session_id for its outcome.

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": {
      "session_id": "<session_id>",
      "summary": "<summary>",
      "not_done": "<not_done>"
    },
    "name": "studio_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
summaryYesFor the user, in the user's language: one sentence saying what the page does or what changed.
not_doneYesFor the user, in the language of the request: what the request asked that the page does not do as asked. For example: sample data instead of the user's, data kept on each device instead of shared between users, a change made on this page instead of another, a version rebuilt instead of restored. Never what you did. Exactly "" when the page does all of it.
session_idYesThe session_id studio_open_page returned.
auto_acceptNotrue only when the user asked you to apply changes to their saved entries without asking each time: every such change of this save is made without being listed.
accepted_changesNoThe ids of the changes to the user's saved entries that the user accepted, from studio_save's confirmation_needed answer. Never an id the user did not accept.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Well beyond the annotations (destructiveHint=true, idempotentHint=false), it discloses that checks may abort the save, that the first destructive-looking save is refused once with names, that publishing is a side effect with a published/publication answer, that API hosts are auto-approved per page, that missing shared tables/columns are created without asking, and that user-data/access-rule changes always require confirmation. This is exactly the behavioral context an agent needs before invoking a destructive write.

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

Conciseness3/5

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

The core action is front-loaded, but the body is a dense block of long, clause-heavy sentences (e.g. the sentence about refusals for lost functions and element ids) that take effort to parse. Nearly every sentence carries needed information, so the length is defensible, but the structure would benefit from breaking the refusal, publication, and confirmation rules into clearer statements.

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 complex mutating tool with no output schema, the description covers the full response surface an agent must handle: published/publication, confirmation_needed with change ids, save_pending continuation, and refusal messages that tell the user where to supply a key. Nothing essential to correct invocation appears 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% and the field descriptions are already rich, so the baseline is 3. The description earns above baseline by explaining where accepted_changes ids come from (the confirmation_needed answer) and how auto_accept interacts with the per-change confirmation flow, meaning the schema text alone would not convey.

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 first sentence states a specific verb and resource plus the side effect on the session: 'Save the open page as a new version and close the session.' It also positions itself against the sibling studio_run_checks by saying it runs the same checks, so an agent can tell save-with-checks apart from check-only.

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?

The description lays out the operating conditions in detail: retry with the same session_id on save_pending, re-call with accepted_changes after showing the user each confirmation_needed entry, and note that the first save dropping functions/element ids or changing shared tables/storage keys is refused once. It references studio_run_checks and studio_get for related needs, though it never explicitly frames run_checks as the check-without-saving alternative.

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.