Skip to main content
Glama

Create test case

create_test_case

Create a test case in a project. Requires project, title and folder; template, lifecycle state, estimate and tags are optional. Folder ids come from get_folders. Tags must already exist (tagIds from get_tags; an unknown id is refused with UNKNOWN_TAG); this tool does not create tags. Free text goes into the template's TEXT fields (get_fields lists them, for example Expected Result); a template without a description field has no field for free text beyond the title.

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": {
      "project": "<project>",
      "title": "<title>",
      "folder": "<folder>"
    },
    "name": "create_test_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesTest case title.
folderYesFolder id to place the case in (required).
tagIdsNoOptional ids of existing tags (from get_tags); unknown ids are refused and no tag is created.
projectYesProject id to create the case in. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted.
estimateNoOptional estimate (e.g. '30m').
templateIdNoOptional template id.
fieldValuesNoCustom field values (e.g. priority, steps). Discover field ids/types/options with get_fields. Each item is { fieldId, value } where value is the field's JSON value (a string for selects like priority; a structured value for STEPS fields, e.g. [{"step_1":"Do X","step_3":"Expect Y"}]). Rich-text fields take plain text or a tiptap document ({type:"tiptap",version:1,doc:{type:"doc",content:[...]}}); valueHtml is optional and is rendered from the document when omitted. Each value must fit its field type (INTEGER a whole number, FLOAT a number, DATE "YYYY-MM-DD", CHECKBOX true/false, DROPDOWN one option value or label, MULTI_SELECT an array of them); a value that does not fit is refused with a tool error naming the field. On update this is a patch: fields you omit keep their current value; send { fieldId, value: null } to clear one.
sourceReferenceNoOptional: link the new case to the external issue it was generated from. { systemType (e.g. LINEAR), externalUrl, externalId? }. The link is authored as COVERS, so the case counts as coverage for that issue (TES-343).
lifecycleStateIdNoOptional lifecycle state id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project / description
      Previous value: -"Project id to create the case in. Numeric id from get_projects (same as in the app URL); not the project name."New value: +"Project id to create the case in. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted."
  2. Changed1 schema field changed
    • changedInput schema / properties / tagIds / description
      Previous value: -"Optional tag ids."New value: +"Optional ids of existing tags (from get_tags); unknown ids are refused and no tag is created."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a non-destructive, non-idempotent, open-world write, and the description adds real behavior beyond that: unknown tag ids are refused with UNKNOWN_TAG, validation errors name the offending field, and tags are never implicitly created. It omits that repeated calls create duplicates (relevant given idempotentHint=false) and says nothing about what is returned.

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?

Front-loaded and dense with zero filler; the required/optional split and the dependency chain (folders → tags → fields) read in the order an agent needs them. The final sentence about free text in a template without a description field is slightly convoluted and the whole block would scan better as short clauses.

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 9-parameter nested write with no output schema, the description covers prerequisites, failure modes and field semantics thoroughly. The notable gap is the return value: nothing says whether the created case's id/key comes back, which an agent needs to chain into update_test_case or create_attachment_from_upload.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns above that by explaining cross-tool provenance for folder/tagIds/templateId and by warning that a template lacking a description field leaves no place for free text beyond the title. The estimate, lifecycleStateId and sourceReference nuances remain schema-only.

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 ('Create a test case') plus scope ('in a project'), then immediately splits required (project, title, folder) from optional (template, lifecycle state, estimate, tags) inputs. An agent can distinguish this from get_test_case/update_test_case without opening a schema.

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?

Strong prerequisite guidance: folder ids come from get_folders, tags must pre-exist (get_tags) and are not created here, and free text must go into the template's TEXT fields (get_fields). It does not, however, name any alternative tool or say when a caller should instead use update_test_case or a different creation path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.