Skip to main content
Glama

get_project_test_plans

Retrieve all test plans for a specific Jira project to manage testing activities and track test coverage across development cycles.

Instructions

Get all test plans for a specific project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxResultsNoMaximum number of results to return
projectKeyYesThe Jira project key (e.g., "PROJ")

Implementation Reference

  • MCP tool handler that extracts input arguments, invokes the XrayClient method to fetch test plans by project, and formats the result as MCP content.
    case 'get_project_test_plans': { const result = await xrayClient.getTestPlansByProject( args.projectKey as string, args.maxResults as number | undefined ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Tool metadata registration including name, description, and input schema definition for the get_project_test_plans tool.
    { name: 'get_project_test_plans', description: 'Get all test plans for a specific project', inputSchema: { type: 'object', properties: { projectKey: { type: 'string', description: 'The Jira project key (e.g., "PROJ")', }, maxResults: { type: 'number', description: 'Maximum number of results to return', default: 50, }, }, required: ['projectKey'], }, },
  • Helper method in XrayClient class that generates JQL query for test plans in a specific project and delegates to the generic searchTestPlans method.
    async getTestPlansByProject(projectKey: string, maxResults: number = 50): Promise<any> { const jql = `project = '${projectKey}'`; return this.searchTestPlans(jql, maxResults); }

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