Skip to main content
Glama

get_wiki_page

Retrieve Azure DevOps wiki pages by specifying project, wiki identifier, and page path to access documentation and knowledge base content.

Instructions

Gets a wiki page by its path.

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.

Implementation Reference

  • The core handler function that executes the tool logic by calling the Azure DevOps WikiClient to retrieve the specified wiki page including its content.
    def get_wiki_page(self, project, wiki_identifier, path):
        return self.wiki_client.get_page(
            project=project,
            wiki_identifier=wiki_identifier,
            path=path,
            include_content=True
        )
  • Tool registration in the MCP server, defining the name, description, and input schema for validation.
    types.Tool(
        name="get_wiki_page",
        description="Gets a wiki page by its path.",
        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."
                },
            },
            "required": ["project", "wiki_identifier", "path"],
            "additionalProperties": False
        }
    ),
  • Input schema definition for the get_wiki_page tool parameters.
        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."
                },
            },
            "required": ["project", "wiki_identifier", "path"],
            "additionalProperties": False
        }
    ),
  • MCP server dispatch handler that invokes the client method and formats the response for the tool call.
    elif name == "get_wiki_page":
        page = self.client.get_wiki_page(**arguments)
        return {
            "path": page.page.path,
            "url": page.page.url,
            "content": page.page.content,
        }

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