Skip to main content
Glama

Give a site a wiki

set_wiki
DestructiveIdempotent

Give the site a wiki, or change its tree: the whole site, or with at a path of a site of pages, as "docs" for a help section at /docs beside its pages. A wiki's pages live in its categories, each with a version and a history of every save, and are written with save_wiki_page, not write_site. The tree is sent whole: each node's slug is its path segment, and its metadataKeys are the facts a page under it carries, a select key becoming a filter on the category's page. A wiki keeps its place when at is left out.

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": {
      "tree": "<tree>"
    },
    "name": "set_wiki"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoThe path the wiki sits under on a site of pages, as "docs" for /docs; unset, the wiki is the whole site
treeYesThe top-level categories, each with its children
tokenNoThe site token from create_site or the site's settings. Omit if your Authorization header carries it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / at
      Added value: +{
      +  "description": "The path the wiki sits under on a site of pages, as \"docs\" for /docs; unset, the wiki is the whole site",
      +  "pattern": "^[a-z0-9-]+$",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / $defs / __schema0 / properties / metadataKeys / items / properties / type / description
      Added value: +"text, date, url or select; any other type reads as text"
    • removedInput schema / $defs / __schema0 / properties / metadataKeys / items / properties / type / enum
      Removed value: -[
      -  "text",
      -  "date",
      -  "url",
      -  "select"
      -]
    • addedInput schema / $defs / __schema0 / properties / metadataKeys / items / properties / type / pattern
      Added value: +"^[a-z_]+$"
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds meaningful context beyond them: the tree is submitted whole (replacement semantics), pages live in categories each with version and full save history, and metadataKeys/select keys become facets and filters. It does not state what happens to existing pages when the tree changes (deleted, moved, orphaned), which is the main residual behavioral gap for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and every sentence carries information, but the prose is dense and grammatically awkward ('a path of a site of pages', 'beside its pages'), forcing re-reading. It could be restructured into short clauses without losing any of the substance.

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

Completeness3/5

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

For a three-parameter destructive mutation with no output schema and full schema description coverage, the definition covers purpose, structure semantics, and the sibling routing well. What is missing is the consequence of changing an existing tree — whether current pages survive — plus any permission/token requirement context, which leaves an agent underprepared for the destructive path.

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 conceptual meaning the schema does not spell out: `at` is the path segment on a site of pages with 'docs' as the /docs example, each node's slug is its path segment, and a select metadata key becomes a filter on the category's page. That helps an agent build a correct tree payload rather than just satisfy 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?

The opening clause states a specific verb and resource ('Give the site a wiki, or change its tree'), and the definition explicitly separates this from the two nearest siblings: page content goes through save_wiki_page, not write_site. An agent can tell this is a structural/configuration operation rather than a content write without opening any schema.

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?

It names the alternative tools and the condition that selects them ('are written with save_wiki_page, not write_site'), which is real routing guidance. It also explains the `at`-omitted case (

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.

Resources