This project is a Model Context Protocol (MCP) tool that helps users find the cheapest price for a product in nearby markets based on a natural language prompt that includes both product name and location.
This server has significant gaps in definition quality. While three tools are explicitly registered via @mcp.tool() decorators with docstrings, the descriptions lack depth and parameter documentation is minimal. Tool names are reasonable (verb_noun pattern), but parameter descriptions are generic one-liners. Output schemas are not documented, the tool signatures show return types but the actual response structure is not described. Error handling is present in code (try/except blocks return error strings) but error messages are generic ('Product not found', 'Location not found') without recovery guidance. The tool find_cheapest_product_by_location has concerning side effects (modifies global LATITUDE/LONGITUDE state) which is not disclosed in the description. No tool has comprehensive descriptions explaining WHEN to use each tool or dependencies between them.
Extracts location and product from the given natural language prompt, converts the location to coordinates, updates the global LATITUDE and LONGITUDE values, and finds the cheapest market offering that product.
Convert a written location into latitude and longitude using OpenStreetMap.
MCP tool to search for products by keywords and return a list of their name, price, and market using the current LATITUDE and LONGITUDE values.
Output schemas completely undocumented. Tools return complex structures (list of dicts, dict with lat/lon, etc.) but the response format is never described. LLMs cannot plan downstream actions without knowing response structure.
find_cheapest_product_by_location modifies global mutable state (LATITUDE, LONGITUDE) but this side effect is not disclosed in the tool description. This violates the state-mutation disclosure rule and can cause hidden coupling between sequential calls.
Parameter descriptions are minimal (1 sentence). 'Product keywords to search for' lacks format, example, or constraint guidance. 'Natural language prompt' does not document accepted patterns or example inputs.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 35 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 37 | - | v1 |
Error handling is generic with no recovery guidance. 'Product not found' does not suggest 'try a different keyword' or 'use get_coordinates_from_address first to set location'. 'Location not found' does not suggest available alternatives or correction.
Tool dependencies are not documented. get_market_product requires LATITUDE/LONGITUDE to be set, but this prerequisite is not mentioned. An LLM does not know to call get_coordinates_from_address first.
No pagination or result limiting. get_market_product calls an API with 'size: 24' hardcoded but does not expose page/limit parameters to the agent, and does not cap or document result size.
Tool descriptions do not explain WHEN to call each tool vs. others. When should an LLM call find_cheapest_product_by_location vs. get_market_product + get_coordinates_from_address separately?