Skip to main content
Glama
ennuiii

Azure DevOps MCP Server with PAT Authentication

by ennuiii

build_get_changes

Retrieve changes linked to a specific build in Azure DevOps, including source changes and paginated results, using project ID and build ID as inputs.

Instructions

Get the changes associated with a specific build.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buildIdYesID of the build to get changes for
continuationTokenNoContinuation token for pagination
includeSourceChangeNoWhether to include source changes in the results, defaults to false
projectYesProject ID or name to get the build changes for
topNoNumber of changes to retrieve, defaults to 100

Implementation Reference

  • The main handler function for the 'build_get_changes' tool. It retrieves changes for a specific build using the Azure DevOps Build API and formats the result as JSON text content.
    async ({ project, buildId, continuationToken, top, includeSourceChange }) => {
      const connection = await connectionProvider();
      const buildApi = await connection.getBuildApi();
      const changes = await buildApi.getBuildChanges(project, buildId, continuationToken, top, includeSourceChange);
    
      return {
        content: [{ type: "text", text: JSON.stringify(changes, null, 2) }],
      };
    }
  • Zod input schema validating the parameters required for the 'build_get_changes' tool: project, buildId, optional pagination and filtering options.
    {
      project: z.string().describe("Project ID or name to get the build changes for"),
      buildId: z.number().describe("ID of the build to get changes for"),
      continuationToken: z.string().optional().describe("Continuation token for pagination"),
      top: z.number().default(100).describe("Number of changes to retrieve, defaults to 100"),
      includeSourceChange: z.boolean().optional().describe("Whether to include source changes in the results, defaults to false"),
    },
  • Registers the 'build_get_changes' tool on the MCP server using server.tool(), including name, description, input schema, and handler.
    server.tool(
      BUILD_TOOLS.get_changes,
      "Get the changes associated with a specific build.",
      {
        project: z.string().describe("Project ID or name to get the build changes for"),
        buildId: z.number().describe("ID of the build to get changes for"),
        continuationToken: z.string().optional().describe("Continuation token for pagination"),
        top: z.number().default(100).describe("Number of changes to retrieve, defaults to 100"),
        includeSourceChange: z.boolean().optional().describe("Whether to include source changes in the results, defaults to false"),
      },
      async ({ project, buildId, continuationToken, top, includeSourceChange }) => {
        const connection = await connectionProvider();
        const buildApi = await connection.getBuildApi();
        const changes = await buildApi.getBuildChanges(project, buildId, continuationToken, top, includeSourceChange);
    
        return {
          content: [{ type: "text", text: JSON.stringify(changes, null, 2) }],
        };
      }
    );
  • Constant object mapping internal function names to the external tool names, defining 'get_changes' as 'build_get_changes' for use in tool registration.
    const BUILD_TOOLS = {
      get_definitions: "build_get_definitions",
      get_definition_revisions: "build_get_definition_revisions",
      get_builds: "build_get_builds",
      get_log: "build_get_log",
      get_log_by_id: "build_get_log_by_id",
      get_changes: "build_get_changes",
      run_build: "build_run_build",
      get_status: "build_get_status",
      update_build_stage: "build_update_build_stage",
    };
  • src/tools.ts:22-22 (registration)
    Top-level call to configureBuildTools within configureAllTools, which registers all build tools including 'build_get_changes'.
    configureBuildTools(server, tokenProvider, connectionProvider, userAgentProvider);
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states it's a read operation ('Get'), but doesn't mention pagination behavior (implied by 'continuationToken' in schema), rate limits, authentication requirements, or what 'changes' specifically refers to (e.g., code changes, status changes). This leaves significant gaps for a tool with 5 parameters.

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

Conciseness5/5

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

The description is a single, clear sentence with zero wasted words. It's appropriately sized for a straightforward retrieval tool and front-loads the essential information without unnecessary elaboration.

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?

For a tool with 5 parameters, no annotations, and no output schema, the description is insufficient. It doesn't explain what 'changes' means in this context, what format results return, or behavioral aspects like pagination. The 100% schema coverage helps, but the description should provide more context about the operation's scope and results.

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?

Schema description coverage is 100%, so the schema fully documents all 5 parameters. The description adds no additional parameter semantics beyond implying 'buildId' is required. This meets the baseline of 3 when schema does the heavy lifting, but doesn't provide extra value like explaining relationships between parameters.

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

Purpose4/5

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

The description clearly states the action ('Get') and resource ('changes associated with a specific build'), making the purpose understandable. It doesn't explicitly differentiate from siblings like 'build_get_builds' or 'testplan_show_test_results_from_build_id', but the specificity of 'changes' provides some implicit distinction.

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?

The description provides no guidance on when to use this tool versus alternatives. With many sibling tools in the build and test domains, there's no mention of prerequisites, appropriate contexts, or comparisons to similar tools like 'build_get_log' or 'testplan_show_test_results_from_build_id'.

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