prepare_cases_from_text
Prepares inputs for generating TestRail test cases from free-form specifications, including house-style anchors and target section details, to guide AI case creation.
Instructions
Fetch the inputs needed to generate TestRail cases from a free-form spec.
This is an MCP-native pattern: the server doesn't call an LLM. It returns the
spec, the house-style anchors, the target section, and an instructions block
that tells the calling Claude how to generate cases and where to push them.
Targeting modes:
section_id— push into an existing section ID latersection_hierarchy— likeAuth > Login; missing nodes will be created when you calladd_test_cases_bulk. Defaults come from TESTRAIL_PROJECT_ID and TESTRAIL_SUITE_ID env.
House-style matching (default on): the server pulls a few existing cases from
the target section (or a fallback populated section) so the calling Claude can
match the local tone, naming, and step granularity. Override the style source
with house_style_section_id to pull anchors from a different "golden" section.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| suite_id | No | ||
| project_id | No | ||
| section_id | No | ||
| house_style | No | ||
| feature_title | No | Untitled feature | |
| section_hierarchy | No | ||
| house_style_examples | No | ||
| house_style_section_id | No |