Skip to main content
Glama

create_wiki_page

Create new wiki pages in Azure DevOps projects to document processes, share knowledge, and maintain team documentation.

Instructions

Creates a new wiki page with specified content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesThe name or ID of the project.
wiki_identifierYesThe name or ID of the wiki.
pathYesThe path of the wiki page.
contentYesThe content of the wiki page.

Implementation Reference

  • MCP server tool dispatch handler for 'create_wiki_page' that invokes the client method and formats the response.
    elif name == "create_wiki_page":
        page = self.client.create_wiki_page(**arguments)
        return {
            "path": page.page.path,
            "url": page.page.url,
            "content": page.page.content,
        }
  • Tool schema definition including input validation for parameters: project, wiki_identifier, path, content.
    types.Tool(
        name="create_wiki_page",
        description="Creates a new wiki page with specified content.",
        inputSchema={
            "type": "object",
            "properties": {
                "project": {
                    "type": "string", 
                    "description": "The name or ID of the project."
                },
                "wiki_identifier": {
                    "type": "string", 
                    "description": "The name or ID of the wiki."
                },
                "path": {
                    "type": "string", 
                    "description": "The path of the wiki page."
                },
                "content": {
                    "type": "string", 
                    "description": "The content of the wiki page."
                },
            },
            "required": ["project", "wiki_identifier", "path", "content"],
            "additionalProperties": False
        }
    ),
  • Core handler function in AzureDevOpsClient that creates a wiki page by calling the Azure DevOps wiki_client.create_or_update_page API.
    def create_wiki_page(self, project, wiki_identifier, path, content):
        parameters = {
            "content": content
        }
        return self.wiki_client.create_or_update_page(
            project=project,
            wiki_identifier=wiki_identifier,
            path=path,
            parameters=parameters,
            version=None
        )
  • MCP server registration handler that lists all tools including 'create_wiki_page' by returning the self.tools list populated earlier.
    @self.server.list_tools()
    async def list_tools() -> List[types.Tool]:
        """Return the list of available tools."""
        logger.info(f"Tools requested - returning {len(self.tools)} tools")
        self.tools_registered = True
        return self.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/xrmghost/mcp-azure-devops'

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