Skip to main content
Glama

get_project

Retrieve detailed information about a specific Zephyr project using its project ID or key to access comprehensive test management data.

Instructions

Get detailed information about a specific Zephyr project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID or key to retrieve

Implementation Reference

  • The handler function for the 'get_project' tool. It extracts the projectId from arguments, fetches the project details using ZephyrClient.getProject, formats the response as JSON text, and handles errors appropriately.
    async function getProject(args) {
      try {
        const { projectId } = args;
        if (!projectId) {
          throw new Error('projectId is required');
        }
    
        const project = await client.getProject(projectId);
    
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(project, null, 2)
            }
          ]
        };
      } catch (error) {
        return {
          content: [
            {
              type: 'text',
              text: formatError(error, `fetching project ${args.projectId}`)
            }
          ],
          isError: true
        };
      }
    }
  • Registration of the 'get_project' tool within the projectTools array export. Specifies name, description, input schema, and references the handler function.
    {
      name: 'get_project',
      description: 'Get detailed information about a specific Zephyr project',
      inputSchema: {
        type: 'object',
        properties: {
          projectId: {
            type: 'string',
            description: 'Project ID or key to retrieve',
            pattern: '^[A-Z][A-Z_0-9]+$|^\\d+$'
          }
        },
        required: ['projectId']
      },
      handler: getProject
    }
  • Input schema definition for the 'get_project' tool, validating the required projectId parameter with regex pattern for project keys or numeric IDs.
    inputSchema: {
      type: 'object',
      properties: {
        projectId: {
          type: 'string',
          description: 'Project ID or key to retrieve',
          pattern: '^[A-Z][A-Z_0-9]+$|^\\d+$'
        }
      },
      required: ['projectId']
    },
  • src/index.js:30-37 (registration)
    Main registration in src/index.js where projectTools (including get_project) are spread into the allTools array used by the MCP server for 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 retrieves 'detailed information' without specifying what that includes (e.g., metadata, permissions, status), whether it's read-only, requires authentication, or has rate limits. This leaves significant behavioral gaps.

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 directly states the tool's purpose with no wasted words. It's appropriately sized and front-loaded, making it easy to understand quickly.

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 no annotations and no output schema, the description is incomplete for a tool that presumably returns complex project data. It doesn't explain what 'detailed information' entails, leaving the agent uncertain about the return format or content.

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

Parameters3/5

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

The input schema has 100% description coverage, fully documenting the 'projectId' parameter. The description adds no additional parameter details beyond implying retrieval of a 'specific' project, so it meets the baseline of 3 without compensating or adding value.

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 ('Get') and resource ('detailed information about a specific Zephyr project'), making the purpose unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'list_projects' or 'get_test_case', which would require a 5.

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?

The description provides no guidance on when to use this tool versus alternatives like 'list_projects' for listing all projects or other 'get_' tools for different resources. It only states what it does, not when it's appropriate.

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