Skip to main content
Glama
ennuiii

Azure DevOps MCP Server with PAT Authentication

by ennuiii

release_get_releases

Retrieve and filter Azure DevOps project releases by ID, status, environment, creation time, and more using customizable query parameters for precise results.

Instructions

Retrieves a list of releases for a given project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
artifactTypeIdNoFilter releases by artifact type ID
artifactVersionIdNoFilter releases by artifact version ID
continuationTokenNoContinuation token for pagination
createdByNoUser ID or name who created the release
definitionEnvironmentIdNoID of the definition environment to filter releases
definitionIdNoID of the release definition to filter releases
environmentStatusFilterNoEnvironment status to filter releases
expandNoExpand options for releasesNone
isDeletedNoWhether to include deleted releases (default: false)
maxCreatedTimeNoMaximum created time for releases (default: now)2025-08-19T07:02:49.644Z
minCreatedTimeNoMinimum created time for releases (default: 7 days ago)2025-08-12T07:02:49.644Z
pathNoPath to filter releases
projectNoProject ID or name to get releases for
propertyFiltersNoFilter releases by properties
queryOrderNoOrder in which to return releases (default: Ascending)Ascending
releaseIdFilterNoFilter by specific release IDs
searchTextNoSearch text to filter releases
sourceBranchFilterNoFilter releases by source branch
sourceIdNoFilter releases by artifact source ID
statusFilterNoStatus of the releases to filter (default: Active)Active
tagFilterNoFilter releases by tags
topNoNumber of releases to return

