Skip to main content
Glama

Update Page Theme

page_theme_update
Idempotent

Apply a partial theme patch. Theme fields are enum-constrained (button variant/radius/shadow, font family/weight, density, icon_size). Use presets_list first if the user wants a complete restyle. For already-published pages, this saves an unpublished latest revision only. Do not call page_publish in the same assistant turn after this edit. Stop and tell the user the draft/preview was updated, then wait for a separate user message that explicitly asks to update the live link, publish, or make the changes public before calling page_publish. Do NOT call page_unpublish either — the live page should stay public; only unpublish when the user explicitly asks to take it down.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeYesPartial theme patch. Provide only fields you want to change.
pageIdYes
editTokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
slugYes
titleYes
pageIdYes
statusYes
actionsYes
contentNo
claimUrlYes
editTokenYes
expiresAtYes
isClaimedYes
nextStepsNoEnrichment hints to present to the user. Address 'required' items before publishing.
canPublishYes
previewUrlYes
isPublishedYes
publishedUrlYes
missingFieldsNo
publishPolicyNoFor edit tools on already-published pages, this is wait_for_separate_user_request to prevent same-turn publishing.
liveUpdateMessageNoPlain-language instruction explaining that an edit to an already-published page is draft-only and must not be published until a later explicit user request.
liveUpdateRequiredNoTrue after an edit to an already-published page when the public live page still needs page_publish to reflect the latest revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description reveals a non-obvious behavior: for already-published pages, the update saves only an unpublished latest revision. It also documents the required sequencing around publishing and the need to wait for explicit user confirmation. This is exactly the kind of context an agent needs.

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 description is dense but every sentence earns its place: purpose, constraints, tool alternative, publishing workflow, and safety rule. The most important behavioral caveat about unpublished revisions is stated early, and prohibitions are explicit rather than buried.

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 nested mutation tool, the description covers the key workflow, user-communication rule, publishing constraints, and unpublish safety behavior. The output schema is present, so return-value explanation is not needed. No critical behavioral gap remains for selecting and invoking the tool correctly.

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?

The description conveys that the theme object is a partial patch and lists the enum-constrained categories, which helps, but it does not explain pageId or editToken semantics. Since the schema description coverage is only 33%, the description only partially compensates for the gaps and leaves the agent to infer the roles of those parameters from the schema.

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: 'Apply a partial theme patch.' It also immediately signals the scoped nature of the operation, distinguishing it from a full restyle and from the related page_publish/page_unpublish siblings. The title reinforces the target resource clearly.

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?

The description explicitly names the alternative tool (presets_list) for complete restyles and gives direct guidance about when to call page_publish, when not to, and how to converse with the user. It also forbids calling page_unpublish unless the user explicitly asks to take the page down. This is actionable and unambiguous.

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