Skip to main content
Glama
Qase MCP Server

Qase MCP Server

Official
by qase-tms

Create or update environment

qase_environment_upsert

Create or update a Qase environment—a named target like staging or production used to attribute test runs. Provide an ID to update an existing environment; omit it to create a new one.

Instructions

Create or update an environment — a named target such as staging or production that runs are attributed to. With id it updates, without it creates. Existing environments come back from qase_project_context. 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_environment_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoEnvironment ID — if provided, updates; if omitted, creates
codeYesProject code, e.g. DEMO
hostNoEnvironment host/URL
slugNoURL-friendly identifier
titleYesEnvironment title
descriptionNoFree-form description of the environment

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the write/non-destructive profile is covered. The description adds genuinely new context: the id-driven upsert branching, where to retrieve existing environments, and the cost profile (one API call, ~0.5s). It does not say what happens to unspecified fields on update or what the response contains, but that is a modest gap given the 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and the id-based branching rule before the cost note. Dense and largely waste-free, though the opening clause duplicates the tool title and the cost sentence is secondary information that could be trimmed.

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 six-parameter upsert with full schema coverage and no output schema, the description covers the critical decision (create vs. update), the resource concept, discovery of existing records, and cost. Missing only the return shape and update-merge semantics, which keeps it from a 5.

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 description coverage is 100%, so the baseline is 3. The description's id guidance ('with `id` it updates, without it creates') merely restates the schema's own id description verbatim in substance, and it says nothing about the `code` parameter, which the schema labels 'Project code, e.g. DEMO' despite a pattern of ^[A-Z0-9_]+$ and a 10-char limit — a potential ambiguity the description does not resolve.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb pair (create/update) and resource (environment), and goes further by defining what an environment is — 'a named target such as staging or production that runs are attributed to' — which an agent cannot infer from the name alone. It does not explicitly differentiate itself from siblings such as qase_environment_delete, so it stops short of a 5.

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 an explicit mode-selection rule: 'With `id` it updates, without it creates.' It also routes the agent to qase_project_context to find existing environments, which is valuable since no environment-list tool appears among the siblings. It stops short of stating when not to use this tool (e.g., preferring delete or avoiding overwrite of production).

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