Skip to main content
Glama

Close test run

close_test_run
DestructiveIdempotent

Close a test run, marking it finished. Requires project and runId. Not guarded: it closes even when the run still has unmatched automated failures (the app's close confirms those first); they stay on the run as unmatched.

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": "close_test_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesTest run id to close.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • 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

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false. The description adds meaningful behavior beyond that: closing is not guarded, it proceeds even with unmatched automated failures, and those failures remain on the run as unmatched. It omits whether closing is reversible, but the key side-effect semantics are disclosed.

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?

Two tight sentences with zero filler; the core action is stated first and the non-obvious caveat about unmatched failures follows immediately.

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?

For a destructive, idempotent mutation with an output schema absent but annotations present, the definition covers the action, required inputs and the notable unguarded behavior. Only minor gaps remain, such as whether closing can be undone or what happens to existing results.

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 description coverage is 100%, and the schema already documents the runId and project parameters including the numeric project id requirement. The description merely restates that both are required, adding no new meaning — baseline 3 applies.

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 gives a specific verb and resource — 'Close a test run, marking it finished' — which is clearly distinct from sibling operations like start_test_run or update_test_run. It does not explicitly name an alternative, so it stops just short of a 5.

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?

Usage is implied by the required parameters (project, runId) and the tool only applies to an existing test run. However, there is no explicit when-to-use vs when-not-to-use guidance or routing to siblings such as update_test_run for other state changes.

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.