Skip to main content
Glama

Get test run results

get_run_results
Read-only

Get the results summary for a test run: folder tree with pass/fail/complete counts and per-status tallies. With includeCases: true it also lists the run's cases (caseId, caseNumber, title, folderId, current statusId and statusName), one page at a time (casesLimit, default 100, at most 200; casesCursor = cases.nextCursor for the next page), optionally only cases whose current status is one of caseStatusIds (the Untested status id selects cases without a result). Requires project and run id.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>",
      "runId": "<runId>"
    },
    "name": "get_run_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesTest run id to read results for.
projectYesProject id the run belongs to. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted.
casesLimitNoOptional, with includeCases: page size (default 100).
casesCursorNoOptional, with includeCases: cases.nextCursor of the previous page.
includeCasesNoOptional: also list the run's cases (default false).
caseStatusIdsNoOptional, with includeCases: only cases whose current status is one of these status ids from get_statuses.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / caseStatusIds
      Added value: +{
      +  "description": "Optional, with includeCases: only cases whose current status is one of these status ids from get_statuses.",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / casesCursor
      Added value: +{
      +  "description": "Optional, with includeCases: cases.nextCursor of the previous page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / casesLimit
      Added value: +{
      +  "description": "Optional, with includeCases: page size (default 100).",
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / includeCases
      Added value: +{
      +  "description": "Optional: also list the run's cases (default false).",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / project / description
      Previous value: -"Project id the run belongs to. Numeric id from get_projects (same as in the app URL); not the project name."New value: +"Project id the run belongs to. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds behavior beyond that: pagination is one page at a time with a default of 100 and hard cap of 200, and the cursor must be fed from cases.nextCursor. It does not discuss error behavior for an invalid run id, but the added operational detail is substantive.

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?

A single dense sentence pack, front-loaded with the primary return shape before the optional includeCases branch. Every clause carries information, though the heavy parenthetical stacking (limits, cursor, status ids) makes it read as a wall of text rather than clearly separated points.

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

Completeness4/5

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

There is no output schema, so the description carries the burden of describing returns, and it does name the summary shape plus the per-case fields (caseId, caseNumber, title, folderId, statusId, statusName). It omits whether a total case count is returned to know when pagination ends, and doesn't mention what happens on a nonexistent run, but it is sufficient to call the tool correctly.

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

Parameters5/5

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

Schema coverage is 100%, so a 3 would be the floor, but the description adds meaning the schema cannot: casesCursor must be set to cases.nextCursor from the previous response (that field name exists nowhere in the schema or an output schema), and the Untested status id is a sentinel that selects cases with no result. It also restates the default/cap for casesLimit, which is redundant with the schema but harmless.

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?

States a specific verb and resource ("Get the results summary for a test run") and immediately describes the payload: a folder tree with pass/fail/complete counts and per-status tallies. It is clear about what comes back, but never contrasts itself with close siblings such as get_automated_results or get_run_case_details, which also return run-related data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives conditional guidance for the optional path ("With includeCases: true it also lists the run's cases") and explains the Untested status id behavior, which is real usage context. However, it offers no when-to-use guidance against alternatives like get_run_case_details or get_automated_results, and no exclusions, so the agent must infer which tool fits.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.