Demo MCP server for 'Building MCP on Entra' presentation — a company directory secured by Entra ID via EasyAuth + PRM
Three tools with clear verb-noun naming (search_employees, get_employee, whoami) and reasonable descriptions (90-150 chars). All tools have input schemas with Zod validation. However, parameter descriptions are minimal (e.g., 'Search term, matches against name, department, role, or location' lacks format/constraint details), output schemas are not documented, and error handling is basic. No pagination support despite search potentially returning many results. Tool descriptions lack WHEN/WHY guidance for LLM selection.
Get full details for a specific employee by their ID
Search the Contoso company directory by name, department, role, or location
Shows who is calling this MCP server, based on the Entra ID token validated by EasyAuth
Output schemas not documented. LLMs cannot infer what fields search_employees returns or how to chain results to get_employee. Baseline: 100% of A+ tools document return types.
search_employees lacks pagination (limit, offset, page_size). Mock data has 5 employees; production directory could have thousands. Returning all results wastes tokens and risks context window exhaustion.
Parameter descriptions are minimal and lack format/constraint guidance. 'Search term, matches against name, department, role, or location' does not specify case sensitivity, max length, or special character handling. Baseline: 94% of A+ tools have detailed param annotations.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | <=2025-11-25 | v2 |
Tool descriptions lack WHEN/WHY context for LLM selection. 'Search the Contoso company directory...' does not explain when to use search_employees vs get_employee, or what the LLM should do if search returns no results.
Error responses are text-only and lack recovery guidance. 'No employees found matching...' and 'Employee with ID not found' do not suggest next steps (e.g., 'Try a broader search term' or 'Call search_employees to find valid IDs').