How to Write an Effective AI Prompt for MCP-Connected Traceability Tools 

Written by

Alexandra Rus

Date

Share this article

When it comes to traceability, the manual effort required in product development is extensive. Alongside product development, engineers must track dependencies across hundreds of requirements and test specifications, which not only consumes valuable engineering hours but also increases the risk of human error, especially on large-scale projects.

For this reason, traceability tools have become a popular element of most engineering workflows. And now, combined with AI-agents, the potential for streamlined daily workflows has gained yet another level. AI models are becoming the primary interface for engineering tools, which means that they now sit between engineers and live project data, so learning to speak their language is essential. 

However, while most engineers thrive on problem-solving, for many, writing for AI is a daunting task or incorrectly assumed to be akin to having a casual conversation. In recent years, AI models have become increasingly smart and what was initially a simple prompt, has evolved into complex tasks that AI models can perform independently with advantageous results. Now, unlocking the true potential of AI in traceability hinges of the accuracy of prompts and the kind of language employed, as you will read. 

Speak Like the System: Essential AI-Integration Vocabulary

Before writing prompts for traceability platforms like X-Trace, engineers and other team members need to understand the AI vocabulary they might encounter when working with AI models. 

The following are some of the most common words and phrases used in AI environments:

  • Machine Learning (ML) – a subset of AI focused on statistical algorithms that learn patterns of training data to make accurate predictions and decisions on new data.  


  • Large Language Model (LLM) – AI systems trained on vast amounts of data that can understand and generate human language.  


  • Generative AI – AI that creates new content (in the form of images, text, video, audio and code), rather than just analysing data.   


  • Multimodal AI - models that process and generate multiple types of data (such as text, images, audio and video) all at once. 


  • Model Context Protocol (MCP) – a standard that connects AI models to multiple tools and data sources.  


  • Prompt – the input from users or instructions provided to an AI model. 


  • Token – basic unit of data (most often text) that an AI model reads, processes and generates. 


  • AI Hallucination – incorrect or misleading information that AI models generate and present as facts.   


  • Retrieval Augmented Generation (RAG) - a technique that enables LLMs to retrieve relevant information from external data sources before generating an answer.  


  • Human-in-the-Loop – a risk mitigation control in regulated industries, where trained humans retain authority over high-risk agent actions. 


  • Agentic workflow – multistep AI-driven processes where agents call external tools, plan and orchestrate their actions dynamically to execute complex tasks.  


  • A2A – an open standard that allows AI agents to communicate safely across different frameworks.  

The Problem with Prompts

One of the biggest problems with using prompts is that they are vague instructions that often lack specificity. There are no guardrails to advise the agent on what they should do, a lack of reference and examples and zero guidance on how to format the output. 

In addition, LLM’s are trained to be conversational and probabilistic, but in highly regulated industries, plausibility is often not enough. Every trace link and coverage metric must be exact, which is a challenge to achieve with the way prompts currently work. Instead, engineers must bridge the gap between natural human language and rigid database schemas.

Linguistic Patterns: Language That Works vs Language That Fails

When writing prompts, language matters. In order to create reliable prompts that are accurate in their delivery, engineers must replace conversational language habits with high-precision engineering terms.  

Key points to remember: 

  1. Begin with a clear instruction, using command words like ‘Write,’ ‘Compile,’ ‘Analyse,’ ‘Extract’ and ‘Query,’ depending on your end goal. 


  2. Define the output format by clearly stating how you want the result to be structured. For example, ‘Present the data in 3 columns arranged alphabetically.’  


  3. Explicitly state whether the agent should just retrieve data or create/update data. 


  4. Be as specific as possible and provide examples and references (always reference specific project codes, baselines, requirement IDs, etc.). 


  5. Tell the AI model what to exclude or avoid, narrowing the scope so you only get the most targeted and relevant results. 


  6. Break complex workflows or tasks into smaller, sequential prompts rather than trying to fit everything into a single sentence. 

A prompt that fails to deliver is one which includes language does the exact opposite of the above. Terms are vague, multiple requests in a single sentence create confusion and conversational non-engineering language again, generates inaccurate and/ or partial results. 

An example of a weak prompt would be: 

Check if our braking requirements have test specs.  

However, with high-precision engineering language, this can easily be turned into the successful prompt below:  

Query project BRK-ECU-v4. List all functional safety requirements lacking a linked Verification_Test artefact. 

Granted, the second prompt requires a little longer, step-by-step thinking to construct. However, it undoubtedly saves time and confusion later on down the line. Processes like traceability are so intricate and complicated that it is important to ensure that each stage is completed as thoroughly as possible to ensure a streamlined overall workflow. And with AI now a central part of most tools on the market, how prompts are created is a key part of this flow. 

With practice, the skill of writing successful prompts will become second-nature, while teams determined to continue using conversational language, may need to circle back and rework prompts to achieve more accurate overall results.  

Download this infographic here

Prompt Structure Template for Traceability Integration

Since MCP integrations work with either ad-hoc user prompts or AI skills that trigger workflows in your traceability tool, engineers must use an effective structured framework to ensure they get the best results every time. 

Above, I showed you an example of a good prompt versus a poor one. Below, is an example template with prompt instructions that you can save for use and tailor to create your own series of effective prompts. Each prompt part has been expanded with reasoning to help you better understand how to put an effective prompt together.  

In a situation where engineers want to query live traceability data immediately: 

Prompts in X-Trace

Within Ingeni Solutions’ own requirement traceability tool, X-Trace, various workflows may be triggered simply through the use of keywords. The AI-agent involved recognises specific keywords in requests and triggers multi-step actions, such as parsing meeting minutes, generating peer-review feedback directly in X-Trace, creating linked Jira tickets and guiding you through issue resolution.

These pre-defined workflows serve as essential guardrails for AI agents by making sure the AI operates accurately and safely. A single prompt allows the agent to handle complex background orchestration, leaving you to simply review, confirm and approve the updates proposed. 

For example, if you use the keyword trigger setup-traceability-project and provide the agent with the necessary project information, the triggered workflow creates the project, generates default layers for your selected project type and assigns required team roles to clear safety checks. The workflow then establishes parent-child layer relationships to build the traceability hierarchy, creates an active baseline and sets it in progress to enable content creation. 

This workflow is powerful because it takes what is usually a multi-step project setup process and turns it into a streamlined conversation. Instead of manually going through multiple configuration steps before work can start, you give the system your requirements and it safely builds out the entire environment for you.  

Summary 

In conclusion, while the addition of AI-agents to traceability toolchains undoubtedly speeds up compliance, the accuracy and effectiveness of its delivery still relies on precise human input. It is no question that AI influence is spreading through engineering workflows. However, the teams with the greatest industry advantage are not those who own AI-intelligent tools, but who know how to use them effectively. That includes how to write accurate prompts, which is something that many engineers are still attempting to crack.

Right now, there is little guidance on how to successfully refine AI prompts in the engineering space. At Ingeni, through the creation of our own traceability tool, we understand that this advice is essential to not only ensure workflows are as streamlined as possible, but also that products are designed both, accurately and safely. After all, it is only when prompts are written effectively that it is possible to harness the true potential of the AI-agents in traceability.    

Share Blog