Skip to main content
Glama

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
NameRequiredDescriptionDefault
tool_nameYesThe name of the tool to get documentation for.

Implementation Reference

  • 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."}
  • 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
        }
    ),
  • 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"))
  • 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

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