Example Prompts for the CDRouter MCP Server

Once your AI is connected to CDRouter through the CDRouter MCP server, you can ask it questions in plain language and it uses CDRouter to find the answer. This article lists example prompts for common tasks. Replace the result IDs, test numbers and names with your own.

What your AI reads, such as test logs, configs and device details, goes to wherever its model runs. Ask it only about things you are comfortable sharing with that model.

Writing Effective Prompts

These practices help your AI return more useful answers:

  • Say what you want back: “a three-line summary”, or “the most likely cause and the log lines that show it”.
  • Ask for line numbers. Your AI reads logs with their original line numbers, so you can open the same lines in the CDRouter log viewer and check its answer.
  • Start with one result or one test, then ask a follow-up. A focused question works better than “tell me everything about this result”.
  • Ask which tools it used if you want to see how it got its answer. Most AI clients show each request as it happens.
  • If your AI is connected to more than one CDRouter system, specify which one you mean, for example “On lab2, list my five most recent results.”

Example Prompts

Task Example prompt
Find out why a test failed Why did this test fail? Read the log, and check the test case and the testvars it uses.
Investigate a failed result Why did my most recent result fail?
Explain a start error What does the start error no-wan-dhcp-address mean and how do I fix it?
Compare results Which tests changed from pass to fail between the last two results of the package “basic”?
Look up a testvar or test What does the testvar acsPort do, and what values can it take?
Find tests for a topic Which tests cover DHCP lease renewal? Show me the details of the closest match.
Review a config Which testvars does config 54 set for the WAN side?
Build a config from a device This gateway does dual-stack with DHCPv6 prefix delegation. Build me a config and a package to test it.
Create a config Create a CDRouter config that uses eth7 as the WAN and eth9 as the LAN. Then summarize what you set.
Fix and rerun Set the testvar you suggested, rerun the package, and tell me if it passes.
Start a test run Start the package named “basic” and tell me the result ID.
Check what is running Is anything running right now?
Add a note to a log Add a note to line 214 of result 20261008160835, test 5, saying the device ignores the second DHCP discover.
Create a package Create a package named “quick-check” that uses config 54 and runs only cdrouter_basic_1.

Starting tests and creating configs, packages and devices require an administrator account. For more about notes on log lines, see How do I add annotations to logfiles?

See Also