Skip to main content
Glama
ennuiii

Azure DevOps MCP Server with PAT Authentication

by ennuiii

testplan_list_test_cases

Retrieve a list of test cases from a specific test plan and suite in Azure DevOps. Input project ID, plan ID, and suite ID to access relevant test cases for streamlined test management.

Instructions

Gets a list of test cases in the test plan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planidYesThe ID of the test plan.
projectYesThe unique identifier (ID or name) of the Azure DevOps project.
suiteidYesThe ID of the test suite.

Implementation Reference

  • Registers the 'testplan_list_test_cases' tool with MCP server, including schema and inline handler.
    server.tool(
      Test_Plan_Tools.list_test_cases,
      "Gets a list of test cases in the test plan.",
      {
        project: z.string().describe("The unique identifier (ID or name) of the Azure DevOps project."),
        planid: z.number().describe("The ID of the test plan."),
        suiteid: z.number().describe("The ID of the test suite."),
      },
      async ({ project, planid, suiteid }) => {
        const connection = await connectionProvider();
        const coreApi = await connection.getTestPlanApi();
        const testcases = await coreApi.getTestCaseList(project, planid, suiteid);
    
        return {
          content: [{ type: "text", text: JSON.stringify(testcases, null, 2) }],
        };
      }
    );
  • The handler function fetches test cases for a given project, test plan ID, and suite ID using Azure DevOps TestPlanApi.getTestCaseList and returns JSON.
    async ({ project, planid, suiteid }) => {
      const connection = await connectionProvider();
      const coreApi = await connection.getTestPlanApi();
      const testcases = await coreApi.getTestCaseList(project, planid, suiteid);
    
      return {
        content: [{ type: "text", text: JSON.stringify(testcases, null, 2) }],
      };
    }
  • Input schema defined with Zod: project (string), planid (number), suiteid (number).
    {
      project: z.string().describe("The unique identifier (ID or name) of the Azure DevOps project."),
      planid: z.number().describe("The ID of the test plan."),
      suiteid: z.number().describe("The ID of the test suite."),
    },
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it 'Gets a list,' implying a read-only operation, but doesn't specify permissions required, pagination behavior, rate limits, or what happens if parameters are invalid. This leaves significant gaps for a tool with three required 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, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and appropriately sized for its function, earning a high score for conciseness.

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 tool's complexity (3 required parameters) and lack of annotations and output schema, the description is incomplete. It doesn't explain return values, error conditions, or behavioral details, making it inadequate for an agent to use the tool effectively without additional context.

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 schema description coverage is 100%, with clear descriptions for 'planid', 'project', and 'suiteid'. The description adds no additional parameter semantics beyond what the schema provides, such as format examples or constraints, so it meets the baseline score of 3.

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 verb ('Gets') and resource ('list of test cases in the test plan'), making the purpose understandable. However, it doesn't distinguish this tool from its sibling 'testplan_list_test_plans' or other list tools, missing specific differentiation that would warrant a score of 5.

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 like 'testplan_list_test_plans' or other test-related tools. It lacks context about prerequisites, such as needing an existing test plan and suite, or any exclusions, leaving usage unclear.

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