Skip to main content
Glama

clear_project_context

Revert from project-specific scope to organization-level context in Azure DevOps, allowing users to switch between different projects or work at the broader organizational level.

Instructions

Clears the project context, reverting to organization-level scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that executes the tool logic by clearing the project's context attribute and returning a success message.
    def clear_project_context(self): self.project_context = None return {"message": "Project context cleared."}
  • Input schema definition for the tool, which requires no parameters (empty properties).
    inputSchema={ "type": "object", "properties": {}, "additionalProperties": False }
  • Tool registration in the self.tools list returned by list_tools() handler, defining name, description, and schema.
    types.Tool( name="clear_project_context", description="Clears the project context, reverting to organization-level scope.", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False } ),
  • Dispatch logic in the _execute_tool method that routes the tool call to the client handler.
    elif name == "clear_project_context": return self.client.clear_project_context()

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