Skip to main content
Glama

Read or replace Studio source or a Mobile draft

project
Destructive

Reads or replaces one project this account owns. action get reads a Cloud page, Studio source, or a Mobile Expo draft. action save replaces Studio source or a Mobile draft, does not publish a site, and does not start an EAS build. Use project for one existing row. Use create_project to create it, list_projects to find the id, deploy to publish Cloud HTML, database for Data tables and records, and export for a ZIP or JSON download. A Mobile save requires expectedUpdatedAt from the last get or save. Cloud, Data, and Code cannot be saved here.

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": {
      "action": "<action>",
      "product": "<product>",
      "projectId": "<projectId>"
    },
    "name": "project"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoStudio save only. Complete HTML preview document. Cloud pages are published with deploy, not saved here.
nameNoOptional new display name on save. Studio: 1 to 100 characters. Mobile uses this or draft.appName.
draftNoMobile save only. Full Mobile builder draft, version 1. The save replaces the stored draft.
filesNoStudio save only. Source map. index.html is required. Paths end in html, css, js, json, md, or svg.
actionYesget reads. save replaces Studio source or a Mobile draft. save does not publish Cloud HTML.
promptNoStudio save only. Replaces the stored prompt. Up to 4,000 characters.
productYescloud, studio, or mobile can be read. studio or mobile can be saved. data is refused and belongs on database. code is refused.
projectIdYesUUID of the Cloud site, Studio project, or Mobile project this account owns.
expectedUpdatedAtNoRequired for a Mobile save. Use updated_at from the last get or save. A mismatch returns 409 and does not write.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"get reads. save replaces Studio source or a Mobile draft. save does not publish Cloud HTML."
    • changedInput schema / properties / draft / description
      Previous value: -"Full Mobile builder draft, version 1. A save replaces the stored draft."New value: +"Mobile save only. Full Mobile builder draft, version 1. The save replaces the stored draft."
    • changedInput schema / properties / expectedUpdatedAt / description
      Previous value: -"Required for a Mobile save. Use updated_at from the last get or save."New value: +"Required for a Mobile save. Use updated_at from the last get or save. A mismatch returns 409 and does not write."
    • changedInput schema / properties / files / description
      Previous value: -"Studio source map. index.html is required. Paths end in html, css, js, json, md, or svg."New value: +"Studio save only. Source map. index.html is required. Paths end in html, css, js, json, md, or svg."
    • changedInput schema / properties / html / description
      Previous value: -"Studio preview. A complete HTML document. Cloud pages are published with deploy."New value: +"Studio save only. Complete HTML preview document. Cloud pages are published with deploy, not saved here."
    • addedInput schema / properties / name / description
      Added value: +"Optional new display name on save. Studio: 1 to 100 characters. Mobile uses this or draft.appName."
    • addedInput schema / properties / product / description
      Added value: +"cloud, studio, or mobile can be read. studio or mobile can be saved. data is refused and belongs on database. code is refused."
    • addedInput schema / properties / projectId / description
      Added value: +"UUID of the Cloud site, Studio project, or Mobile project this account owns."
    • changedInput schema / properties / prompt / description
      Previous value: -"Studio only. Up to 4,000 characters."New value: +"Studio save only. Replaces the stored prompt. Up to 4,000 characters."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes further by pinning down side-effect boundaries: save does not publish a site and does not start an EAS build, and a Mobile save requires expectedUpdatedAt with a 409 on mismatch. That concurrency-token behavior and the 'no publish/no build' guarantees are real value beyond the annotations, though it still doesn't say what save returns or whether a replaced draft is recoverable.

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?

The scope and the action semantics are front-loaded, and the routing sentence packs many alternatives into one line without padding. There is mild redundancy between 'does not publish a site' and the later product-exclusion sentence, but nothing that wastes a reader's time.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter, nested-object mutation tool with no output schema, the description covers the action/product matrix, the concurrency requirement, the non-side-effects, and all sibling routes. The remaining gap is the mutation outcome (what a successful save returns and whether prior source is recoverable), which is a modest omission given the annotations already flag destructiveness.

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 the input schema already explains action, product, projectId, expectedUpdatedAt, and the per-product payload fields. The description reinforces the product/action constraint matrix and the expectedUpdatedAt prerequisite but adds no syntax or format detail beyond the schema, 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?

The description opens with a precise verb and resource ('Reads or replaces one project this account owns') and immediately decomposes the two actions into their supported products: get over Cloud/Studio/Mobile, save over Studio/Mobile only. That level of specificity makes it easy to distinguish from siblings such as deploy or create_project 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?

It gives an explicit routing rule ('Use project for one existing row') and then names each alternative with the condition that selects it: create_project to create, list_projects to find the id, deploy to publish Cloud HTML, database for Data, export for downloads. It also states hard exclusions ('Cloud, Data, and Code cannot be saved here'), so an agent knows both when to use it and when not to.

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