list_statuses
Retrieve all available test case statuses like Draft, Ready, and Approved to manage testing workflows in Zephyr Scale Cloud.
Instructions
List all available test case statuses (e.g., Draft, Ready, Approved)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/reference-data-tools.js:13-40 (handler)The main handler function for the 'list_statuses' tool. Fetches all available statuses from Zephyr using ZephyrClient and returns them as formatted JSON text in MCP content format. Handles errors with formatted error response.async function listStatuses() { try { const statuses = await client.getStatuses(); return { content: [ { type: 'text', text: JSON.stringify({ statuses: statuses.values || statuses, total: statuses.total || statuses.length, note: 'These statuses can be used when creating or updating test cases' }, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text', text: formatError(error, 'fetching statuses') } ], isError: true }; } }
- Input schema for the 'list_statuses' tool, defining an empty object (no input parameters required).inputSchema: { type: 'object', properties: {} },
- src/tools/reference-data-tools.js:114-122 (registration)Local registration of the 'list_statuses' tool within the referenceDataTools export array, including name, description, schema, and handler reference.{ name: 'list_statuses', description: 'List all available test case statuses (e.g., Draft, Ready, Approved)', inputSchema: { type: 'object', properties: {} }, handler: listStatuses },
- src/index.js:36-36 (registration)Global registration: spreading referenceDataTools into the main allTools array used by the MCP server for tool discovery and execution....referenceDataTools