Skip to main content
Glama

get_manual_run

Retrieve complete details of a manual test run including status, environment, test statistics, contributors, attachments, and linked issues by providing project ID and run ID.

Instructions

Get the full details of one manual test run: name, status, environment, linked release, test stats (total/passed/failed/blocked/untested), contributors, attachments, linked issues. runId accepts either the internal _id or a counter-style ID like 'RUN-12'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID (required).
runIdYesInternal _id or counter-style ID (required).

Implementation Reference

  • The handler function `handleGetManualRun` that executes the tool logic: gets API key, validates args, builds URL via endpoint helper, makes API request, and returns JSON response.
    export async function handleGetManualRun(args?: GetManualRunArgs) {
      const token = getApiKey(args);
      if (!token) {
        throw new Error(
          "Missing TESTDINO_PAT environment variable. Configure it in your .cursor/mcp.json under 'env'."
        );
      }
      if (!args?.projectId) throw new Error("projectId is required");
      if (!args?.runId) throw new Error("runId is required");
    
      try {
        const url = endpoints.getManualRun({
          projectId: args.projectId,
          runId: args.runId,
        });
        const response = await apiRequestJson<unknown>(url, {
          headers: { Authorization: `Bearer ${token}` },
        });
        return {
          content: [{ type: "text", text: JSON.stringify(response, null, 2) }],
        };
      } catch (error) {
        const msg = error instanceof Error ? error.message : String(error);
        throw new Error(`Failed to get manual run: ${msg}`);
      }
    }
  • The `GetManualRunArgs` interface and `getManualRunTool` object defining input schema with required fields: projectId (string) and runId (string).
    interface GetManualRunArgs {
      projectId: string;
      runId: string;
    }
    
    export const getManualRunTool = {
      name: "get_manual_run",
      description:
        "Get the full details of one manual test run: name, status, environment, linked release, test stats (total/passed/failed/blocked/untested), contributors, attachments, linked issues. runId accepts either the internal _id or a counter-style ID like 'RUN-12'.",
      inputSchema: {
        type: "object",
        properties: {
          projectId: { type: "string", description: "Project ID (required)." },
          runId: {
            type: "string",
            description: "Internal _id or counter-style ID (required).",
          },
        },
        required: ["projectId", "runId"],
      },
    };
  • src/index.ts:301-304 (registration)
    The main server handler registration that routes the tool name 'get_manual_run' to the `handleGetManualRun` function.
    if (name === "get_manual_run") {
      return await handleGetManualRun(
        args as Parameters<typeof handleGetManualRun>[0]
      );
  • src/index.ts:119-120 (registration)
    The tool is listed in the `tools` array of the server capabilities.
    listManualRunsTool,
    getManualRunTool,
  • The `getManualRun` endpoint helper that constructs the URL: GET /api/mcp/manual-runs/:projectId/:runId
    /**
     * Get a single manual test run
     * GET /api/mcp/manual-runs/:projectId/:runId
     */
    getManualRun: (params: { projectId: string; runId: string }): string => {
      const baseUrl = getBaseUrl();
      const { projectId, runId } = params;
      return `${baseUrl}/api/mcp/manual-runs/${projectId}/${runId}`;
    },
Behavior2/5

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

No annotations are provided, and the description only implies a read operation. It does not disclose any side effects, authentication needs, or rate limits. The description carries full burden but adds minimal behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose and return fields. Second sentence adds parameter clarification. Efficient, though could be slightly more concise if merged.

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

Completeness3/5

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

Return fields are listed, and parameter semantics are partially explained. However, no output schema is provided, and the description does not cover error handling or the relationship to sibling tools like get_run_details. Adequate but missing some context.

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?

Schema coverage is 100%, so baseline is 3. The description adds an example for runId (counter-style ID like 'RUN-12'), which is helpful but not essential. No additional meaning for projectId.

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 tool gets full details of one manual test run and lists included fields. It distinguishes from list_manual_runs but not from get_run_details, which may be ambiguous. Overall, specific verb and resource are clear.

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 vs alternatives like get_run_details or list_manual_runs. The description assumes the user knows when to retrieve a single run, which is not explicit.

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/testdino-hq/testdino-mcp'

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