Skip to main content
Glama

Update test run

update_test_run
DestructiveIdempotent

Edit a test run: title/notes/cycle/environment/lifecycle state/tags, and its case selection. Case selection is one of: includeAllCases (all project cases), caseIds (set the exact case list, replacing the current one), or addCaseIds/removeCaseIds (add/remove relative to the run's current cases). Provide caseIds OR addCaseIds/removeCaseIds, not both. Closed runs cannot be edited.

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

Input Schema

NameRequiredDescriptionDefault
notesNoOptional new run notes.
runIdYesTest run id to edit.
titleNoOptional new run title.
tagIdsNoOptional tag ids (replaces the run's tags).
caseIdsNoSet the run's exact case list (replaces the current selection). Mutually exclusive with addCaseIds/removeCaseIds.
cycleIdNoOptional cycle id (from get_cycles). Omit to leave the run's cycle unchanged; pass null to detach the run from its cycle.
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.
addCaseIdsNoCase ids to add to the run's current cases.
environmentIdNoOptional environment id (from get_environments). Omit to leave the run's environment unchanged; pass null to clear it.
removeCaseIdsNoCase ids to remove from the run's current cases.
includeAllCasesNoSet true to include all of the project's cases in the run.
lifecycleStateIdNoOptional lifecycle state id (from get_lifecycles).

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

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds the specific destructive semantics: caseIds 'replaces the current one' and includeAllCases expands the run to all project cases. It also adds the closed-run precondition, which is real behavioral context not present in annotations. It does not mention whether tagIds replacement or partial-failure behavior, which keeps it below 5.

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?

Three sentences, front-loaded with the editable field list before the case-selection rules and the closed-run caveat. Every sentence carries distinct information; nothing is repeated from the schema verbatim.

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 12-parameter mutation with no output schema, it covers the riskiest part (case selection replacement) and the main precondition. Remaining gaps are small because the schema documents every parameter at 100% coverage, including the omit-vs-null distinction.

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

Parameters4/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 goes further by explaining the relationships between caseIds, addCaseIds, removeCaseIds and includeAllCases, including that they are mutually exclusive — a cross-parameter constraint that is easy to miss. The null-vs-omit semantics for cycleId/environmentId remain schema-only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Edit) and resource (test run) and enumerates exactly which attributes are editable: title/notes/cycle/environment/lifecycle state/tags plus case selection. This separates it from the lifecycle siblings (start_test_run, close_test_run) which only change run state, not content.

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

Usage Guidelines4/5

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

Gives explicit when-not rules ('Closed runs cannot be edited') and a clear exclusivity constraint ('Provide caseIds OR addCaseIds/removeCaseIds, not both'), plus what each of the three selection modes does. It never names an alternative sibling, so it falls just short of the top mark.

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.