Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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

No annotations are provided, so the description carries full burden. It states it's a list operation, implying read-only behavior, but doesn't disclose any behavioral traits like whether it requires authentication, rate limits, pagination, or the format of returned data. The description is minimal and lacks essential context for safe use.

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 ('List all available test case statuses') and adds clarifying examples without unnecessary details. Every word earns its place, making it highly concise and well-structured.

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

Completeness2/5

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

Given the tool's low complexity (0 parameters, no output schema, no annotations), the description is incomplete. It lacks behavioral transparency (e.g., auth needs, return format) and usage guidelines, leaving gaps that could hinder an AI agent's ability to invoke it correctly in context with siblings.

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 tool has 0 parameters, and schema description coverage is 100%, so no parameter documentation is needed. The description doesn't add parameter details, which is appropriate here, but it does provide context about what's being listed (statuses with examples), slightly exceeding the baseline.

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

Purpose5/5

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

The description clearly states the specific action ('List all available') and resource ('test case statuses'), with concrete examples ('e.g., Draft, Ready, Approved'). It distinguishes from siblings like list_folders, list_priorities, and list_projects by specifying it's about statuses.

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 on when to use this tool versus alternatives is provided. While it's implied this is for retrieving status metadata, there's no mention of prerequisites, related operations, or when not to use it (e.g., for creating or updating statuses).

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