Best practices for MCP prompting

With the qTest MCP, you can integrate your LLM with tools that let you review and manage your testing process with natural language. For example, you can tell the AI to figure out what defects you should create from a failed test run, and it will do the legwork for you.

Effective prompting is key to getting the most out of your qTest MCP integration. This topic provides proven patterns, examples, and best practices for natural language interactions with your performance testing platform, along with any required information you may need to include in your prompts.

Prompt information

As you work with the MCP, you should organize your prompts like a funnel. Start with the broadest information first, so the AI can reference it throughout your session. However, to avoid expensive, resource-consuming queries, you should also know exactly where you want to start.

For example, when you start a session, first you need to access the project you want to work in. Just tell the AI, "Give me the details about project [ID number]." Then, the AI continues to reference this project in further interactions.

This can extend to requirements and test cases. If you ask the AI, "Give me all the test cases in project [ID number]," the AI will spend time and resources gathering all test cases. However, if you know what requirement you want to work with, you can ask the AI to "Give me all test cases attached to requirement [ID number]".

Locate ID numbers

Currently, you must reference project and object ID numbers to pull up specific objects with MCP tools. To find these, open up the object you want to work with in qTest, and take a look at the URL.

Your project ID is the first number in the URL, located after /p/, which specifies the project you're working with in your qTest instance. Your object ID is the second number, located after id=. This specifies the object you currently have open, whether its a requirement, module, test case, or something else.

For example, let's take a look at the following project URL: https://[sample].qtestnet.com/p/115973/portal/project#id=27374334.

In this case, the project ID is 115973, and the object ID is 27374334. This example is a requirement ID, but the object ID will remain in the same location across objects of all types.

You can also get the project ID from the MCP directly, when you retrieve a list of all projects in your qTest instance.

Available MCP actions

Once connected, you have access to these actions that you can use to interact with qTest.

If you are directly referencing a new project, or you want to pull up a specific object, you need to give the MCP the project or object ID number. If you've already referenced the project or object during your session, you don't need to include the ID number again.

Take a look at the dropdowns below to learn more about the tools you can use and how you can prompt them. Keep in mind that these prompts are an example. You can adjust and build on them to better meet your needs.

Core principles

Follow these fundamental principles to create effective MCP prompts and avoid common pitfalls:

Language guidelines

Follow these language guidelines for effective communication:

Project operations

Use these prompt patterns to navigate and learn more about your project:

Common workflow patterns

Use these workflow patterns for typical test case and defect creation scenarios:

Effective prompt patterns

Use these proven patterns to structure your prompts for better results:

Advanced techniques

Use these advanced techniques for more sophisticated interactions:

What's next?

Now that you understand MCP prompting best practices, you can connect qTest to the MCP.