Skip to main content
Glama

get_plans

Retrieve all test plans in a specific project using project code. Specify limit and offset for pagination.

Instructions

Get all test plans in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
limitNo
offsetNo

Implementation Reference

  • Handler for the 'get_plans' tool: parses input arguments using GetPlansSchema and calls the getPlans function.
    .with({ name: 'get_plans' }, ({ arguments: args }) => { const { code, limit, offset } = GetPlansSchema.parse(args); return getPlans(code, limit, offset); })
  • Zod schema defining the input parameters for the get_plans tool: code (required), limit and offset (optional).
    export const GetPlansSchema = z.object({ code: z.string(), limit: z.number().optional(), offset: z.number().optional(), });
  • src/index.ts:201-203 (registration)
    Registration of the 'get_plans' tool in the list of available tools, including name, description, and input schema.
    name: 'get_plans', description: 'Get all test plans in a project', inputSchema: zodToJsonSchema(GetPlansSchema),
  • Helper function getPlans that pipes the client.plans.getPlans call through toResult for handling.
    export const getPlans = pipe( client.plans.getPlans.bind(client.plans), toResult, );

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