Skip to main content
Glama

get_case

Retrieve a specific test case from the QASE test management platform by providing its project code and ID to access detailed information.

Instructions

Get a specific test case

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
idYes

Implementation Reference

  • The handler function for the 'get_case' tool. It matches tool calls named 'get_case', parses the input arguments using GetCaseSchema, and delegates to the getCase helper function.
    .with({ name: 'get_case' }, ({ arguments: args }) => {
      const { code, id } = GetCaseSchema.parse(args);
      return getCase(code, id);
    })
  • Zod schema for validating input to the get_case tool: requires project code (string) and case ID (number). Used in both registration and handler.
    export const GetCaseSchema = z.object({
      code: z.string(),
      id: z.number(),
    });
  • src/index.ts:176-179 (registration)
    Tool registration in ListToolsRequestSchema handler, defining the tool's name, description, and input schema.
      name: 'get_case',
      description: 'Get a specific test case',
      inputSchema: zodToJsonSchema(GetCaseSchema),
    },
  • Core helper function implementing the logic: pipes the QaseIO client.cases.getCase method through toResult for result handling.
    export const getCase = pipe(client.cases.getCase.bind(client.cases), toResult);
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 'Get' which implies a read operation, but doesn't disclose behavioral traits such as authentication needs, error handling, rate limits, or what happens if the case doesn't exist. For a retrieval tool with zero annotation coverage, this is a significant gap in transparency.

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 with no wasted words. It's appropriately sized for a simple tool and front-loaded with the core action, though it could benefit from more detail given the lack of other documentation.

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 complexity (2 required parameters, 0% schema coverage, no output schema, no annotations), the description is incomplete. It doesn't explain parameter semantics, return values, or behavioral context, making it inadequate for an agent to use the tool effectively without additional information.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It provides no information about the parameters 'code' and 'id', leaving their meaning, format, or relationship undocumented. The description adds no value beyond the schema, failing to explain what these identifiers represent or how to use them.

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

Purpose3/5

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

The description 'Get a specific test case' clearly states the action (get) and resource (test case), but it's vague about what 'specific' means and doesn't distinguish this tool from sibling 'get_cases' which likely retrieves multiple cases. It provides basic purpose but lacks specificity about scope or differentiation.

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 like 'get_cases' or other retrieval tools. The description implies retrieval of a single case but doesn't specify prerequisites, context, or exclusions, leaving usage unclear relative to siblings.

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/rikuson/mcp-qase'

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