Skip to main content
Glama
Qase MCP Server

Qase MCP Server

Official
by qase-tms

Create or update shared step

qase_shared_step_upsert

Create or update reusable shared test steps: omit hash to create a new block, or provide hash to update it across all referencing cases.

Instructions

Create or update a shared step — a block of steps written once and reused across cases. With hash it updates, without it creates; shared steps are identified by hash, which qase_case_upsert takes in a step's shared field. Updating changes every referencing case. Cost: one API call, about 0.5s.

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>",
      "title": "<title>"
    },
    "name": "qase_shared_step_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesProject code, e.g. DEMO
hashNoShared step hash — if provided, updates; if omitted, creates
stepsNoArray of step definitions
titleYesShared step title

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Adds real value beyond the annotations by disclosing the cascade effect ('Updating changes every referencing case') and the cost profile (one API call, ~0.5s), which the readOnly/destructive hints do not convey. It stops short of stating whether an update replaces or merges the existing step list, whether changes are reversible, or what permissions are needed.

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 tight sentences with the create/update rule front-loaded ahead of the cascade warning and cost estimate; no filler. The middle sentence about hash interop is slightly dense but still earns its place.

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 with annotations and no output schema, the description covers the essential behavioral risks: mutation semantics, cascading impact, and latency. It leaves open how the returned/known hash is obtained for a subsequent update and whether `steps` replaces the prior list, which an agent performing an edit 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 the schema already documents all four parameters including the create-vs-update meaning of `hash`. The description reinforces that switch and adds cross-tool meaning for `hash` (it is the value qase_case_upsert expects in a step's `shared` field), but adds nothing about the `steps` array or `code` format beyond the 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 pair and resource ('Create or update a shared step') and defines the resource inline as 'a block of steps written once and reused across cases', which an agent cannot infer from the name alone. It also disambiguates the two modes by the presence of `hash`, so the tool is distinguishable from the case-level upsert it references.

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 selection rule between the two modes ('With `hash` it updates, without it creates') and explains how the identifier connects to qase_case_upsert's `shared` field. It lacks explicit when-not-to-use guidance, e.g. when to edit the shared step versus editing an individual case's steps.

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