Skip to main content
Glama

Create Test Case

create_test_case

Create a new test case in QA Sphere, either standalone or from a template with parameter substitution. Supports steps, tags, and requirements.

Instructions

Create a new test case in QA Sphere. Supports both standalone and template test cases with various options like steps, tags, requirements, and parameter values for templates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
posNoPosition within the folder (0-based index)
tagsNoList of tag titles
typeYesType of test case. A 'template' test case uses `${var}` placeholders in its title, precondition, and step fields; each entry in `parameterValues` substitutes those placeholders to generate one filled test case.
linksNoAdditional links relevant to the test case
stepsNoList of test case steps
titleYesTest case title. In template test cases, may contain `${var}` placeholders that are substituted via `parameterValues` to produce filled test case titles.
commentNoTest case precondition (HTML format). DEPRECATED — prefer the `precondition` object
isDraftNoWhether to create as draft
folderIdYesID of the folder where the test case will be placed. Use upsert_folders tool to create new folders or get existing folders.
priorityYesTest case priority
projectCodeYesProject code identifier (e.g., BDI)
customFieldsNoCustom field values. Keys are custom field system names. Custom fields must exist in the project (created via the web UI).
preconditionNoTest case precondition: either `{sharedPreconditionId}` to reference a shared one, or `{text}` for a standalone precondition
requirementsNoTest case requirements
parameterValuesNoOne set of parameter substitutions per filled test case to generate from the template. Applies only when `type` is `template`; ignored for standalone test cases. A placeholder with no matching key is left untouched (e.g., `${action}` with no `action` value stays literal).
filledTCaseTitleSuffixParamsNoParameter names whose substituted values are appended to each filled test case title for disambiguation (e.g., pass `["env"]` to suffix titles with the `env` value).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique identifier of the created test case
seqYesSequence number of the test case in the project
Behavior2/5

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

With no annotations, the description bears full burden for behavioral disclosure. It only states the creation action and lists options, but does not reveal side effects, authorization needs, idempotency, or constraints like folder existence.

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 description is a single, well-structured sentence that front-loads the core purpose. No extraneous words.

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

Completeness2/5

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

Given the tool's high complexity (16 params, nested objects, templates), the description is too brief. It lacks guidance on parameter interdependencies (e.g., type=template requires parameterValues) and prerequisites like folder existence.

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 does not add extra parameter meaning beyond the schema's detailed descriptions.

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?

Description clearly states the action ('Create') and resource ('test case in QA Sphere'), distinguishes between standalone and template types, and mentions key options. It is distinct from sibling tools like update_test_case.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or alternatives compared to siblings. The mention of standalone vs template provides some usage context, but no guidance on prerequisites or when to use update_test_case instead.

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/Hypersequent/qasphere-mcp'

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