MCP server for querying Azure service pricing information, service families, product names, and calculating monthly costs
The server defines three tools with descriptions and input schemas present. However, execution quality is held back by incomplete descriptions (one truncated mid-sentence), redundant workflow ordering encoded in tool names and descriptions rather than composability, missing output schemas, absent error handling guidance, and no parameter descriptions in the schema definitions. Tool names follow verb-noun convention (list_, get_), which is good, but descriptions are verbose and include detailed workflow steps that should be implicit. Parameters lack individual descriptions in the JSON schema itself, only the descriptions in the tools' docstrings mention parameter intent. This forces LLMs to cross-reference and increases cognitive load.
[STEP 3] Get product names from a specific service family. This endpoint returns a list of product names (productName) that belong to the specified service family, without including all the complete details of each product. This is the THIRD STEP in the pricing query workflow: 1. First, get the list of service families with list_service_families 2. Then, get service names with get_service_names 3. Now, use this tool to get specific products 4. Finally, calculate monthly costs with get_monthly_cost Args: service_family (str): The service family to query (e.g. 'Compute', 'Storage', 'Networking') region (str): Azure region (default: 'westeurope') type (str, optional): Price type (e.g. 'Consumption', 'Reservation') service_name (str, optional): Service name to filter by (e.g. 'Virtual Machines', 'Storage Accounts') product_name_contains (str, optional): Filter products whose name contains this text (e.g. 'Redis', 'SQL') limit (int, optional): Maximum number of products to return (default: 0, which means no limit)
[STEP 2] Get all unique service names within a service family. This endpoint returns a list of all unique service names that belong to the specified service family. For the 'Compute' family, which has many results, an optimized strategy is used to limit overhead. This is the SECOND STEP in the pricing query workflow: 1. First, get the list of service families with list_service_families 2. Then, use this tool to get the service names within that family 3. Next,
[STEP 1] List all available service families in Azure. This endpoint returns the official list of service families available in Azure according to Microsoft's official documentation. This should be the FIRST STEP in the pricing query workflow: 1. First, get the list of service families with list_service_families 2. Then, get service names with get_service_names 3. Next, get products with get_products 4. Finally, calculate monthly costs with get_monthly_cost Official reference: https://learn.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices#supported-servicefamily-values Returns: dict: Dictionary with the list of service families and the total number of items
Tool description for get_service_names is truncated mid-sentence ('This is the SECOND STEP in the pricing query workflow:\n1. First, get the list of service families with list_service_families\n2. Then, use this tool to get the service names within that family\n3. Next,'). This violates the 10 - 1024 character requirement and leaves the LLM without complete context for when/why to use the tool.
Output schemas are not documented. The tools call external APIs and return dict objects, but the schema definitions do not include a 'returns' field or explicit output structure. LLMs cannot infer downstream field names (e.g., 'service_families', 'Items', 'NextPageLink') without documented output schemas. This forces LLMs to make assumptions about response structure.
Parameter descriptions in the JSON schema are minimal (10 - 50 chars) and lack formal constraints. E.g., 'service_family' is described as 'The service family to query (e.g. \'Compute\', \'Storage\', \'Networking\')', examples are provided in text instead of as an enum constraint. This violates the constrained-input pattern and invites hallucinated service family names.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 54 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 13 | - | v1 |
Tool descriptions encode workflow sequencing (STEP 1, STEP 2, STEP 3, STEP 4) that should be implicit in multi-tool composition. This is not a security or functional issue, but it adds ~60 tokens per tool and forces LLMs to parse prescriptive instructions instead of reasoning about when each tool is needed. Descriptions should state WHAT each tool does, not HOW to chain them.
Error handling is absent. The implementation includes try-except blocks and logs errors, but tool responses do not return structured error guidance. If an Azure API call fails, the error is logged but not returned as a user-actionable message. An LLM receives a raw exception or partial result with no indication of whether to retry, ask the user for clarification, or escalate.
Pagination is implemented in get_products (NextPageLink, max_pages=3) but not exposed as parameters. The function silently caps results to 3 pages (~120 items) without letting the LLM request more or fewer. The 'limit' parameter exists in the signature but is not reflected in the input schema, and the docs claim 'limit (int, optional): Maximum number of products to return' but the implementation does not filter by this limit after fetching.
Region parameter defaults to 'westeurope' but is not marked as optional in the schema (no 'default' field visible in the schema JSON). If an LLM omits it, the function defaults to westeurope without the LLM being informed of this choice, risking silent pricing discrepancies for other regions.