Skip to main content
Glama

set_project_context

Sets the project context for Azure DevOps commands to eliminate repetitive project parameter entry in subsequent operations.

Instructions

Sets the project context for subsequent commands to avoid repeating project parameter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesThe name or ID of the project to set as context.

Implementation Reference

  • The main handler function in AzureDevOpsClient that sets the project_context attribute and returns a confirmation message.
    def set_project_context(self, project): self.project_context = project return {"message": f"Project context set to '{project}'."}
  • The JSON schema defining the input parameters for the set_project_context tool, requiring a 'project' string.
    inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project to set as context." }, }, "required": ["project"], "additionalProperties": False }
  • The tool registration in the server's tools list, including name, description, and schema.
    types.Tool( name="set_project_context", description="Sets the project context for subsequent commands to avoid repeating project parameter.", inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project to set as context." }, }, "required": ["project"], "additionalProperties": False } ),
  • The server-side dispatch handler that routes the tool call to the client's set_project_context method.
    elif name == "set_project_context": return self.client.set_project_context(**arguments)

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