get_tool_documentation
Retrieve detailed documentation for Azure DevOps tools including parameters and usage examples to understand functionality and implementation.
Instructions
Gets detailed documentation for a specific tool including parameters and examples.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_name | Yes | The name of the tool to get documentation for. |
Implementation Reference
- mcp_azure_devops/server.py:1091-1102 (handler)Handler function that implements the logic for get_tool_documentation by retrieving the tool's metadata from the self.tools list.def _get_tool_documentation(self, tool_name: str) -> Dict[str, Any]: """Get documentation for a specific tool.""" tool = next((t for t in self.tools if t.name == tool_name), None) if tool: return { "name": tool.name, "description": tool.description, "inputSchema": tool.inputSchema, } else: return {"error": f"Tool '{tool_name}' not found."}
- mcp_azure_devops/server.py:563-577 (schema)Schema definition and registration of the get_tool_documentation tool, including input schema.types.Tool( name="get_tool_documentation", description="Gets detailed documentation for a specific tool including parameters and examples.", inputSchema={ "type": "object", "properties": { "tool_name": { "type": "string", "description": "The name of the tool to get documentation for." }, }, "required": ["tool_name"], "additionalProperties": False } ),
- mcp_azure_devops/server.py:899-900 (registration)Dispatch/registration in the _execute_tool method that routes calls to the get_tool_documentation handler.elif name == "get_tool_documentation": return self._get_tool_documentation(arguments.get("tool_name"))
- mcp_azure_devops/server.py:857-862 (registration)The list_tools handler that registers and exposes all tools, including get_tool_documentation, via MCP protocol.@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