# Module 5 Assignment error

**URL:** <https://community.deeplearning.ai/t/module-5-assignment-error/895704>\
**Category:** Agentic AI\
**Tags:** week-module-5, dl-ai-learning-platform\
**Created:** [October 15, 2026, 8:02pm UTC](https://community.deeplearning.ai/t/module-5-assignment-error/895704 "2026-10-15T20:02:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Dewitt](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/joe_dewitt/32/173069_2.png) [@Joe\_Dewitt](https://community.deeplearning.ai/u/Joe_Dewitt)\
**Post date:** [October 15, 2026, 8:02pm UTC](https://community.deeplearning.ai/t/module-5-assignment-error/895704/1 "2026-10-15T20:02:28Z")

</div>

While completing the module 5 graded assignment, I’m stuck testing the research agent. The call to unittests.test\_research\_agent(research\_agent) keeps returning this exception:

Failed test case: research\_agent raised NameError (return\_messages=False): name ‘is\_mcp\_config’ is not defined.  
Expected: no exception  
Got: name ‘is\_mcp\_config’ is not defined

I’ve gone through and carefully followed the instructions for defining the tools both in the prompt and also in the defined tools list, I continuously get the same error. Am I missing something?

---

<div class="post-metadata">

**Author:** ![Joe\_Dewitt](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/joe_dewitt/32/173069_2.png) [@Joe\_Dewitt](https://community.deeplearning.ai/u/Joe_Dewitt)\
**Post date:** [October 15, 2026, 8:28pm UTC](https://community.deeplearning.ai/t/module-5-assignment-error/895704/2 "2026-10-15T20:28:19Z")

</div>

Nevermind, I was indeed missing something.

I was trying to craft the objects in the tools array manually rather than just appending the actual research\_tools functions.

---

<div class="post-metadata">

**Author:** ![reinoudbosch](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@reinoudbosch](https://community.deeplearning.ai/u/reinoudbosch)\
**Post date:** [October 21, 2026, 10:40am UTC](https://community.deeplearning.ai/t/module-5-assignment-error/895704/3 "2026-10-21T10:40:33Z")

</div>

Closed on October 21, 2026, 10:40am UTC


