Skip to main content
Glama

delete_wiki_page

Remove outdated or incorrect wiki pages from Azure DevOps projects by specifying the project, wiki identifier, and page path.

Instructions

Deletes a wiki page by its path.

Input Schema

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

Implementation Reference

  • The core handler function that implements the deletion of a wiki page by calling the Azure DevOps wiki_client.delete_page API.
    def delete_wiki_page(self, project, wiki_identifier, path): return self.wiki_client.delete_page( project=project, wiki_identifier=wiki_identifier, path=path )
  • Registers the 'delete_wiki_page' tool with the MCP server, defining its name, description, and input schema for validation.
    types.Tool( name="delete_wiki_page", description="Deletes 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 to delete." }, }, "required": ["project", "wiki_identifier", "path"], "additionalProperties": False } ),
  • The MCP server dispatcher for the tool call, which invokes the client method and returns a formatted success response.
    elif name == "delete_wiki_page": self.client.delete_wiki_page(**arguments) return { "message": f"Wiki page '{arguments['path']}' deleted successfully.", "path": arguments['path'] }
  • Helper usage of delete_wiki_page within the move_wiki_page function to delete the original page after moving.
    self.delete_wiki_page( project=project, wiki_identifier=wiki_identifier, path=from_path )

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