Skip to main content
Glama
valvacchs

TestRail MCP Server

by valvacchs

updateCase

Update test case fields in TestRail by providing the case ID and specifying only the attributes to change, including steps, custom fields, and templates.

Instructions

Updates an existing test case. REQUIRED: caseId. OPTIONAL: title, typeId, priorityId, templateId, customSteps, customExpected, customStepsSeparated, customFields, etc. Only specified fields will be updated. NOTE: templateId=2 is required to use customStepsSeparated (array of step objects with 'content' and 'expected' fields). For simple text steps, use customSteps and customExpected instead. Use customFields for any additional custom fields (e.g., {custom_case_security_score: 'high'}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refsNoTest case references
titleNoTest case title
caseIdYesTestRail Case ID
typeIdNoTest case type ID
estimateNoTest case estimated time
priorityIdNoTest case priority ID
templateIdNoTemplate ID (use 2 for custom_steps_separated support)
customStepsNoTest case steps
milestoneIdNoTestRail Milestone ID
customFieldsNoAdditional custom fields as key-value pairs (e.g., {custom_case_security_score: 'high'})
customExpectedNoExpected results
customPrerequisitesNoPrerequisites
customStepsSeparatedNoSeparated test steps array (requires template_id=2)
Behavior3/5

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

Discloses that it updates existing case and only specified fields. With no annotations, description carries full burden but does not mention permissions, error handling, or return value. Adequate but not thorough.

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-loaded with purpose. Explains required/optional, then key notes. Could be slightly more concise but well-structured overall.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers main points but lacks details on return value, error cases, and some parameters (refs, estimate, milestoneId). The 'etc.' is vague. For 13 params with no output schema, it is moderately complete.

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%, baseline 3. Description adds value by explaining relationships (e.g., templateId=2 required for customStepsSeparated, alternative for simple steps, customFields usage). Provides examples and clarifies grouping.

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?

Clearly states 'Updates an existing test case' with specific verb and resource. Lists required and optional parameters, and distinguishes from siblings like addCase, deleteCase, and updateCases.

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?

States required parameter caseId and that only specified fields are updated. Provides note about templateId=2 and alternative for text steps. However, lacks explicit comparison to updateCases (plural) and does not mention when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/valvacchs/PlayWright-MCP-Repo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server