MCP server for searching market product prices by location and keywords, with geocoding support
Server has 5 tools with basic schemas and descriptions, but significant quality gaps. Three tools (search_market_product, get_coordinates_from_address, get_market_product) are domain-focused; two (add, calculate) are placeholder utilities that should be removed. Schemas are present but descriptions are generic (avg 80 chars, below 194-char baseline). No output schemas documented. Error handling returns plain text without recovery guidance. Tool composition violates single-responsibility: get_market_product relies on global state (LATITUDE/LONGITUDE) set by get_coordinates_from_address, creating hidden dependencies. Parameter descriptions lack format/constraint details (e.g., distance in km, page numbering). No tool annotations (readOnlyHint, idempotentHint). Placeholder tools (add, calculate) dilute focus and should be removed before production.
Simple addition tool that adds two numbers
Calculator tool with multiple operations (add, subtract, multiply, divide)
Convert a location address string to geographic coordinates (latitude and longitude) using geocoding
Search for market products by keywords using previously set global coordinates (requires get_coordinates_from_address to be called first)
Search for market products by keywords and geographic coordinates with optional distance, pagination, and result size parameters
Global state coupling: get_market_product depends on LATITUDE/LONGITUDE set by get_coordinates_from_address. This hidden dependency violates single-responsibility and makes tools fragile. If coordinates are not set, tool fails with generic error.
No output schemas documented. Tools return text-wrapped JSON or plain text, but LLMs cannot parse structure without explicit schema. search_market_product returns {productName, price, marketName} but this is undocumented.
Placeholder tools (add, calculate) should not ship in production. They dilute the tool namespace and confuse LLMs about the server's purpose. Remove or move to a separate test server.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2026-07-28+ | v2 |
Error messages lack recovery guidance. Errors return plain text like 'Failed to search for products' or 'Location not set' without suggesting next steps. Per pattern:recovery-guide, errors should guide the LLM toward resolution.
Parameter descriptions lack format/constraint details. 'distance' says 'Search radius in kilometers' but does not specify valid range (e.g., 1-50 km). 'page' and 'size' lack bounds. LLMs may pass invalid values.