get_supported_formats
Lists available file formats for accessing Hong Kong government open data on DATA.GOV.HK to help users identify compatible data types.
Instructions
Get a list of file formats supported by data.gov.hk
Returns: A list of supported file formats
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_open_data_hk/server.py:220-230 (handler)The handler function for the 'get_supported_formats' tool. It is decorated with @mcp.tool, which also serves as its registration in the FastMCP server. The function makes an API request to retrieve the list of supported file formats from data.gov.hk and returns them as a list of strings.@mcp.tool async def get_supported_formats() -> List[str]: """ Get a list of file formats supported by data.gov.hk Returns: A list of supported file formats """ result = await make_api_request(FILE_FORMATS_URL) return result.get("formats", [])