Skip to main content
Glama
Qase MCP Server

Qase MCP Server

Official
by qase-tms

Bulk create test cases

qase_case_bulk_create

Create up to 100 Qase test cases in one API call. Use instead of many single-case requests when adding multiple cases at once.

Instructions

Create up to 100 test cases in one request — the batch form of qase_case_upsert, and the right tool whenever more than one case is being written. Same fields and enum handling as qase_case_upsert; creates only, update through qase_case_upsert with id. Cost: one API call regardless of batch size — ten cases measured 1.2s against 5.6s as ten separate calls.

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": {
      "code": "<code>",
      "cases": "<cases>"
    },
    "name": "qase_case_bulk_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesProject code, e.g. DEMO
casesYesTest cases to create, 1 to 100 per call

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.2.0
    • addedInput schema / $defs / parameter
      Added value: +{
      +  "properties": {
      +    "title": {
      +      "description": "Parameter name, e.g. \"browser\"",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "values": {
      +      "description": "Its values, e.g. [\"chrome\", \"firefox\"]",
      +      "items": {
      +        "type": "string"
      +      },
      +      "minItems": 1,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "title",
      +    "values"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / cases / items / properties / parameters
      Added value: +{
      +  "description": "Test case parameters: {title, values}, a group {items: [...]}, or {shared_id}. Replaces the whole list: send every parameter to keep, [] to clear, omit to leave as is.",
      +  "items": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/parameter"
      +      },
      +      {
      +        "properties": {
      +          "items": {
      +            "description": "Parameters whose values go together; the API needs at least two",
      +            "items": {
      +              "$ref": "#/$defs/parameter"
      +            },
      +            "minItems": 2,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "items"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "properties": {
      +          "shared_id": {
      +            "description": "ID of a shared parameter (qase_api GET /v1/shared_parameter)",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "shared_id"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  "type": "array"
      +}
  2. Changed14 schema fields changedv3.0.0
    • addedInput schema / $defs
      Added value: +{
      +  "step": {
      +    "properties": {
      +      "action": {
      +        "description": "Step action (classic steps). Not needed when `shared` is set.",
      +        "type": "string"
      +      },
      +      "attachments": {
      +        "description": "Hashes from qase_attachment_upload",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "data": {
      +        "description": "Test data",
      +        "type": "string"
      +      },
      +      "expected_result": {
      +        "description": "Expected result",
      +        "type": "string"
      +      },
      +      "shared": {
      +        "description": "Hash from `qase_shared_step_upsert` to reuse here; then `action` is not needed.",
      +        "type": "string"
      +      },
      +      "shared_step_hash": {
      +        "description": "Alias for `shared`, the spelling a case reads back.",
      +        "type": "string"
      +      },
      +      "steps": {
      +        "description": "Nested substeps, nesting further if needed.",
      +        "items": {
      +          "$ref": "#/$defs/step"
      +        },
      +        "type": "array"
      +      },
      +      "value": {
      +        "description": "Gherkin scenario text (when steps_type is \"gherkin\")",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / cases / items / additionalProperties
      Removed value: -false
    • changedInput schema / properties / cases / items / properties / attachments / description
      Previous value: -"Attachment hashes from qase_attachment_upload"New value: +"Hashes from qase_attachment_upload"
    • changedInput schema / properties / cases / items / properties / automation / description
      Previous value: -"Automation status (label, slug, or numeric ID: 0=Manual / is-not-automated, 1=To be automated, 2=Automated)"New value: +"Automation: 0=Manual, 1=To be automated, 2=Automated (label or ID)"
    • changedInput schema / properties / cases / items / 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 / cases / items / properties / custom_field / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / cases / items / properties / is_flaky / description
      Previous value: -"Is flaky label or numeric ID (0=No, 1=Yes). A boolean is accepted too."New value: +"Is flaky: 0=No, 1=Yes; a boolean works too."
    • addedInput schema / properties / cases / items / properties / steps / items / $ref
      Added value: +"#/$defs/step"
    • removedInput schema / properties / cases / items / properties / steps / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / cases / items / properties / steps / items / properties
      Removed value: -{
      -  "action": {
      -    "description": "Step action (classic steps). Not needed when `shared` is set.",
      -    "type": "string"
      -  },
      -  "attachments": {
      -    "description": "Attachment hashes from qase_attachment_upload",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "data": {
      -    "description": "Test data",
      -    "type": "string"
      -  },
      -  "expected_result": {
      -    "description": "Expected result",
      -    "type": "string"
      -  },
      -  "shared": {
      -    "description": "Hash of an existing shared step to insert at this position, from `qase_shared_step_upsert`. The step then reuses that shared step instead of defining its own content, so `action` can be omitted. Reading the case back reports the link as `shared_step_hash`.",
      -    "type": "string"
      -  },
      -  "shared_step_hash": {
      -    "description": "Alias for `shared` — the name used when reading a case. Sent to the API as `shared`.",
      -    "type": "string"
      -  },
      -  "steps": {
      -    "description": "Nested substeps. Same structure as parent steps, supports further nesting.",
      -    "items": {
      -      "additionalProperties": true,
      -      "properties": {
      -        "action": {
      -          "description": "Step action (classic steps). Not needed when `shared` is set.",
      -          "type": "string"
      -        },
      -        "attachments": {
      -          "description": "Attachment hashes from qase_attachment_upload",
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "data": {
      -          "description": "Test data",
      -          "type": "string"
      -        },
      -        "expected_result": {
      -          "description": "Expected result",
      -          "type": "string"
      -        },
      -        "shared": {
      -          "description": "Hash of an existing shared step to insert at this position, from `qase_shared_step_upsert`. The step then reuses that shared step instead of defining its own content, so `action` can be omitted. Reading the case back reports the link as `shared_step_hash`.",
      -          "type": "string"
      -        },
      -        "shared_step_hash": {
      -          "description": "Alias for `shared` — the name used when reading a case. Sent to the API as `shared`.",
      -          "type": "string"
      -        },
      -        "value": {
      -          "description": "Gherkin scenario text (when steps_type is \"gherkin\")",
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "value": {
      -    "description": "Gherkin scenario text (when steps_type is \"gherkin\")",
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / cases / items / properties / steps / items / type
      Removed value: -"object"
    • changedInput schema / properties / cases / items / properties / steps_type / description
      Previous value: -"How steps are written: \"classic\" action/expected pairs, or \"gherkin\" scenario text"New value: +"Step style: \"classic\" action/expected, or \"gherkin\" scenario text"
    • changedInput schema / properties / code / description
      Previous value: -"Project code (2-10 uppercase letters, numbers, or underscores)"New value: +"Project code, e.g. DEMO"
  3. Addedv2.7.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, closed-world, so the safety profile is covered. The description adds real context beyond them: it is 'creates only' (not an upsert despite the similar name) and costs one API call regardless of batch size, with measured latency. It does not say what happens on partial failure within the batch, which is the main remaining behavioral unknown for a bulk write.

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, each front-loaded with the decision-relevant fact: what it does, how it differs, and the performance payoff. The concrete 1.2s vs 5.6s measurement earns its place by making the batch choice concrete.

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 2-parameter bulk creation tool with full schema coverage, the definition covers purpose, routing, mutation semantics and cost. The one gap is batch failure behavior (all-or-nothing vs partial), which an agent writing 100 cases would want to know.

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 coverage is 100%, so every parameter including the nested step and parameter definitions is already documented. The description only adds a cross-reference that fields and enum handling match qase_case_upsert, which is genuinely useful but does not extend per-parameter meaning; 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 with scope ('Create up to 100 test cases in one request') and immediately positions it as 'the batch form of qase_case_upsert'. The agent can distinguish it from its sibling without opening either schema.

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 routing rules: use this 'whenever more than one case is being written', and for updates 'use qase_case_upsert with `id`'. Both the when and the when-not, plus the named alternative, are present.

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