list_priorities
Retrieve all available test case priority levels to organize testing workflows in Zephyr Scale Cloud.
Instructions
List all available test case priorities (e.g., High, Medium, Low)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/reference-data-tools.js:45-72 (handler)The asynchronous handler function for the 'list_priorities' tool. Fetches priorities from Zephyr client and returns formatted JSON response or error.async function listPriorities() { try { const priorities = await client.getPriorities(); return { content: [ { type: 'text', text: JSON.stringify({ priorities: priorities.values || priorities, total: priorities.total || priorities.length, note: 'These priorities can be used when creating or updating test cases' }, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text', text: formatError(error, 'fetching priorities') } ], isError: true }; } }
- Input schema for 'list_priorities' tool, defining an empty object (no parameters required).inputSchema: { type: 'object', properties: {} },
- src/tools/reference-data-tools.js:123-131 (registration)Registration of the 'list_priorities' tool within the referenceDataTools array, including name, description, schema, and handler reference.{ name: 'list_priorities', description: 'List all available test case priorities (e.g., High, Medium, Low)', inputSchema: { type: 'object', properties: {} }, handler: listPriorities },
- src/index.js:30-37 (registration)Inclusion of referenceDataTools (containing list_priorities) into the allTools array used for MCP server tool handling.const allTools = [ ...projectTools, ...folderTools, ...testCaseTools, ...testStepsTools, ...testScriptTools, ...referenceDataTools ];