MCP Practice
Practice goal: design a documentation search capability as an MCP tool, then validate that common failure modes do not mislead the agent.
Task
Create a search_docs capability note with:
- Tool description.
- Input schema.
- Output schema.
- 3 success examples.
- 4 failure or boundary examples.
- Safety boundary notes.
Acceptance criteria
- Empty query does not search.
- Result count is capped.
- No-result responses include a next step.
- Results include source URLs.
- Errors do not reveal local paths, environment variables, or secrets.
Self-check
- Does this tool have side effects?
- Can the agent continue after an error?
- Is the response small enough for context?
- How does the Harness fail if the data source is unavailable?
Next: connect this tool through Workflow Orchestration and define regression checks in Evaluation and Quality.