Skip to main content
Glama

set_article_visibility

Idempotent

Publish, change sharing, or unpublish an article by setting its visibility to PUBLIC, LINK_ONLY, or PRIVATE. Use when the writer asks to control what the outside world can see.

Instructions

Publish an article, change how it is shared, or take it down: PUBLIC (anyone can find it), LINK_ONLY (anyone with the link), PRIVATE (only the writer — unpublishes). This changes what the outside world can see, so do it when the writer asks, not as a step in a writing task. Making an article non-private also switches on the writer's public profile page if it was off, stamps publishedAt the first time, and derives a slug from the title if the article has none. Pass slug to choose one (3–60 characters: lowercase letters, digits, hyphens; unique among the writer's articles). allowSeoIndexing is separate consent for search engines; omit it to leave it unchanged. Needs the 'publish' API-key scope.

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": {
      "articleId": "<articleId>",
      "visibility": "<visibility>"
    },
    "name": "set_article_visibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoURL slug for the public page
articleIdYesArticle ID
visibilityYes
allowSeoIndexingNoLet search engines index the public page. Omit to leave unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the annotations (which only say non-read-only, open-world, idempotent) by disclosing side effects: turning on the writer's public profile page, stamping publishedAt on first publish, deriving a slug from the title, and that PRIVATE unpublishes. It also states the required 'publish' API-key scope, which is critical operational context absent from any structured field.

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 three modes are front-loaded and the conditional side effects follow logically, with no filler sentences. The prose is dense—a single long paragraph mixing state semantics with slug syntax—and would scan faster as short bullets, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A mutation tool with no output schema and open-world behavior is well covered: side effects, auth scope, idempotency implications, and parameter constraints are all present. What is missing is any statement of what the call returns on success or failure, and any pointer to the sibling tool to use for non-visibility edits.

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?

With 75% schema coverage the baseline is already decent, and the description still adds meaning: it explains what each visibility value means for external viewers, adds slug constraints beyond maxLength (3–60, lowercase letters/digits/hyphens, unique per writer), and clarifies omit-to-leave-unchanged for allowSeoIndexing. Only articleId is left to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb set (publish / change sharing / take down) against a clearly identified resource, and defines all three enum values in user-facing terms, including that PRIVATE unpublishes. It does not distinguish itself from the similarly named sibling set_visibility or from update_article, so an agent must infer the boundary rather than read it.

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?

"Do it when the writer asks, not as a step in a writing task" is an explicit when/when-not rule that an agent can act on, and the allowSeoIndexing note tells the caller to omit rather than set it. It stops short of naming an alternative tool for sharing-related changes, so routing against set_visibility or update_article is left implicit.

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