Skip to main content
Glama

remove_tests_from_test_plan

Remove specific tests from an existing test plan by providing test issue IDs, streamlining test management and maintaining accurate test coverage.

Instructions

Remove tests from an existing test plan

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
testPlanIssueIdYesThe test plan issue ID (not key)
testIssueIdsYesArray of test issue IDs to remove

Implementation Reference

  • Core handler implementing the tool logic: executes GraphQL mutation to remove specified test issue IDs from a test plan using Xray Cloud API.
    async removeTestsFromTestPlan(testPlanIssueId: string, testIssueIds: string[]): Promise<any> { const mutation = ` mutation RemoveTestsFromTestPlan($issueId: String!, $testIssueIds: [String]!) { removeTestsFromTestPlan(issueId: $issueId, testIssueIds: $testIssueIds) { removedTests warning } } `; const variables = { issueId: testPlanIssueId, testIssueIds }; const result = await this.graphqlRequest<{ removeTestsFromTestPlan: any }>(mutation, variables); return result.removeTestsFromTestPlan; }
  • Input schema defining parameters for the tool: testPlanIssueId (string) and testIssueIds (array of strings).
    inputSchema: { type: 'object', properties: { testPlanIssueId: { type: 'string', description: 'The test plan issue ID (not key)', }, testIssueIds: { type: 'array', items: { type: 'string' }, description: 'Array of test issue IDs to remove', }, }, required: ['testPlanIssueId', 'testIssueIds'], },
  • src/index.ts:366-384 (registration)
    Tool registration in the MCP tools list, including name, description, and schema.
    { name: 'remove_tests_from_test_plan', description: 'Remove tests from an existing test plan', inputSchema: { type: 'object', properties: { testPlanIssueId: { type: 'string', description: 'The test plan issue ID (not key)', }, testIssueIds: { type: 'array', items: { type: 'string' }, description: 'Array of test issue IDs to remove', }, }, required: ['testPlanIssueId', 'testIssueIds'], }, },
  • src/index.ts:780-793 (registration)
    Dispatch handler in the MCP CallToolRequest that invokes the XrayClient method and formats the response.
    case 'remove_tests_from_test_plan': { const result = await xrayClient.removeTestsFromTestPlan( args.testPlanIssueId as string, args.testIssueIds as string[] ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }

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/c4m3lblue-star/xray-mcp'

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