Skip to main content
Glama

remove_tests_from_test_set

Remove specific tests from an existing test set in Xray test management to maintain accurate test coverage and organization.

Instructions

Remove tests from an existing test set

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
testIssueIdsYesArray of test issue IDs to remove
testSetIssueIdYesThe test set issue ID (not key)

Implementation Reference

  • Defines the input schema and registers the 'remove_tests_from_test_set' tool in the MCP tools list.
    { name: 'remove_tests_from_test_set', description: 'Remove tests from an existing test set', inputSchema: { type: 'object', properties: { testSetIssueId: { type: 'string', description: 'The test set issue ID (not key)', }, testIssueIds: { type: 'array', items: { type: 'string' }, description: 'Array of test issue IDs to remove', }, }, required: ['testSetIssueId', 'testIssueIds'], }, },
  • MCP server handler case that processes the tool call and delegates to XrayClient.removeTestsFromTestSet.
    case 'remove_tests_from_test_set': { const result = await xrayClient.removeTestsFromTestSet( args.testSetIssueId as string, args.testIssueIds as string[] ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Core implementation of the tool: executes GraphQL mutation to remove specified tests from the test set.
    async removeTestsFromTestSet(testSetIssueId: string, testIssueIds: string[]): Promise<any> { const mutation = ` mutation RemoveTestsFromTestSet($issueId: String!, $testIssueIds: [String]!) { removeTestsFromTestSet(issueId: $issueId, testIssueIds: $testIssueIds) { removedTests warning } } `; const variables = { issueId: testSetIssueId, testIssueIds }; const result = await this.graphqlRequest<{ removeTestsFromTestSet: any }>(mutation, variables); return result.removeTestsFromTestSet; }

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