MCP server for Lisbon Geodados portal — resources, tools, and prompts over Streamable HTTP
Server has 9 well-named tools with consistent verb_noun patterns (search_, get_, query_, list_, verify_, enrich_). All tools have descriptions (avg ~80 chars, within baseline 34-392). Input schemas are present with type definitions and parameter descriptions. However, output schemas are not documented in the visible code, critical for LLM planning. Error handling is minimal; no recovery guidance or categorization. Parameters lack constraints (enums, ranges, defaults). No tool annotations (readOnlyHint, destructiveHint). Composition is sound (single responsibility, chainable IDs), but descriptions could be more LLM-optimized per pattern:tool-description.
Attach Feature Service layer summaries to a catalog dataset.
Fetch a single Hub catalog dataset by ID.
Return the total feature count for a layer without fetching features.
Fetch and normalize FeatureServer service metadata.
Fetch and normalize metadata for a single layer.
Return distinct Hub categories, falling back to dataset tags when empty.
Query a feature layer, transparently paginating through result sets.
Output schemas not documented. LLMs cannot plan downstream tool calls or extract required fields (e.g., does search_catalog return dataset_id for get_dataset chaining?). Per pattern:tool, every tool must document return types.
No error handling guidance. Tools return raw API errors without recovery hints. Per pattern:recovery-guide, errors must tell LLMs what to do next (e.g., 'Dataset not found. Try search_catalog() with a partial name.').
Parameters lack constraints. 'max_results' and 'max_records' have no min/max bounds; 'where' clause accepts free-form SQL without injection guards. Per pattern:constrained-input, numeric params need ranges and SQL params need sanitization.
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Search the Hub catalog, transparently paginating through all pages.
Verify a download URL is reachable and return the final URL after redirects.
No tool annotations. Tools are marked READ_ONLY in metadata but lack readOnlyHint in schema. Per current spec (2026-07-28), tool annotations enable LLM safety reasoning.
list_categories has no input parameters but description is vague ('Return distinct Hub categories, falling back to dataset tags when empty'). Unclear when to call vs search_catalog. Per pattern:tool-description, discovery tools must explain what structure they reveal.