Skip to main content
Glama
ennuiii

Azure DevOps MCP Server with PAT Authentication

by ennuiii

wit_list_backlogs

Retrieve backlogs for specific projects and teams in Azure DevOps using PAT authentication. Streamline project tracking and task management for enhanced productivity.

Instructions

Revieve a list of backlogs for a given project and team.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesThe name or ID of the Azure DevOps project.
teamYesThe name or ID of the Azure DevOps team.

Implementation Reference

  • The handler function that executes the tool logic: retrieves backlogs for the given project and team using Azure DevOps WorkApi.getBacklogs() and returns JSON stringified response.
    async ({ project, team }) => {
      const connection = await connectionProvider();
      const workApi = await connection.getWorkApi();
      const teamContext = { project, team };
      const backlogs = await workApi.getBacklogs(teamContext);
    
      return {
        content: [{ type: "text", text: JSON.stringify(backlogs, null, 2) }],
      };
    }
  • Zod input schema defining parameters: project (string) and team (string).
    {
      project: z.string().describe("The name or ID of the Azure DevOps project."),
      team: z.string().describe("The name or ID of the Azure DevOps team."),
    },
  • Direct registration of the tool using McpServer.tool() call, including name, description, schema, and handler.
    server.tool(
      WORKITEM_TOOLS.list_backlogs,
      "Revieve a list of backlogs for a given project and team.",
      {
        project: z.string().describe("The name or ID of the Azure DevOps project."),
        team: z.string().describe("The name or ID of the Azure DevOps team."),
      },
      async ({ project, team }) => {
        const connection = await connectionProvider();
        const workApi = await connection.getWorkApi();
        const teamContext = { project, team };
        const backlogs = await workApi.getBacklogs(teamContext);
    
        return {
          content: [{ type: "text", text: JSON.stringify(backlogs, null, 2) }],
        };
      }
    );
  • Constant object mapping internal names to tool names, defining 'list_backlogs' to 'wit_list_backlogs'.
    const WORKITEM_TOOLS = {
      my_work_items: "wit_my_work_items",
      list_backlogs: "wit_list_backlogs",
      list_backlog_work_items: "wit_list_backlog_work_items",
      get_work_item: "wit_get_work_item",
      get_work_items_batch_by_ids: "wit_get_work_items_batch_by_ids",
      update_work_item: "wit_update_work_item",
      create_work_item: "wit_create_work_item",
      list_work_item_comments: "wit_list_work_item_comments",
      get_work_items_for_iteration: "wit_get_work_items_for_iteration",
      add_work_item_comment: "wit_add_work_item_comment",
      add_child_work_items: "wit_add_child_work_items",
      link_work_item_to_pull_request: "wit_link_work_item_to_pull_request",
      get_work_item_type: "wit_get_work_item_type",
      get_query: "wit_get_query",
      get_query_results_by_id: "wit_get_query_results_by_id",
      update_work_items_batch: "wit_update_work_items_batch",
      work_items_link: "wit_work_items_link",
      work_item_unlink: "wit_work_item_unlink",
      add_artifact_link: "wit_add_artifact_link",
    };
  • src/tools.ts:24-24 (registration)
    High-level registration call to configureWorkItemTools within configureAllTools, which sets up all work item tools including wit_list_backlogs.
    configureWorkItemTools(server, tokenProvider, connectionProvider, userAgentProvider);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the basic action without mentioning permissions required, rate limits, pagination, error handling, or what the output format might be (e.g., list structure, fields included). For a tool that likely interacts with Azure DevOps, this leaves significant gaps in understanding its behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, straightforward sentence that efficiently conveys the core purpose. However, the typo ('Revieve' instead of 'Retrieve') slightly detracts from professionalism, and it could be more front-loaded with key details, but overall it's appropriately sized without unnecessary fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of Azure DevOps tools, lack of annotations, and no output schema, the description is incomplete. It doesn't explain what 'backlogs' entails (e.g., product vs. sprint backlogs), potential dependencies, or return values. With siblings offering related functionality, more context is needed to ensure the agent can use this tool effectively without confusion.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, clearly documenting both parameters ('project' and 'team') as names or IDs in Azure DevOps. The description adds no additional meaning beyond this, such as format examples or constraints. With high schema coverage, the baseline score of 3 is appropriate, as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the action ('Revieve' likely means 'Retrieve') and resource ('list of backlogs'), but it's vague about what 'backlogs' specifically refers to in Azure DevOps context. It doesn't distinguish from sibling tools like 'wit_list_backlog_work_items' or 'work_list_team_iterations', which might retrieve related but different data. The typo in 'Revieve' slightly undermines clarity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. With siblings like 'wit_list_backlog_work_items' (which lists work items in backlogs) and 'work_list_team_iterations' (which lists iterations for teams), the description lacks any context on how this tool differs or when it's appropriate, leaving the agent to guess based on the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related 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/ennuiii/DevOpsMcpPAT'

If you have feedback or need assistance with the MCP directory API, please join our Discord server