Skip to main content
Glama
uarlouski

TestRail MCP Server

by uarlouski

update_cases

Bulk update multiple test cases with identical field values in one call, avoiding repeated single-case updates.

Instructions

Bulk update multiple test cases with the same field values. The update operation requires knowing valid field names that are returned by get_case_fields tool. More efficient than calling update_case multiple times.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsYes A flat key-value map of case fields. The server merges all entries directly into the root of the TestRail API request body — there is no nested "fields" key in the API call. Must use system_name values from get_case_fields. Example: {"priority_id": 2, "template_id": 1, "labels": [1, 2]} Call get_case_fields with project_id first if field names are not already known. Using an unknown field name (e.g. 'label_ids') will result in an error.
case_idsYesArray of case IDs to update (e.g. [123, 456, 789])

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0
  2. Removedv2.1.0
  3. Addedv2.0.0
  4. Removedv1.9.2
  5. First observedv1.9.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the safety profile is largely covered structurally. The description adds the prerequisite lookup step, but much of that same detail (system_name requirement, merge-into-root behavior, error on unknown field names) is duplicated in the schema rather than delivering new behavioral context. It never addresses what happens to fields not included in the update or whether a partial failure leaves cases half-updated.

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?

Three short sentences, front-loaded with the action and scope, then prerequisite, then efficiency rationale. Each sentence earns its place, though the get_case_fields prerequisite is repeated verbatim in the schema's field description.

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 two-parameter bulk mutation with full schema coverage and annotation coverage, the description supplies the operational context an agent needs: valid field names come from get_case_fields and bulk is preferred over repeated single updates. The remaining gap is batch semantics (all-or-nothing vs partial success), which no output schema exists to cover.

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 nested 'fields' object is thoroughly documented with examples, valid-name rules, and API merge semantics. The description adds no parameter-level information beyond what the schema already states, so the baseline 3 applies.

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 and resource ('Bulk update multiple test cases') plus the key constraint that all cases receive the same field values. It also explicitly names the sibling it supersedes ('update_case'), so an agent can route between them without opening schemas.

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 a clear alternative ('More efficient than calling update_case multiple times') and a hard prerequisite ('requires knowing valid field names that are returned by get_case_fields'). It stops short of explicit when-not guidance, e.g. whether single-case edits should still use update_case, but the selection context is easy to infer.

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