get_conformance
Check server conformance classes to verify STAC API compliance and ensure compatibility with geospatial data standards.
Instructions
Return server conformance classes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- stac_mcp/tools/get_conformance.py:10-32 (handler)The primary handler function that executes the get_conformance tool logic: retrieves STAC conformance data using the client and formats the output as markdown text or JSON based on arguments.def handle_get_conformance( client: STACClient, arguments: dict[str, Any], ) -> list[TextContent] | dict[str, Any]: check = arguments.get("check") data = client.get_conformance(check) if arguments.get("output_format") == "json": return {"type": "conformance", **data} conforms_to = data.get("conformsTo", []) num_classes = len(conforms_to) result_text = f"**Conformance Classes ({num_classes})**\n\n" if conforms_to: result_text += "conformsTo:\n" for class_uri in conforms_to: result_text += f"- `{class_uri}`\n" checks = data.get("checks") if checks: result_text += "\n**Checks**\n" for class_uri, satisfied in checks.items(): result_text += ( f"- `{class_uri}`: {'Satisfied' if satisfied else 'Not Satisfied'}\n" ) return [TextContent(type="text", text=result_text)]
- stac_mcp/tools/execution.py:56-67 (registration)Internal registry of tool handlers in execution.py, mapping 'get_conformance' to its handler function._TOOL_HANDLERS: dict[str, Handler] = { "search_collections": handle_search_collections, "get_collection": handle_get_collection, "search_items": handle_search_items, "get_item": handle_get_item, "estimate_data_size": handle_estimate_data_size, "get_root": handle_get_root, "get_conformance": handle_get_conformance, "get_queryables": handle_get_queryables, "get_aggregations": handle_get_aggregations, "sensor_registry_info": handle_sensor_registry_info, }
- stac_mcp/server.py:29-34 (registration)MCP server-level registration of the get_conformance tool using FastMCP @app.tool decorator, delegating execution to the internal handler.@app.tool async def get_conformance() -> list[dict[str, Any]]: """Return server conformance classes.""" return await execution.execute_tool( "get_conformance", arguments={}, catalog_url=None, headers=None )