Skip to main content
Glama

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 later

  • section_hierarchy — like Auth > Login; missing nodes will be created when you call add_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

TableJSON Schema
NameRequiredDescriptionDefault
textYes
suite_idNo
project_idNo
section_idNo
house_styleNo
feature_titleNoUntitled feature
section_hierarchyNo
house_style_examplesNo
house_style_section_idNo
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool returns the spec, house-style anchors, target section, and an instructions block. It explains house-style matching and targeting modes. It does not mention any destructive actions or side effects, but as a fetch/prepare tool, this is acceptable.

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?

The description is well-structured with clear sections and bullet-like formatting. It is front-loaded with the main purpose. Slightly verbose, but every sentence adds value. Could be more concise, but still effective.

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?

Given 9 parameters, no output schema, and no annotations, the description provides substantial context. It explains the return content, the MCP-native pattern, targeting modes, house-style matching, and how to override defaults. It is fairly complete for a preparation tool.

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?

Schema description coverage is 0%, so the description must compensate. It adds significant meaning beyond the schema by explaining the purpose of section_id vs section_hierarchy, house_style, house_style_section_id, and the defaults. It also explains how the house_style_examples parameter works.

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 it fetches inputs for generating TestRail cases from a free-form spec, distinguishing it from siblings like prepare_cases_from_confluence and prepare_cases_from_jira. The verb 'Fetch' and resource 'inputs needed to generate TestRail cases' are specific and unambiguous.

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?

The description explains when to use the tool (to get inputs for case generation) and details targeting modes and house-style matching. It provides context on how to use it, but does not explicitly list when not to use it or contrast with all sibling tools. However, the guidance is sufficient for an agent to decide.

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/Sergey-Bl/testrail-mcp'

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