Skip to main content
Glama

create_wiki_pages_batch

Create multiple wiki pages simultaneously in Azure DevOps to streamline bulk documentation tasks and maintain project wikis efficiently.

Instructions

Create multiple wiki pages at once for bulk operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pages_dataYesArray of page objects to create.
projectYesThe name or ID of the project.
wiki_identifierYesThe name or ID of the wiki.

Implementation Reference

  • Core handler function that implements the batch creation of wiki pages by iterating over the pages_data list, calling create_wiki_page for each, and collecting success/error results.
    def create_wiki_pages_batch(self, project, wiki_identifier, pages_data): """ Create multiple wiki pages at once. pages_data: list of {"path": str, "content": str} """ results = [] for page_data in pages_data: try: result = self.create_wiki_page( project=project, wiki_identifier=wiki_identifier, path=page_data["path"], content=page_data["content"] ) results.append({ "path": page_data["path"], "status": "success", "result": result }) except Exception as e: results.append({ "path": page_data["path"], "status": "error", "error": str(e) }) return results
  • Tool registration in the MCP server's tools list, including name, description, and complete input schema definition.
    types.Tool( name="create_wiki_pages_batch", description="Create multiple wiki pages at once for bulk operations.", 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." }, "pages_data": { "type": "array", "description": "Array of page objects to create.", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "The path of the wiki page to create." }, "content": { "type": "string", "description": "The content of the wiki page." } }, "required": ["path", "content"] } }, }, "required": ["project", "wiki_identifier", "pages_data"], "additionalProperties": False } ),
  • Dispatch handler in the MCP server's _execute_tool method that calls the client implementation with unpacked arguments.
    elif name == "create_wiki_pages_batch": return self.client.create_wiki_pages_batch(**arguments)
  • Input schema definition for the create_wiki_pages_batch tool, specifying parameters project, wiki_identifier, and pages_data array with structure.
    "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." }, "pages_data": { "type": "array", "description": "Array of page objects to create.", "items": { "type": "object", "properties": { "path": { "type": "string", "description": "The path of the wiki page to create." }, "content": { "type": "string", "description": "The content of the wiki page." } }, "required": ["path", "content"] } }, }, "required": ["project", "wiki_identifier", "pages_data"], "additionalProperties": False

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