Skip to main content
Glama

Set Page Cover

set_page_cover

Set or clear a page cover from a preset or page image attachment; updates metadata only, keeping the page body intact. Requires Docmost 0.98+.

Instructions

Set a page cover from a built-in preset or an image attachment of that page; remove=true clears it. Exactly one choice is required. Changes only metadata, keeping the body intact. Needs Docmost 0.98+.

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": "<page>"
    },
    "name": "set_page_cover"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageYesPage id, slug id or Docmost page URL.
presetNoBuilt-in color, gradient or texture.
removeNoRemove the cover.
positionNoVertical position, 0 to 100 percent.
attachment_idNoImage attachment id belonging to this page.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare it is a non-read-only, non-destructive, closed-world mutation; the description goes further by stating the write is confined to metadata and leaves the page body intact, which is the key reassurance for a mutation tool. It does not mention required permissions or what happens when the version check fails.

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?

Four short clauses, front-loaded with the primary action, then the mode constraint, then the blast radius, then the version gate. Nothing is redundant with the name or title.

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?

With 100% schema coverage and an output schema, the description need not restate parameters or return shapes; it fills the remaining gaps (mode exclusivity, metadata-only scope, version requirement) for a 5-parameter mutation tool. Only auth prerequisites are unstated, a minor omission at this level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The "exactly one choice is required" constraint is not encoded anywhere in the schema (there is no oneOf/allOf on preset/attachment_id/remove), so the description supplies real semantic value the schema lacks. It also clarifies that attachment_id must belong to the target page, adding intent beyond the field text.

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?

Names a specific verb and resource (set a page cover) and enumerates the three mutually exclusive modes: built-in preset, image attachment, or removal. No sibling tool in the catalog touches page covers, so an agent can route here without ambiguity.

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?

"Exactly one choice is required" gives an actionable selection rule between preset/attachment_id/remove, and "Needs Docmost 0.98+" states a hard precondition. It stops short of naming when an agent should prefer this over a general update_page-style mutation or what to do if the server version is older.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.