Skip to main content
Glama

remove_tests_from_test_set

Remove specific tests from an existing test set in Xray test management by providing test set and test issue IDs.

Instructions

Remove tests from an existing test set

Input Schema

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

Implementation Reference

  • Core handler function in XrayClient that executes the GraphQL mutation to remove tests from a test set in Xray Cloud.
    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; }
  • MCP server request handler (dispatch) that receives tool call parameters and invokes the XrayClient removeTestsFromTestSet method.
    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), }, ], }; }
  • src/index.ts:484-502 (registration)
    Tool registration in the MCP tools array, including name, description, and input schema definition.
    { 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'], }, },
  • Input schema definition for the remove_tests_from_test_set tool, specifying parameters for validation.
    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'], },

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