Skip to main content
Glama

set_visibility

Destructive

Publish or unpublish a whole book by setting its visibility to PRIVATE, LINK_ONLY, or PUBLIC. Every chapter follows the book, and per-chapter visibility is overwritten.

Instructions

Publish or unpublish a whole book by setting its visibility (PRIVATE, LINK_ONLY, PUBLIC). Every chapter follows the book and any per-chapter visibility is overwritten: PUBLIC or LINK_ONLY gives every chapter — drafts included — that visibility and stamps it published now; PRIVATE hides every chapter. Volumes are clamped down on a downgrade (PRIVATE hides them all, LINK_ONLY turns PUBLIC volumes LINK_ONLY) but never raised. A non-PRIVATE visibility also sets the book's first-published date (kept from then on) and switches on the author's public page if it was off. Only the book owner can do this, and the API key needs the 'publish' scope, which keys are not given by default.

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": {
      "bookId": "<bookId>",
      "visibility": "<visibility>"
    },
    "name": "set_visibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdYesBook ID
visibilityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds the annotations (destructiveHint, openWorldHint): it discloses that per-chapter visibility is overwritten, that drafts get stamped published, that volumes are clamped on downgrade but never raised, that first-published date is set and retained, and that the author's public page is switched on. It also names the permission gate — owner-only plus a 'publish' scope that keys do not have by default — which is exactly the kind of failure-mode context an agent needs before calling a destructive tool.

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 core action, then layered side effects in descending importance. It is one dense paragraph with some long clause-chained sentences, but every clause conveys a distinct behavioral fact rather than filler.

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 destructive, non-idempotent mutation with no output schema, the description covers the blast radius, the cascade rules, permission and scope requirements, and the secondary side effects on dates and the author page. Nothing material an agent needs before invoking it is absent.

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 only 50% and the enum values carry no descriptions, but the description compensates by explaining the effect of each of PRIVATE, LINK_ONLY and PUBLIC in detail. bookId is left to the schema's 'Book ID' label, which is adequate but adds nothing.

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?

States a specific verb and resource ('Publish or unpublish a whole book by setting its visibility') and immediately enumerates the three states. The word 'whole book' cleanly separates it from set_article_visibility without naming it, so an agent can pick correctly from the schema alone.

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?

It gives concrete conditions for each mode: PRIVATE to hide everything, PUBLIC/LINK_ONLY to publish everything including drafts. What is missing is an explicit exclusion or pointer to the sibling for per-chapter changes, so the agent must infer that this tool is the wrong choice when only one article should change.

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