Skip to main content
Glama

create_test_case

Add a test case to a suite, automatically creating the folder/suite hierarchy when needed. Include test steps, expected results, tags, custom fields, and external links for full documentation.

Instructions

Create a new test case in a test suite. Test cases MUST live inside a suite (not a bare folder). You can provide either: (A) a folderId pointing to an existing suite, or (B) a projectId with optional folderName/suiteName to auto-create the folder→suite hierarchy. If folderId points to a folder (not a suite), a suite is auto-created inside it. Returns the full created case object including shareUrl. Tags are auto-created if they do not exist. IMPORTANT: Omit status and priority to use sensible defaults (Draft, Medium).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoTags to assign to the case. New tags are auto-created.
stepsNoArray of test steps with action and expected result
titleYesTest case title (required)
statusNoOPTIONAL - defaults to "Draft". Only specify if user explicitly requests a different status. Valid values vary by project (typically: Draft, Ready, Approved, Deprecated).Draft
folderIdNoSuite (or folder) UUID where the case will be created. If this points to a folder, a suite is auto-created inside it. Alternative: use projectId + folderName + suiteName instead.
priorityNoOPTIONAL - defaults to "Medium". Only specify if user explicitly requests a different priority. Valid values vary by project (typically: Low, Medium, High, Critical).Medium
dependsOnNoNumeric case ID this case depends on
projectIdNoProject UUID. Required when folderId is not provided. Used to find or auto-create the folder→suite hierarchy.
suiteNameNoName of the suite to find or create inside the folder (default: "General"). Used with projectId when folderId is not provided.
folderNameNoName of the folder to find or create (default: "General"). Used with projectId when folderId is not provided.
descriptionNoDetailed description of the test case. Supports Markdown: **bold**, *italic*, ~~strikethrough~~, inline `code`, # / ## / ### headings, "- " bullet and "1. " numbered lists, [text](url) links, and "> " blockquotes. Plain text works too. Images and fenced code blocks are not supported.
customFieldsNoCustom field values as key-value pairs
externalLinksNoOptional list of external ticket links to attach to the created case. Each link is inserted atomically with the case - any failure rolls back the entire creation. For Jira, externalUrl is fetched from the Jira API (just pass the issue key or full /browse/ URL as externalId); for other providers, externalUrl is required.
Behavior5/5

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

With no annotations carrying behavioral hints, the description supplies needed transparency: it discloses auto-creation of folder/suite hierarchy, auto-creation of missing tags, safe defaults for status and priority, and the return value including shareUrl. This gives an agent a solid mental model of side effects without contradicting the annotations.

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 dense but not bloated; each sentence contributes a useful rule or scenario, and the 'IMPORTANT' note about omitting status and priority is front-loaded. It earns its length for a complex creation tool.

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

Completeness5/5

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

For a tool with 13 parameters, no output schema, and no meaningful annotation signals, the description covers the key mental model: where cases must live, how folderId vs projectId resolve, auto-creation behavior, tag defaults, and return shape. Minor wrinkles like precedence when both folderId and projectId are passed are not necessary for the agent to correctly invoke the tool in common cases.

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?

The schema already documents 100% of parameters with detailed descriptions, defaults, and auto-creation semantics. The description restates the A/B targeting choices and default behavior at a high level, but adds only marginal parameter insight 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?

The description clearly states the specific verb 'Create' and resource 'test case in a test suite', then firmly distinguishes the tool's scope with 'Test cases MUST live inside a suite (not a bare folder)'. This removes ambiguity against sibling tools like create_suite or create_folder.

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?

It gives explicit when-to-use guidance by defining two valid targeting paths: folderId or projectId with optional folderName/suiteName, including auto-creation behavior. It does not explicitly name sibling alternatives like update_test_case, so it falls just short of full alternative routing.

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/m00nreport/mcp-server'

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