Skip to main content
Glama
AskBase

AskBase

Official

publish_documents

Publish reviewed, fully processed documents to make them searchable and available to the live assistant; set documents back to draft or unpublished when needed.

Instructions

Publish documents (or set them back to draft / unpublished). New documents start as drafts: only published documents are searchable and used by the live assistant, so publish after the user has reviewed them. Documents must have finished processing.

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": {
      "document_ids": "<document_ids>"
    },
    "name": "publish_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNopublished (default), draft or unpublishedpublished
document_idsYesDocument IDs

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the downstream effect of the state change (only published documents are searchable and used by the live assistant), the processing prerequisite, and implicitly the reversibility of the operation. It omits permissions/authorization requirements and what happens on partial failure across a batch of document_ids.

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?

Three short sentences: capability first, then the lifecycle rationale, then the hard prerequisite. Nothing is repeated verbatim from the schema and no sentence is wasted.

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?

An output schema exists and both parameters are fully documented, so the description only needs to cover intent and behavior, which it largely does. The remaining gap is operational detail — permission requirements and batch/partial-failure semantics — for a mutation tool with no annotations.

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 100% and the status parameter already enumerates published/draft/unpublished, so the schema does the heavy lifting. The description adds lifecycle meaning to the status values (draft = not searchable, not live) but gives no detail on document_ids handling, batching, or id format beyond the schema.

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 the specific verb and resource (publish documents) and immediately extends scope with the reverse operation (set back to draft/unpublished). An agent can tell this is a status-transition tool rather than a general document updater, and the lifecycle sentence ('New documents start as drafts') anchors what publishing means.

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 a clear when-to-use rule ('publish after the user has reviewed them') and a gating precondition ('Documents must have finished processing'). It does not name an alternative tool or spell out when-not-to-use, so it falls just short of a 5.

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