Skip to main content
Glama

Publish document

publish_document
DestructiveIdempotent

Publishes a document: makes its .md URL public, adds it to the site llms.txt and pushes it to the customer server when auto-deploy is configured. On this account the call is refused until user_approved is true.

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": {
      "slug": "<slug>"
    },
    "name": "publish_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage code, e.g. en, pl. Defaults to the site language.
siteNoSite domain, e.g. example.com. Optional when the account has one site.
slugYesDocument slug
user_approvedNoTrue only after the user has seen this exact change in the chat and agreed to it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_approved
      Added value: +{
      +  "description": "True only after the user has seen this exact change in the chat and agreed to it.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / site / description
      Previous value: -"Site domain, e.g. example.com (see list_sites). Optional when the account has one site."New value: +"Site domain, e.g. example.com. Optional when the account has one site."
    • changedInput schema / properties / slug / description
      Previous value: -"Document slug (see list_documents)"New value: +"Document slug"
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=true, so the safety profile is covered. The description adds valuable context beyond that: the exact side effects (public URL, llms.txt entry, server push) and the fact that calls are refused without approval. It does not address reversibility, so it stops short of a 5.

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?

Two sentences, front-loaded with the action and its effects, followed by the approval gate. No redundant restatement of the name or title, and every clause carries information.

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 destructive, open-world mutation with full schema coverage and no output schema, the description covers effects and the approval requirement well. It leaves out whether unpublishing restores the previous state and what happens on partial failure of the server push, which are relevant for a destructive operation.

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 the baseline is 3, but the description adds enforcement meaning the schema lacks: user_approved is not merely a flag, the call is refused until it is true. It adds nothing further about lang or site, which the schema already documents.

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?

The description states a specific verb and resource ('Publishes a document') and enumerates the concrete effects: makes the .md URL public, adds it to llms.txt, and pushes to the customer server when auto-deploy is configured. That effect list clearly separates it from unpublish_document and from update_document without needing to name them.

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?

It gives one explicit precondition — the call is refused until user_approved is true — which is real usage guidance. It does not say when to choose this over update_document or unpublish_document, nor what conditions make publishing appropriate, so guidance is implied rather than complete.

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.