Skip to main content
Glama

CodePress Sites

Upload guest site files

upload_guest_site_files
Idempotent

Uploads static HTML files with no shell, compiler, ZIP or hash tooling and returns a ready, unpublished release. files is an array of objects, each {path, text} or {path, capture_artifact: {capture_id, artifact_id}}, e.g. files: [{path: "index.html", text: "..."}]. It is not a path-keyed map and takes no size, sha256 or content_type; those manifest maps exist only inside ZIP archives. Up to 16 files: 128 KiB authored UTF-8 text plus 4 MiB of same-site capture_artifact references. The server generates the manifests. A repeated identical operation_id returns the same release.

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": {
      "guest_id": "<guest_id>",
      "edit_capability": "<edit_capability>",
      "operation_id": "<operation_id>",
      "expected_generation": "<expected_generation>",
      "files": "<files>"
    },
    "name": "upload_guest_site_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
guest_idYes
operation_idYes
edit_capabilityYes
expected_generationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false and idempotent=true; the description adds real value beyond them by explaining the idempotency mechanism (repeated identical operation_id returns the same release), stating the release is unpublished, and noting the server generates manifests. It leaves the security model of edit_capability and the concurrency implications of expected_generation undisclosed. No contradiction with annotations.

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?

The text is front-loaded with purpose, then shape, then limits, then idempotency, each in a tight clause with no filler. The inline example of the files argument is the most useful use of space possible given the complex nested schema. Every sentence carries a distinct constraint or behavior.

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

Completeness3/5

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

For a mutating 5-required-parameter tool with no output schema and 0% schema descriptions, the definition covers the hardest part (file payloads) well but omits what an agent most needs to call it safely: what edit_capability is and where it comes from, and what expected_generation is checked against. The return value ("release") is named but its shape and the unpublished-to-published handoff are not explained. Adequate but with clear gaps for this complexity.

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 0%, so the description must carry parameter meaning. It does an excellent job on files (array not path-keyed map, per-item {path, text} or {path, capture_artifact}, 16-item and 128 KiB / 4 MiB limits) but says nothing about guest_id, edit_capability, or expected_generation, and only obliquely covers operation_id via idempotency. Roughly two of five parameters are explained, so the description is only half-compensating for the schema gap.

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 opening sentence gives a specific verb and resource ("Uploads static HTML files") and immediately scopes it by naming what it does not accept: no shell, compiler, ZIP or hash tooling. That negative framing cleanly separates it from upload_guest_site_archive and the begin/complete upload pair. It also states the outcome ("a ready, unpublished release"), so an agent knows the result shape.

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?

There is clear context: use this for authored inline text or same-site capture artifacts, and "those manifest maps exist only inside ZIP archives" implicitly routes the ZIP/sha256 case to a sibling. However, no sibling is named explicitly and nothing says when to prefer begin_guest_site_upload/complete_guest_site_upload over this one-shot call. Guidance is strong but stops short of explicit exclusions.

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.