Skip to main content
Glama

CodePress Sites

Update App content

update_app_content
DestructiveIdempotent

Updates a claimed static_html_v1 App's editable source and complete static output without AI or a build command. The request is the complete file set, index.html and every wanted asset: 1–16 files, up to 128 KiB new UTF-8 text plus 4 MiB retained source assets. retain_source {path, source_commit_sha} keeps a binary image/font from this App's listed apps//public/ snapshot without sending its bytes. Omitted files are removed from this App's source/output roots. Other .html files are pages at their exact path (about/index.html serves /about/); 404.html is only the not-found page; the route manifest is server-written. Requires a current expected_source_commit_sha. A repeated operation_id with identical input returns the same deployment even after the App's head moves; a repeated operation_id with different input is rejected. Returns a deployment_id; the deployment runs asynchronously and its status is readable by that ID. publish=true applies normal website publication/hosting checks.

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": {
      "page_id": "<page_id>",
      "expected_source_commit_sha": "<expected_source_commit_sha>",
      "operation_id": "<operation_id>",
      "files": "<files>"
    },
    "name": "update_app_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
page_idYes
publishNo
operation_idYes
organizationNo
expected_source_commit_shaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint, idempotentHint, openWorldHint), the description discloses the key consequences: omitted files are deleted from source/output roots, a current expected_source_commit_sha is required, and repeated operation_id with identical input returns the same deployment while differing input is rejected. It adds genuine concurrency and idempotency semantics rather than restating annotation flags.

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 essential scope statement is front-loaded and nearly every sentence carries operational weight. It is a single dense block that would be easier to parse as short clauses or bullets, but there is little outright filler.

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?

With no output schema, the description compensates by stating that a deployment_id is returned, that the deployment runs asynchronously, and that status is retrievable by that ID (matching the get_app_content_update_status sibling). Only the two undocumented parameters, page_id and organization, remain a gap for a mutation tool of this complexity.

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 description coverage is 0%, so the description carries the burden and mostly does: it explains file-set cardinality (1–16), the 128 KiB text plus 4 MiB retained-asset limits, the text-vs-retain_source shape, path routing rules for .html/404.html, and the meaning of operation_id, expected_source_commit_sha, and publish. It leaves page_id and organization entirely unexplained.

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: it updates a claimed static_html_v1 App's editable source plus complete static output, explicitly without AI or a build command. That scope distinguishes it from metadata-only siblings like update_app and from read/list tools such as read_app_source_file and list_app_source_files.

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?

It gives clear operating context: the request must be the complete file set, and retain_source is the path to use when reusing an existing binary asset without re-uploading bytes. It does not explicitly name alternatives (e.g., when to prefer update_app or how to fetch current content first), so an agent must infer sibling routing from names.

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.