Implementation Reference

  • Handler function that executes the tool logic by calling the Azure DevOps Release API to retrieve releases based on provided filters and returns JSON stringified result.
    async ({
      project,
      definitionId,
      definitionEnvironmentId,
      searchText,
      createdBy,
      statusFilter,
      environmentStatusFilter,
      minCreatedTime,
      maxCreatedTime,
      queryOrder,
      top,
      continuationToken,
      expand,
      artifactTypeId,
      sourceId,
      artifactVersionId,
      sourceBranchFilter,
      isDeleted,
      tagFilter,
      propertyFilters,
      releaseIdFilter,
      path,
    }) => {
      const connection = await connectionProvider();
      const releaseApi = await connection.getReleaseApi();
      const releases = await releaseApi.getReleases(
        project,
        definitionId,
        definitionEnvironmentId,
        searchText,
        createdBy,
        safeEnumConvert(ReleaseStatus, statusFilter),
        environmentStatusFilter,
        minCreatedTime,
        maxCreatedTime,
        safeEnumConvert(ReleaseQueryOrder, queryOrder),
        top,
        continuationToken,
        safeEnumConvert(ReleaseExpands, expand),
        artifactTypeId,
        sourceId,
        artifactVersionId,
        sourceBranchFilter,
        isDeleted,
        tagFilter,
        propertyFilters,
        releaseIdFilter,
        path
      );
    
      return {
        content: [{ type: "text", text: JSON.stringify(releases, null, 2) }],
      };
    }
  • Zod input schema defining parameters for filtering and paginating releases.
    {
      project: z.string().optional().describe("Project ID or name to get releases for"),
      definitionId: z.number().optional().describe("ID of the release definition to filter releases"),
      definitionEnvironmentId: z.number().optional().describe("ID of the definition environment to filter releases"),
      searchText: z.string().optional().describe("Search text to filter releases"),
      createdBy: z.string().optional().describe("User ID or name who created the release"),
      statusFilter: z
        .enum(getEnumKeys(ReleaseStatus) as [string, ...string[]])
        .optional()
        .default("Active")
        .describe("Status of the releases to filter (default: Active)"),
      environmentStatusFilter: z.number().optional().describe("Environment status to filter releases"),
      minCreatedTime: z.coerce
        .date()
        .optional()
        .default(() => {
          const sevenDaysAgo = new Date();
          sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7);
          return sevenDaysAgo;
        })
        .describe("Minimum created time for releases (default: 7 days ago)"),
      maxCreatedTime: z.coerce
        .date()
        .optional()
        .default(() => new Date())
        .describe("Maximum created time for releases (default: now)"),
      queryOrder: z
        .enum(getEnumKeys(ReleaseQueryOrder) as [string, ...string[]])
        .optional()
        .default("Ascending")
        .describe("Order in which to return releases (default: Ascending)"),
      top: z.number().optional().describe("Number of releases to return"),
      continuationToken: z.number().optional().describe("Continuation token for pagination"),
      expand: z
        .enum(getEnumKeys(ReleaseExpands) as [string, ...string[]])
        .optional()
        .default("None")
        .describe("Expand options for releases"),
      artifactTypeId: z.string().optional().describe("Filter releases by artifact type ID"),
      sourceId: z.string().optional().describe("Filter releases by artifact source ID"),
      artifactVersionId: z.string().optional().describe("Filter releases by artifact version ID"),
      sourceBranchFilter: z.string().optional().describe("Filter releases by source branch"),
      isDeleted: z.boolean().optional().default(false).describe("Whether to include deleted releases (default: false)"),
      tagFilter: z.array(z.string()).optional().describe("Filter releases by tags"),
      propertyFilters: z.array(z.string()).optional().describe("Filter releases by properties"),
      releaseIdFilter: z.array(z.number()).optional().describe("Filter by specific release IDs"),
      path: z.string().optional().describe("Path to filter releases"),
    },
  • MCP server tool registration call that associates the tool name, description, schema, and handler.
    server.tool(
      RELEASE_TOOLS.get_releases,
      "Retrieves a list of releases for a given project.",
      {
        project: z.string().optional().describe("Project ID or name to get releases for"),
        definitionId: z.number().optional().describe("ID of the release definition to filter releases"),
        definitionEnvironmentId: z.number().optional().describe("ID of the definition environment to filter releases"),
        searchText: z.string().optional().describe("Search text to filter releases"),
        createdBy: z.string().optional().describe("User ID or name who created the release"),
        statusFilter: z
          .enum(getEnumKeys(ReleaseStatus) as [string, ...string[]])
          .optional()
          .default("Active")
          .describe("Status of the releases to filter (default: Active)"),
        environmentStatusFilter: z.number().optional().describe("Environment status to filter releases"),
        minCreatedTime: z.coerce
          .date()
          .optional()
          .default(() => {
            const sevenDaysAgo = new Date();
            sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7);
            return sevenDaysAgo;
          })
          .describe("Minimum created time for releases (default: 7 days ago)"),
        maxCreatedTime: z.coerce
          .date()
          .optional()
          .default(() => new Date())
          .describe("Maximum created time for releases (default: now)"),
        queryOrder: z
          .enum(getEnumKeys(ReleaseQueryOrder) as [string, ...string[]])
          .optional()
          .default("Ascending")
          .describe("Order in which to return releases (default: Ascending)"),
        top: z.number().optional().describe("Number of releases to return"),
        continuationToken: z.number().optional().describe("Continuation token for pagination"),
        expand: z
          .enum(getEnumKeys(ReleaseExpands) as [string, ...string[]])
          .optional()
          .default("None")
          .describe("Expand options for releases"),
        artifactTypeId: z.string().optional().describe("Filter releases by artifact type ID"),
        sourceId: z.string().optional().describe("Filter releases by artifact source ID"),
        artifactVersionId: z.string().optional().describe("Filter releases by artifact version ID"),
        sourceBranchFilter: z.string().optional().describe("Filter releases by source branch"),
        isDeleted: z.boolean().optional().default(false).describe("Whether to include deleted releases (default: false)"),
        tagFilter: z.array(z.string()).optional().describe("Filter releases by tags"),
        propertyFilters: z.array(z.string()).optional().describe("Filter releases by properties"),
        releaseIdFilter: z.array(z.number()).optional().describe("Filter by specific release IDs"),
        path: z.string().optional().describe("Path to filter releases"),
      },
      async ({
        project,
        definitionId,
        definitionEnvironmentId,
        searchText,
        createdBy,
        statusFilter,
        environmentStatusFilter,
        minCreatedTime,
        maxCreatedTime,
        queryOrder,
        top,
        continuationToken,
        expand,
        artifactTypeId,
        sourceId,
        artifactVersionId,
        sourceBranchFilter,
        isDeleted,
        tagFilter,
        propertyFilters,
        releaseIdFilter,
        path,
      }) => {
        const connection = await connectionProvider();
        const releaseApi = await connection.getReleaseApi();
        const releases = await releaseApi.getReleases(
          project,
          definitionId,
          definitionEnvironmentId,
          searchText,
          createdBy,
          safeEnumConvert(ReleaseStatus, statusFilter),
          environmentStatusFilter,
          minCreatedTime,
          maxCreatedTime,
          safeEnumConvert(ReleaseQueryOrder, queryOrder),
          top,
          continuationToken,
          safeEnumConvert(ReleaseExpands, expand),
          artifactTypeId,
          sourceId,
          artifactVersionId,
          sourceBranchFilter,
          isDeleted,
          tagFilter,
          propertyFilters,
          releaseIdFilter,
          path
        );
    
        return {
          content: [{ type: "text", text: JSON.stringify(releases, null, 2) }],
        };
      }
    );
  • Constant mapping internal function names to MCP tool names.
    const RELEASE_TOOLS = {
      get_release_definitions: "release_get_definitions",
      get_releases: "release_get_releases",
    };
  • src/tools.ts:25-25 (registration)
    Call to configureReleaseTools within the main tool configuration function, integrating the release tools into the MCP server.
    configureReleaseTools(server, tokenProvider, connectionProvider);
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. It only states the basic action without disclosing behavioral traits like pagination details (implied by 'continuationToken' but not explained), rate limits, authentication needs, or what happens with large result sets. This is inadequate for a tool with 22 parameters and no output schema.

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, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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 (22 parameters, no annotations, no output schema), the description is insufficient. It lacks details on return values, error handling, or usage context, leaving significant gaps for an agent to understand how to effectively invoke this tool.

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 22 parameters. The description adds no additional parameter semantics beyond what's in the schema, meeting the baseline score of 3 for high coverage without extra value.

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 tool 'retrieves a list of releases for a given project,' which is a clear verb+resource combination. However, it doesn't distinguish this from sibling tools like 'release_get_definitions' or other list/retrieve tools in the server, leaving the purpose somewhat generic for this context.

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. The description doesn't mention prerequisites, context-specific recommendations, or exclusions, which is a significant gap given the many sibling tools available.

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