Skip to main content
Glama

Set render options

set_render_options
Idempotent

Configure how a site is delivered, without touching its sandbox. spa_fallback (free on every plan) serves the entry page for unknown in-app routes so client-side navigation and shared deep links resolve, but real missing files (scripts, images, styles) still 404. document_kind and printable say what the site is as a document (see publish_site). viewer_update (free on every plan) says what a viewer that is open when a new version is published does about it: "prompt" (the default) offers a Refresh the reader presses when they choose; "on_navigation" also moves them to the new version on the next page they open inside the site, with nothing lost mid-read, which suits a multi-page site; "immediate" reloads the page at once, which suits a dashboard or a status screen and loses a reader mid-document their place. auto_refresh is the older switch for the same setting: true is "immediate", false is "prompt". external_origins extends the site's content-security policy to allow specific https origins it calls at runtime (fonts, images, APIs, embeds); this is a paid capability (Pro) and each entry must be a bare https://host[:port] with no path. Pass an empty array to clear the list, or use add_external_origins to add origins without replacing the list. include_original false stops a Word, PowerPoint or Excel site offering its file for download, by rendering the page again from the file it holds as a new version; true is refused, since a withheld file was never kept: update_site with the file and include_original true instead. Omit a field to leave it unchanged. Needs edit access to the site (its creator or an editor grant, in a role that can edit); rejected requests (forbidden, plan_limit, validation_failed) leave the stored options unchanged.

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": {
      "site_id": "<site_id>"
    },
    "name": "set_render_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe id of the site to configure
printableNoThe page is built to print (a PDF that keeps the look): the design check asks for print styles, and a plain page gets the viewer's Print action (a report or a deck carries its own Download PDF button instead). Kept on later updates unless given again.
auto_refreshNoOlder switch for `viewer_update`: true is "immediate" (open viewers reload on their own, instead of being offered a Refresh prompt), false is "prompt"
spa_fallbackNoServe the entry page for unknown in-app routes (deep-link routing)
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).
document_kindNoWhat the site is: a report, a presentation, a dashboard, or a plain page (the default). A publish or content update of such a site runs the design check (`design_warnings`); a presentation may go full screen. Kept on later updates unless given again.
viewer_updateNoWhat open viewers do when a new version is published: "prompt" offers a Refresh, "on_navigation" also updates them on the next page they open in the site, "immediate" reloads them at once
external_originsNoFull set of https origins to allow in the site CSP; replaces the existing list
include_originalNofalse: stop offering the Office file this site renders for download (a new version, rendered from the file already held). true is refused; upload the file again with update_site and `include_original` true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / auto_refresh / description
      Previous value: -"Reload open viewers on their own when a new version is published, instead of offering a Refresh prompt"New value: +"Older switch for `viewer_update`: true is \"immediate\" (open viewers reload on their own, instead of being offered a Refresh prompt), false is \"prompt\""
    • addedInput schema / properties / viewer_update
      Added value: +{
      +  "description": "What open viewers do when a new version is published: \"prompt\" offers a Refresh, \"on_navigation\" also updates them on the next page they open in the site, \"immediate\" reloads them at once",
      +  "enum": [
      +    "prompt",
      +    "on_navigation",
      +    "immediate"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / printable / description
      Previous value: -"The page is built to print (a PDF that keeps the look): the viewer then offers Print, and the design check asks for print styles. Kept on later updates unless given again."New value: +"The page is built to print (a PDF that keeps the look): the design check asks for print styles, and a plain page gets the viewer's Print action (a report or a deck carries its own Download PDF button instead). Kept on later updates unless given again."
  3. Changed2 schema fields changed
    • addedInput schema / properties / document_kind
      Added value: +{
      +  "description": "What the site is: a report, a presentation, a dashboard, or a plain page (the default). A publish or content update of such a site runs the design check (`design_warnings`); a presentation may go full screen. Kept on later updates unless given again.",
      +  "enum": [
      +    "page",
      +    "report",
      +    "presentation",
      +    "dashboard"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / printable
      Added value: +{
      +  "description": "The page is built to print (a PDF that keeps the look): the viewer then offers Print, and the design check asks for print styles. Kept on later updates unless given again.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / auto_refresh
      Added value: +{
      +  "description": "Reload open viewers on their own when a new version is published, instead of offering a Refresh prompt",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / include_original
      Added value: +{
      +  "description": "false: stop offering the Office file this site renders for download (a new version, rendered from the file already held). true is refused; upload the file again with update_site and `include_original` true.",
      +  "type": "boolean"
      +}
  6. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-destructive, idempotent write), the description discloses plan gating (external_origins is Pro, spa_fallback and viewer_update are free), the required permission model (creator or editor grant in an edit role), the refund/atomicity behavior on rejection (forbidden, plan_limit, validation_failed leave stored options unchanged), and the hard refusal of include_original=true. These are exactly the traits annotations cannot carry.

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 core purpose is front-loaded and each backticked field is explained in a self-contained clause, but the whole thing is one dense block paragraph of long sentences (the include_original explanation in particular repeats a longer form of what the schema says). It earns most of its length, though bullets per field would scan faster.

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 9-parameter mutation tool, the definition covers permissions, plan limits, default/omission semantics, cross-tool escalation paths, and failure behavior. With no output schema, the only unfilled gap is the response shape, which is minor given how thoroughly the write semantics are described.

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 coverage is 100%, so the baseline is 3; the description still adds real meaning, notably the "bare https://host[:port] with no path" constraint on external_origins, the reader-impact tradeoffs of each viewer_update mode, and the note that document_kind ties into the publish_site design check. It stops short of documenting site_id or workspace_id, which the schema already covers adequately.

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?

"Configure how a site is delivered, without touching its sandbox" gives a specific verb plus resource and an explicit scope boundary (site delivery options, not content). The following sentences enumerate each configurable field by name, so an agent can see exactly which knobs this tool turns versus content-mutating siblings like update_site or publish_site.

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 explicitly routes to alternatives where they exist: use add_external_origins to append instead of replace, use update_site with the file plus include_original true to restore a withheld download. It also states the default-preserving rule ("Omit a field to leave it unchanged") and the empty-array clear pattern, so no when-to-use inference is needed.

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.