Skip to main content
Glama

Update test case

update_test_case
DestructiveIdempotent

Update an existing test case's fields (title, folder, template, lifecycle state, estimate, tags). Requires project and case id. displayValue is a TEXT field's plain text, with an image shown as [image: file name]. value is the stored value (plain text or a rich-text document) and is what update_test_case accepts; displayValue is not accepted back, and plain text sent to a field with images is refused (FIELD_IMAGES_WOULD_BE_REMOVED).

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>",
      "caseId": "<caseId>"
    },
    "name": "update_test_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoNew title.
caseIdYesId of the test case to update.
folderNoNew folder id.
tagIdsNoReplacement tag ids.
projectYesProject id the case belongs to. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted.
estimateNoNew estimate.
templateIdNoNew template id.
fieldValuesNoCustom field values (e.g. priority, steps). Discover field ids/types/options with get_fields. Each item is { fieldId, value } where value is the field's JSON value (a string for selects like priority; a structured value for STEPS fields, e.g. [{"step_1":"Do X","step_3":"Expect Y"}]). Rich-text fields take plain text or a tiptap document ({type:"tiptap",version:1,doc:{type:"doc",content:[...]}}); valueHtml is optional and is rendered from the document when omitted. Each value must fit its field type (INTEGER a whole number, FLOAT a number, DATE "YYYY-MM-DD", CHECKBOX true/false, DROPDOWN one option value or label, MULTI_SELECT an array of them); a value that does not fit is refused with a tool error naming the field. On update this is a patch: fields you omit keep their current value; send { fieldId, value: null } to clear one.
lifecycleStateIdNoNew lifecycle state id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project / description
      Previous value: -"Project id the case belongs to. Numeric id from get_projects (same as in the app URL); not the project name."New value: +"Project id the case 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.1/5.0
Behavior4/5

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

Annotations already provide destructive=true and idempotent=true, but the description adds non-obvious behavior: fieldValues is a patch, null clears a field, and plain text sent to an image-bearing field is refused with a named error. It does not discuss permissions/auth or return behavior, so it is not fully comprehensive.

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?

Front-loads the purpose and stays within one tight paragraph, with every sentence contributing useful information. It includes some implementation-level detail such as the error code and displayValue explanation, but nothing is clearly filler.

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 9-parameter destructive update with rich schema and annotations, the description covers the tricky field-value rules and patch behavior. It omits return behavior and does not clarify top-level tag replacement, but the schema and annotations fill most remaining gaps.

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?

With 100% schema coverage the baseline is 3, but the description adds meaning by explaining displayValue versus value and what update_test_case accepts. It also reinforces patch semantics, though much of that detail is already present in the fieldValues schema.

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 ("Update an existing test case's fields") and lists the mutable fields, which clearly separates it from create_test_case and from update_test_run/update_comment. The word "existing" reinforces that this modifies rather than creates.

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?

Says to use this for updating an existing test case and gives prerequisites ("Requires project and case id"), but does not explicitly state when not to use it or name create_test_case/get_test_case as alternatives. Usage is implied by the verb and required ids.

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.