Skip to main content
Glama

Set Post Visibility

set_post_visibility
DestructiveIdempotent

Hides or shows one post of a widget, or pins it so the widget shows it first. visibility: hidden (the widget leaves the post out), shown (the widget shows it, also when the widget's words or post type rule would hide it, and approves it when new posts wait for approval), or default (no choice: the widget's rules decide). pinned true: the post shows first (at most 12 pinned posts). Get the post id from list_widget_posts first. Paid plans, Pro widgets.

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": {
      "widget_id": "<widget_id>",
      "post_id": "<post_id>",
      "visibility": "<visibility>"
    },
    "name": "set_post_visibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinnedNoTrue: the post shows first on the widget. Not sent: false.
post_idYesThe post's id (the id in list_widget_posts).
widget_idYesThe widget's id (the id in list_widgets).
visibilityYesshown, hidden, or default (the widget's rules decide).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive, idempotent, open-world, and non-read-only behavior, while the description adds important consequences: hidden leaves the post out, shown overrides rule-based hiding and approves pending posts, default defers to widget rules, and pinned posts are capped at 12. It does not contradict the annotations.

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-loads the core action and packs relevant details into a compact paragraph. The semicolon-and-parenthetical structure is dense, but there is no filler and the plan note earns its place.

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 mutation tool with no output schema, the description covers behavior, prerequisites, plan restrictions, and key side effects. Return values need not be explained because no output schema exists.

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 baseline is 3, but the description adds enum meaning beyond the schema: shown can override widget rules and approve pending posts, hidden omits the post, and default lets rules decide. It also adds the pinned cap of 12 and the source of post_id.

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: 'Hides or shows one post of a widget, or pins it so the widget shows it first.' It also distinguishes the post-level operation by naming list_widget_posts as the source of the post id.

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?

Gives clear prerequisites ('Get the post id from list_widget_posts first') and plan constraints ('Paid plans, Pro widgets'). It does not state explicit exclusions or alternatives, but for this narrow post-visibility operation there are limited sibling alternatives.

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.