Skip to main content
Glama
qase-tms

Qase MCP Server

Official
by qase-tms

Create or update test run

qase_run_upsert

Create or update a test run as the container for results, scoped to a plan, milestone, environment, or case list before recording.

Instructions

Create or update a test run — the container results are recorded into, so open it before qase_result_record. Scope it to a milestone, environment, plan or case list. To build one from a suite or plan use qase_regression_run; for a finished CI job use qase_ci_report, which opens, records and closes in one call. Cost: one API call, about 0.5s.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoRun ID — if provided, this is an update (note: Qase API has limited run update support)
codeYesProject code, e.g. DEMO
tagsNoTag names, e.g. ["nightly", "smoke"]
casesNoCase IDs to include
titleYesRun title
plan_idNoTest plan to base run on
end_timeNoRFC3339 end time
start_timeNoRFC3339 start time
descriptionNoWhat this run covers
is_autotestNoTrue when the run is produced by automation rather than a person
custom_fieldNoCustom fields by ID, e.g. { "12": "value" }
milestone_idNoID of the milestone the run belongs to
environment_idNoID of the environment the run executes against

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / code / description
      Previous value: -"Project code (2-10 uppercase letters, numbers, or underscores)"New value: +"Project code, e.g. DEMO"
    • changedInput schema / properties / custom_field / description
      Previous value: -"Custom field values keyed by field ID, e.g. { \"12\": \"value\" }"New value: +"Custom fields by ID, e.g. { \"12\": \"value\" }"
    • addedInput schema / properties / custom_field / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed6 schema fields changedv2.5.1
    • addedInput schema / properties / custom_field / description
      Added value: +"Custom field values keyed by field ID, e.g. { \"12\": \"value\" }"
    • addedInput schema / properties / description / description
      Added value: +"What this run covers"
    • addedInput schema / properties / environment_id / description
      Added value: +"ID of the environment the run executes against"
    • addedInput schema / properties / is_autotest / description
      Added value: +"True when the run is produced by automation rather than a person"
    • addedInput schema / properties / milestone_id / description
      Added value: +"ID of the milestone the run belongs to"
    • addedInput schema / properties / tags / description
      Added value: +"Tag names, e.g. [\"nightly\", \"smoke\"]"
  3. Addedv2.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With only destructiveHint=false in annotations, the description carries most of the burden and delivers real context: the cost profile (one API call, ~0.5s) and the ordering requirement relative to qase_result_record. It does not disclose what an update does to pre-existing run data or that update support is limited, which is a gap for an upsert of 13 parameters.

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 operation and workflow role, then scoping, then alternatives and cost. No filler; the em-dash clause is dense with useful information rather than padding.

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 13-parameter mutation tool with no output schema, the description covers purpose, ordering, alternatives and cost. It omits what the caller gets back (notably the run ID needed for the subsequent qase_result_record call) and any idempotency/update-overwrite behavior, but no output schema exists so return shape is not strictly required.

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%, so every parameter is already documented in the schema. The description adds framing by grouping milestone, environment, plan and case list as scoping axes, but does not add syntax, defaults, or interaction rules beyond what the schema says. Baseline 3 is appropriate.

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+resource ("Create or update a test run") and immediately explains what the resource is for in the workflow ("the container results are recorded into"). It differentiates itself from siblings by naming qase_regression_run and qase_ci_report and the conditions that select them.

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

Usage Guidelines5/5

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

Explicit sequencing guidance ("open it before qase_result_record") plus two named alternatives with their own selection conditions: qase_regression_run for suites/plans and qase_ci_report for finished CI jobs. The agent has everything needed to route correctly without opening any schema.

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