An MCP server implementation for Azure Functions that provides tools for snippet management (save, retrieve) integrated with Azure AI Foundry agents
This server defines 3 tools with basic schemas and descriptions, but has significant gaps in description quality, parameter documentation, and error handling that prevent it from reaching production quality. Tool names are clear (hello_mcp, get_snippet, save_snippet) and follow verb-noun conventions. However, descriptions are extremely brief (10-19 chars for 2 of 3 tools, well below the baseline 194 chars), parameter descriptions are minimal, and there is no documented output schema. The save_snippet function has input validation but no error recovery guidance. The tools are exposed via Azure Functions with mcpToolTrigger decorators, making registration visible, but the definitions lack the depth needed for LLM optimization.
Retrieve a snippet by name.
Hello world.
Save a snippet with a name.
Descriptions are critically short (10-19 characters). Baseline for A+ tools is 194 chars; these fall far below the 50-200 char optimal range for LLM optimization. Tool selection suffers when descriptions lack context for WHEN and WHY to call the tool.
No output schemas documented. Tools return strings or JSON, but the LLM has no formal schema specifying field names, types, or structure. This forces the LLM to infer and parse unstructured responses, increasing hallucination risk.
Parameter descriptions are minimal or missing context. The 'snippetname' parameter lacks guidance on format, constraints (length, allowed characters), or relationship to the file path on Blob Storage. The 'snippet' parameter omits size limits and encoding expectations.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 51 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 41 | - | v1 |
Error handling lacks recovery guidance. save_snippet validates but returns generic errors ('No snippet name provided', 'No snippet content provided'). get_snippet will fail silently if the blob does not exist (file.read() will throw); no guidance on what to do next (e.g., 'Snippet not found. Create it with save_snippet()').
hello_mcp tool provides no practical value. Its description 'Hello world.' is a placeholder, not a real capability. It wastes the LLM's decision-making cycles when selecting tools. Remove or replace with a meaningful discovery tool (e.g., 'list_available_snippets').
No idempotency guarantee documented for save_snippet. If the LLM retries a save due to network ambiguity, will it overwrite the previous snippet or fail safely? Tools that modify state must declare idempotency behavior.
No chaining IDs in responses. If get_snippet succeeds, does it return metadata (e.g., created_date, size, version) that downstream tools might need? The current response is likely just the snippet content as a string, blocking composition with tools that might need snippet metadata.