Skip to main content
Glama

Submit a page for review

submit_page_revision

Closes an upload: joins the chunks, checks every file against its sha256, and checks the whole bundle (every relative reference in the HTML, CSS and module imports must resolve to a file of the bundle; index.html and its must exist; absolute URLs must be https). When all of it passes, writes the revision, which is private and cannot change afterwards, and asks the owner to review it. When anything fails, nothing is created, every problem is listed with its file, and the upload stays open for the missing or corrected files. Returns the page, the revision number and the reviewUrl where the owner previews the page and publishes it. Submitting the same upload again returns the first result. Requires the pages:write scope. Publishing, unpublishing and changes to the live profile are made only by the owner, in Entry.

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": {
      "entryId": "<entryId>",
      "uploadId": "<uploadId>"
    },
    "name": "submit_page_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
entryIdYesThe Entry's id (starts with ent_), as returned by list_entries.
uploadIdYesThe upload's id, as returned by start_page_revision.

Output Schema

NameRequiredDescriptionDefault
codeNoOnly when the call failed (isError): the error code, e.g. conflict, forbidden, not_found, validation_failed, rate_limited.
pageIdNoThe page's id.
statusNoThe page's state: draft until the owner publishes it.
detailsNoOnly when the call failed: conflict has revision, forbidden has requiredScope, rate_limited has retryAfter (seconds), validation_failed has problems; a refused page bundle has errors (code, path, detail, fix for each) and a stale page revision has revision.
messageNoOnly when the call failed: what went wrong and what to do.
pageUrlNoWhere the page will live once the owner publishes it: its address under the Entry (the owner may choose a custom domain when publishing).
revisionNoThe revision this made.
reviewUrlNoWhere the owner previews this revision and publishes it, in Entry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior2/5

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

The description discloses a great deal beyond the annotations: atomicity on failure ("nothing is created, every problem is listed with its file, and the upload stays open"), immutability of the revision, private visibility until the owner publishes, and the pages:write scope requirement. However, it contradicts idempotentHint=false by stating "Submitting the same upload again returns the first result," which is idempotent behavior and materially affects whether an agent retries after a timeout.

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?

Front-loaded with the one-line purpose, then ordered by validation rules, success behavior, failure behavior, return values, idempotency, and authorization boundary. Every clause carries information, but the very long multi-clause sentences cost some readability.

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 mutation with an output schema, an agent gets validation preconditions, atomic failure semantics, immutability of the created revision, required scope, idempotency behavior, and a clear statement of what this tool does not do (publishing). Nothing needed to call it correctly is missing.

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 both entryId and uploadId are already documented with their formats and originating tools. The description adds the concept of the upload staying open on failure, which gives uploadId lifecycle meaning, but it contributes no format or constraint detail beyond the schema. 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?

"Closes an upload" names a specific verb and resource, and the elaboration (joins chunks, verifies sha256, validates the bundle, writes the revision, requests review) makes the terminal step of the upload flow unmistakable. An agent can distinguish this from start_page_revision 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description establishes the required precondition implicitly (an open upload with chunks and files, produced by start_page_revision) and explicitly bounds scope: "Publishing, unpublishing and changes to the live profile are made only by the owner, in Entry." It does not name a sibling tool to use instead when the upload is incomplete, but the when-to-use context is clear.

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.