Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)]
  • 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, }
  • 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 )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BnJam/stac-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server