Skip to main content
Glama

wiki_write

Create or update a wiki page with structured YAML frontmatter and Markdown content. Automatically interlinks mentions of existing pages and routes pages to matching topic subdirectories.

Instructions

Create or update a wiki page. Content should include YAML frontmatter (title, type, tags, sources) and Markdown body. Timestamps (created/updated) are auto-managed. Auto-routes root-level pages to matching topic subdirectories (via frontmatter topic field or tag matching). Auto-links: scans body for mentions of existing page titles and injects [[slug|text]] links automatically (skips code blocks, existing links, URLs). Wiki pages are MUTABLE — they represent compiled knowledge that improves over time. Set return_content: true to include the final written content in the response — eliminates the follow-up wiki_read call in write-then-reference workflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYesPage path relative to wiki/
contentYesFull page content including YAML frontmatter and Markdown body
sourceNoProvenance — why this write is happening
return_contentNoIf true, include the final written content in the response. Eliminates a follow-up wiki_read call. Default: false.
Behavior5/5

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

With no annotations provided, the description fully carries the burden. It discloses auto-management of timestamps, auto-routing of pages based on frontmatter, auto-linking with exceptions (code blocks, existing links, URLs), and states that wiki pages are MUTABLE. No contradictions.

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?

The description is a single well-organized paragraph, front-loaded with the main action, then details. Every sentence is meaningful, no redundancy.

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?

The description covers auto-routing and auto-linking behaviors thoroughly. It lacks explicit details on overwrite vs merge behavior when updating an existing page, but overall adequate for a write tool with no output schema.

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 description coverage is 100%, so baseline is 3. The description adds value for the return_content parameter by explaining its purpose (eliminates follow-up call) and default. No additional detail needed for other parameters.

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 clearly states 'Create or update a wiki page' with specific resource (wiki page). It differentiates from sibling tools like wiki_read, wiki_delete, etc., and provides scope (page path relative to wiki/).

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?

The description gives guidance on when to use return_content to avoid a follow-up wiki_read call, implying efficient workflows. It doesn't explicitly state when not to use this tool, but context from sibling tools is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xinhuagu/agent-wiki'

If you have feedback or need assistance with the MCP directory API, please join our Discord server