Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}
    },
  • 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
    ];
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but only states it lists priorities without behavioral details. It doesn't disclose if this is a read-only operation, how data is returned (e.g., format, pagination), or any constraints like authentication needs or rate limits, leaving significant gaps for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the purpose with no wasted words. It directly states the action and resource, and the parenthetical examples are concise and relevant, making it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is minimally adequate. It explains what the tool does but lacks behavioral context like return format or usage guidelines. For a basic list tool, this is acceptable but leaves room for improvement in guiding the agent effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description adds value by providing examples of priorities (e.g., High, Medium, Low), which clarifies the output semantics beyond the tool name, earning a score above the baseline of 3 for zero-parameter tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'List' and the resource 'test case priorities', with examples like 'High, Medium, Low' that clarify the type of data returned. It distinguishes from siblings like list_folders or list_statuses by specifying priorities, but doesn't explicitly contrast with other list tools beyond the resource type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites, dependencies, or compare to other list tools like list_statuses or list_test_cases, leaving the agent to infer usage based on the resource name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/donyfs/mcp-zephyr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server