Skip to main content
Glama

create_wiki_page

Create a new wiki page in a Gitea repository using Markdown content. Check whether the title already exists, because this command errors on duplicates; use the update function for existing pages.

Instructions

Create a wiki page. title is required ('Home' is the wiki landing page; '_Sidebar' / '_Footer' are the layout pages). content is plain Markdown — base64 encoding is handled for you. message is an optional commit message. RISK: fails if a page with that title already exists — call list_wiki_pages or get_wiki_page first and use update_wiki_page for existing pages. Returns the created page with decoded content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNoRepository name (defaults to GITEA_DEFAULT_REPO)
ownerNoRepository owner (defaults to GITEA_DEFAULT_OWNER)
titleYesWiki page title (e.g. 'Getting-Started'; use 'Home' for the landing page, '_Sidebar' / '_Footer' for layout pages)
contentYesPage content in Markdown (plain text — base64 encoding is handled for you)
messageNoOptional commit message summarizing the change
Behavior5/5

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

Despite no annotations, the description thoroughly discloses behavior: required title with special names, base64 encoding handled automatically, optional commit message, failure on duplicate, and return of created page with decoded content.

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?

Four sentences, front-loaded with main action, no unnecessary words. Each sentence adds value.

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

Completeness5/5

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

Covers all necessary aspects: parameters, behavior, failure risk, and return value. No output schema needed given the description of return content.

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%, but the description adds meaningful context: clarifies title values, that content is plain Markdown and base64 is handled, and that message is optional commit message.

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 the tool creates a wiki page, specifies special titles ('Home', '_Sidebar', '_Footer'), and distinguishes it from sibling tools like list_wiki_pages and update_wiki_page.

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

Usage Guidelines5/5

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

Explicitly provides when to use (create new page) and when not to use (if page exists, use list_wiki_pages or get_wiki_page first then update_wiki_page), and explains content format handling.

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/amonstack/gitea_mcp'

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