Skip to main content
Glama

update_test_plan

Update test plan priority and custom fields to maintain accurate metadata and align with evolving project needs.

Instructions

Update a test plan's priority or custom fields. Returns 204 on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTest plan ID
priorityNo
customFieldsNo

Implementation Reference

  • The callback/handler function that executes the update_test_plan tool logic. It sends a PUT request to /testplans/:id with the priority and/or customFields payload.
    async ({ id, ...rest }) => {
      await qtmFetch(`/testplans/${id}`, { method: "PUT", body: JSON.stringify(rest) });
      return ok({ message: `Test plan ${id} updated` });
    }
  • Input schema for update_test_plan: accepts id (string|number), optional priority (string), optional customFields (array of CustomField objects).
    {
      id: ID.describe("Test plan ID"),
      priority: z.string().optional(),
      customFields: z.array(CustomField).optional(),
    },
  • src/index.ts:547-559 (registration)
    Registration of the tool named 'update_test_plan' via the `tool()` wrapper (which internally calls server.registerTool). The description explains it updates a test plan's priority or custom fields, returning 204 on success.
    tool(
      "update_test_plan",
      "Update a test plan's priority or custom fields. Returns 204 on success.",
      {
        id: ID.describe("Test plan ID"),
        priority: z.string().optional(),
        customFields: z.array(CustomField).optional(),
      },
      async ({ id, ...rest }) => {
        await qtmFetch(`/testplans/${id}`, { method: "PUT", body: JSON.stringify(rest) });
        return ok({ message: `Test plan ${id} updated` });
      }
    );
  • The CustomField Zod schema used by update_test_plan's input schema and many other tools.
    const CustomField = z.object({
      id: z.string().describe("Custom field ID, e.g. qcf_1"),
      value: z.string().optional().describe("Field value"),
      cascadeValue: z.string().optional().describe("Cascade dropdown value"),
    });
  • The `tool()` wrapper function that registers the tool on the MCP server. Used by update_test_plan.
    const tool = <Shape extends z.ZodRawShape>(
      name: string,
      description: string,
      inputSchema: Shape,
      // eslint-disable-next-line @typescript-eslint/no-explicit-any
      callback: (args: z.infer<z.ZodObject<Shape>>) => Promise<any>
    ) =>
      server.registerTool(
        name,
        { description, inputSchema },
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        callback as any
      );
Behavior2/5

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

The description discloses the return status (204 on success) but omits other behavioral traits such as whether partial updates are supported, validation rules, or error handling when the test plan is not found. Since no annotations are provided, the description should cover these aspects.

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 sentence with no redundant information. It efficiently states the action and the return code, making it easy to parse 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 the tool has 3 parameters, no output schema, and no annotations, the description is too brief. It fails to explain the format of customFields, error scenarios, or whether the update is partial, leaving the agent with insufficient context.

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?

The description merely repeats the parameter names (priority, custom fields) without adding meaning beyond what the input schema shows. With only 33% schema description coverage, the description should clarify parameter values or constraints, but it does not.

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 it updates a test plan's priority or custom fields, differentiating it from sibling tools like create or delete. However, it does not specify whether custom fields are replaced or merged, leaving some ambiguity.

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 create_test_plan or update_test_case. There is no mention of prerequisites (e.g., the test plan must exist) or conditions under which the update should be performed.

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/salehrifai42/qmetrymcp'

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