Skip to main content
Glama
Allure TestOps MCP

Allure TestOps MCP

set_test_case_custom_fields

Adds custom field values to a test case without removing existing ones; remove fields first or use replace mode to substitute values.

Instructions

Add custom field values for a test case via bulk API. NOTE: This ADDS values without removing existing ones. For multi-select fields, the test case may end up with both old and new values. To replace values, use remove_test_case_custom_fields first, then this tool. Or use bulk_set_test_case_custom_fields with mode="replace". Supports grouped values [{ customField: { id }, values: [{ id|name }] }] and flat values [{ id|name, customField: { id } }].

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": {
      "testCaseId": "<testCaseId>",
      "payload": "<payload>"
    },
    "name": "set_test_case_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYes
projectIdNo
testCaseIdYes
projectNameNoProject name (alternative to projectId).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it discloses the key non-obvious trait: values are added, not replaced, and multi-select fields can end up holding both old and new values. It does not mention permission requirements, error behavior for unknown custom fields, or what the response contains, leaving some gaps for a mutation tool with zero annotation coverage.

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?

The additive caveat and the replacement alternative are front-loaded in caps-marked form, followed by the payload formats. Every sentence carries needed information — no filler, no restatement of the name.

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 4-parameter mutation tool with no output schema and no annotations, the description covers the important semantics: additive behavior, multi-select accumulation, replacement workflow, and payload shapes. It is slightly incomplete on whether projectId or projectName is required and on failure modes for unknown fields, but nothing critical for invocation is missing.

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 description coverage is only 25% (only projectName is documented), so the description must compensate, and it does by specifying the two accepted payload shapes with example structures ({ customField: { id }, values: [{ id|name }] } and the flat variant). It adds nothing for projectId/testCaseId, which are self-evident, but the payload documentation is genuinely beyond what the schema provides.

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 ('Add custom field values for a test case') and immediately clarifies the additive semantics that the 'set_' name would otherwise mislead about. It also names the two sibling tools that differ (remove_test_case_custom_fields, bulk_set_test_case_custom_fields with mode="replace"), so an agent can route without opening other schemas.

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?

Gives explicit when-to-use and when-not-to-use guidance: use this to append, use remove_ first to replace, or use bulk_set with mode="replace" instead. The alternatives and the conditions selecting them are spelled out rather than implied.

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