Skip to main content
Glama

Publish or unpublish

set_published
Destructive

Publishes or unpublishes one product or article, so it shows on the live site or not. Returns a change_id that undo_change takes.

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>",
      "type": "<type>",
      "id": "<id>",
      "published": "<published>"
    },
    "name": "set_published"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record id from list_content.
typeYes
site_idYesThe site id from list_sites.
publishedYestrue to publish, false to unpublish.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already mark this as a destructive, non-read-only, non-idempotent mutation, so the safety profile is covered. The description adds genuinely non-structured information: it discloses the return value (a change_id) and links it to undo_change, which is the key operational fact an agent needs after calling it. It stops short of saying whether existing published state is altered elsewhere or what permissions are required.

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?

A single sentence plus one short follow-up, front-loaded with the action and scope, with the return-value contract placed second. Nothing is redundant or padded.

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?

For a four-required-parameter mutation with no output schema, the definition covers the action, the scope, and the return value/undo relationship, which is what an agent most needs. It is only slightly thin on failure modes and permission expectations.

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

Parameters3/5

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

Schema coverage is 75%, and the schema already documents id, site_id, and published and enumerates type, so the baseline is 3. The description only reinforces the 'one product or article' framing and adds no format, constraint, or edge-case detail beyond 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?

The description states a specific verb pair (publishes/unpublishes) and resource ('one product or article') plus scope ('one'), so an agent knows exactly what state change is performed. It does not explicitly name a sibling it differs from, but the 'one item' scope is concrete enough to separate it from list/update tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'so it shows on the live site or not', which gives the agent the outcome intent, but there is no explicit when-to-use/when-not-to-use guidance or prerequisites (e.g., required permissions, what to do if already in the desired state). The reference to undo_change is a pointer toward a reversal path rather than a selection rule.

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.