Skip to main content
Glama

Get Test Case

get_test_case

Retrieves test case details from QA Sphere using a project code and sequence marker, such as BDI-123. Provide a marker or URL to fetch the case information.

Instructions

Get a test case from QA Sphere using a marker in the format PROJECT_CODE-SEQUENCE (e.g., BDI-123). You can use URLs like: https://acme-corp.eu2.qasphere.com/project/%PROJECT_CODE%/tcase/%SEQUENCE%?any Extract %PROJECT_CODE% and %SEQUENCE% from the URL and use them as the marker.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
markerYesTest case marker in format PROJECT_CODE-TEST_CASE_SEQUENCE (e.g., BDI-123)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique identifier of the test case
posYesOrdered position (0-based) of the test case in its folder
seqYesSequence number of the test case within its project (assigned incrementally)
tagsNoList of test case tags
typeYesType of the test case. Known values: "standalone" | "template" | "filled"
filesYesList of files attached to the test case
linksYesAdditional links relevant to the test case
stepsNoList of test case steps
titleYesTitle of the test case
commentYesTest case precondition text (HTML). DEPRECATED — prefer the `precondition` object
isDraftYesWhether the test case is still in draft state
isEmptyYesWhether the test case is empty (has no precondition and steps)
versionYesVersion of the test case. Updates (except folder/pos) create a new version
authorIdYesUnique identifier of the user who added the test case
folderIdYesIdentifier of the folder where the test case is placed
legacyIdYesLegacy identifier of the test case (empty string if none is set)
priorityYesPriority of the test case. Known values: "high" | "medium" | "low"
createdAtYesTest case creation time (ISO 8601)
updatedAtYesTest case last-update time (ISO 8601)
customFieldsNoCustom field values
preconditionNoTest case precondition object (may be a shared or standalone precondition)
requirementsNoTest case requirements
isLatestVersionYesWhether this is the latest version of the test case
numFilledTCasesNoNumber of corresponding filled test cases (only for template test cases)
parameterValuesNoParameter substitutions for filled test cases (only for template test cases)
templateTCaseIdNoCorresponding template test case ID (only for filled test cases)
filledTCaseTitleSuffixParamsNoParameter names whose substituted values are appended to each filled test case title for disambiguation (only for template test cases).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv0.4.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / marker / description
      Previous value: -"Test case marker in format PROJECT_CODE-SEQUENCE (e.g., BDI-123)"New value: +"Test case marker in format PROJECT_CODE-TEST_CASE_SEQUENCE (e.g., BDI-123)"
    • changedInput schema / properties / marker / pattern
      Previous value: -"^[A-Z0-9]+-\\d+$"New value: +"^[A-Z0-9]{2,5}-\\d+$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "definitions": {
      +    "__schema0": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "deletedAt": {
      +          "description": "Date the step was deleted on (ISO 8601)",
      +          "type": "string"
      +        },
      +        "description": {
      +          "description": "Details of the step (HTML; only for standalone and shared_sub_step)",
      +          "type": "string"
      +        },
      +        "expected": {
      +          "description": "Expected result from the step (HTML; only for standalone and shared_sub_step)",
      +          "type": "string"
      +        },
      +        "id": {
      +          "description": "Unique identifier of the step",
      +          "type": "number"
      +        },
      +        "isLatest": {
      +          "description": "Whether this is the latest version of the step",
      +          "type": "boolean"
      +        },
      +        "subSteps": {
      +          "description": "Sub-steps of a shared step, each with type 'shared_sub_step' (present only on shared steps)",
      +          "items": {
      +            "$ref": "#/definitions/__schema0"
      +          },
      +          "type": "array"
      +        },
      +        "title": {
      +          "description": "Title of the step (only for shared steps)",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "Type of the step. Known values: \"standalone\" | \"shared\" | \"shared_sub_step\"",
      +          "type": "string"
      +        },
      +        "version": {
      +          "description": "Version of the step",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "version",
      +        "isLatest",
      +        "type"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "properties": {
      +    "authorId": {
      +      "description": "Unique identifier of the user who added the test case",
      +      "type": "number"
      +    },
      +    "comment": {
      +      "description": "Test case precondition text (HTML). DEPRECATED — prefer the `precondition` object",
      +      "type": "string"
      +    },
      +    "createdAt": {
      +      "description": "Test case creation time (ISO 8601)",
      +      "type": "string"
      +    },
      +    "customFields": {
      +      "additionalProperties": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "isDefault": {
      +            "description": "Whether the value is the default set by the system",
      +            "type": "boolean"
      +          },
      +          "value": {
      +            "description": "Current custom field value",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "value",
      +          "isDefault"
      +        ],
      +        "type": "object"
      +      },
      +      "description": "Custom field values",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "files": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "fileName": {
      +                "description": "Original file name",
      +                "type": "string"
      +              },
      +              "id": {
      +                "description": "File identifier",
      +                "type": "string"
      +              },
      +              "mimeType": {
      +                "description": "MIME type of the file",
      +                "type": "string"
      +              },
      +              "size": {
      +                "description": "File size in bytes",
      +                "type": "number"
      +              },
      +              "url": {
      +                "description": "URL of the file (missing for files uploaded via older routes)",
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "fileName",
      +              "mimeType",
      +              "size"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "List of files attached to the test case"
      +    },
      +    "filledTCaseTitleSuffixParams": {
      +      "description": "Parameter names whose substituted values are appended to each filled test case title for disambiguation (only for template test cases).",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "folderId": {
      +      "description": "Identifier of the folder where the test case is placed",
      +      "type": "number"
      +    },
      +    "id": {
      +      "description": "Unique identifier of the test case",
      +      "type": "string"
      +    },
      +    "isDraft": {
      +      "description": "Whether the test case is still in draft state",
      +      "type": "boolean"
      +    },
      +    "isEmpty": {
      +      "description": "Whether the test case is empty (has no precondition and steps)",
      +      "type": "boolean"
      +    },
      +    "isLatestVersion": {
      +      "description": "Whether this is the latest version of the test case",
      +      "type": "boolean"
      +    },
      +    "legacyId": {
      +      "description": "Legacy identifier of the test case (empty string if none is set)",
      +      "type": "string"
      +    },
      +    "links": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "text": {
      +                "description": "Title of the link",
      +                "type": "string"
      +              },
      +              "url": {
      +                "description": "URL of the link",
      +                "format": "uri",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "text",
      +              "url"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Additional links relevant to the test case"
      +    },
      +    "numFilledTCases": {
      +      "description": "Number of corresponding filled test cases (only for template test cases)",
      +      "type": "number"
      +    },
      +    "parameterValues": {
      +      "description": "Parameter substitutions for filled test cases (only for template test cases)",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "tcaseId": {
      +            "description": "ID of the filled test case",
      +            "type": "string"
      +          },
      +          "tcaseVersion": {
      +            "description": "Version of the filled test case",
      +            "type": "number"
      +          },
      +          "values": {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "description": "Parameter values substituted for this filled test case",
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "tcaseId",
      +          "tcaseVersion",
      +          "values"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "pos": {
      +      "description": "Ordered position (0-based) of the test case in its folder",
      +      "type": "number"
      +    },
      +    "precondition": {
      +      "additionalProperties": false,
      +      "description": "Test case precondition object (may be a shared or standalone precondition)",
      +      "properties": {
      +        "createdAt": {
      +          "description": "Precondition creation time (ISO 8601)",
      +          "type": "string"
      +        },
      +        "deletedAt": {
      +          "description": "Precondition deletion time (ISO 8601)",
      +          "type": "string"
      +        },
      +        "id": {
      +          "description": "ID of the precondition",
      +          "type": "number"
      +        },
      +        "isLatest": {
      +          "description": "Whether the precondition's version is the latest",
      +          "type": "boolean"
      +        },
      +        "projectId": {
      +          "description": "Project id the precondition belongs to",
      +          "type": "string"
      +        },
      +        "text": {
      +          "description": "Precondition text (HTML format)",
      +          "type": "string"
      +        },
      +        "title": {
      +          "description": "Title of the precondition (only for shared preconditions)",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "Type of the precondition. Known values: \"standalone\" | \"shared\"",
      +          "type": "string"
      +        },
      +        "updatedAt": {
      +          "description": "Precondition last-update time (ISO 8601)",
      +          "type": "string"
      +        },
      +        "version": {
      +          "description": "Version of the precondition",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "projectId",
      +        "id",
      +        "version",
      +        "isLatest",
      +        "type",
      +        "text",
      +        "createdAt",
      +        "updatedAt"
      +      ],
      +      "type": "object"
      +    },
      +    "priority": {
      +      "description": "Priority of the test case. Known values: \"high\" | \"medium\" | \"low\"",
      +      "type": "string"
      +    },
      +    "requirements": {
      +      "description": "Test case requirements",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "description": "Requirement identifier",
      +            "type": "string"
      +          },
      +          "text": {
      +            "description": "Title of the requirement",
      +            "type": "string"
      +          },
      +          "url": {
      +            "anyOf": [
      +              {
      +                "format": "uri",
      +                "type": "string"
      +              },
      +              {
      +                "const": "",
      +                "type": "string"
      +              }
      +            ],
      +            "description": "URL of the requirement"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "text",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "seq": {
      +      "description": "Sequence number of the test case within its project (assigned incrementally)",
      +      "type": "number"
      +    },
      +    "steps": {
      +      "description": "List of test case steps",
      +      "items": {
      +        "$ref": "#/definitions/__schema0"
      +      },
      +      "type": "array"
      +    },
      +    "tags": {
      +      "description": "List of test case tags",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "description": "Tag identifier",
      +            "type": "number"
      +          },
      +          "title": {
      +            "description": "Tag title",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "title"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "templateTCaseId": {
      +      "description": "Corresponding template test case ID (only for filled test cases)",
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "Title of the test case",
      +      "type": "string"
      +    },
      +    "type": {
      +      "description": "Type of the test case. Known values: \"standalone\" | \"template\" | \"filled\"",
      +      "type": "string"
      +    },
      +    "updatedAt": {
      +      "description": "Test case last-update time (ISO 8601)",
      +      "type": "string"
      +    },
      +    "version": {
      +      "description": "Version of the test case. Updates (except folder/pos) create a new version",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "legacyId",
      +    "version",
      +    "type",
      +    "title",
      +    "seq",
      +    "folderId",
      +    "pos",
      +    "priority",
      +    "comment",
      +    "files",
      +    "links",
      +    "authorId",
      +    "isDraft",
      +    "isLatestVersion",
      +    "isEmpty",
      +    "createdAt",
      +    "updatedAt"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations provided, so description bears full burden. Clearly a read operation (Get), no side effects implied. Does not mention authentication or rate limits, but for a simple get tool this is acceptable. The output schema exists, so return behavior is documented externally.

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?

Two concise sentences. First states purpose, second provides critical usage nuance (URL conversion). No wasted words; every sentence earned its place.

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?

Given simple tool (1 param, output schema present), description fully covers how to identify the test case. No gaps – the agent has all needed info to invoke correctly.

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

Parameters5/5

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

Single parameter (marker) with schema coverage 100%. Description adds significant value beyond schema by explaining the format and providing a real-world URL extraction example, making it easy for the agent to construct the parameter correctly.

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?

Clearly states 'Get a test case' with specific resource (test case) and verb (get). Distinguishes from siblings like create/update/list_test_cases by focusing on retrieval by marker. Includes the exact marker format and URL extraction, leaving no ambiguity.

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?

Describes how to use (via marker or URL), implicitly indicating when to use (when you have a marker) vs. alternatives for listing/searching. Lacks explicit exclusion statements but the specific retrieval context is clear.

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

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