Skip to content

Commit e7b385e

Browse files
committed
add prompting tips
1 parent 10ca874 commit e7b385e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

exercises/05.prompts/README.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,17 @@ This exercise will introduce you to MCP's prompt capabilities, showing how to
9191
declare prompt support, register prompts with arguments, and return structured
9292
messages for downstream use.
9393

94+
## Prompting Tips
95+
96+
When designing prompts for your MCP server, consider these best practices:
97+
98+
- **Be specific and clear**: Use precise language and provide concrete examples when possible
99+
- **Structure your prompts**: Break complex tasks into clear steps or sections
100+
- **Include context**: Provide relevant background information that helps the model understand the task
101+
- **Use consistent formatting**: Maintain a consistent style across your prompts for better user experience
102+
- **Test and iterate**: Experiment with different prompt formulations to find what works best
103+
- **Consider edge cases**: Think about how your prompts might fail and provide fallback instructions
104+
105+
For a comprehensive survey of prompt engineering techniques and best practices, see [The Prompt Report: A Systematic Survey of Prompt Engineering Techniques](https://arxiv.org/abs/2406.06608) by Schulhoff et al., which provides detailed analysis of 58 LLM prompting techniques and guidelines for working with state-of-the-art language models.
106+
94107
- 📜 [MCP Prompts Specification](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts)

0 commit comments

Comments
 (0)