Skip to main content
Glama

get_metrics_catalog

Access the catalog of available metrics for time-series API calls within Fulcra Context MCP, enabling precise data retrieval for health, location, and other stored contextual information.

Instructions

Get the catalog of available metrics that can be used in time-series API calls (metric_time_series and metric_samples).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The primary handler function for the 'get_metrics_catalog' MCP tool. It is decorated with @mcp.tool() for registration and FastMCP inference of schema (no input params). Retrieves the metrics catalog via FulcraAPI.metrics_catalog() and returns it as prefixed JSON string.
    @mcp.tool() async def get_metrics_catalog() -> str: """Get the catalog of available metrics that can be used in time-series API calls (`metric_time_series` and `metric_samples`). """ fulcra = get_fulcra_object() catalog = fulcra.metrics_catalog() return "Available metrics: " + json.dumps(catalog)
  • Shared helper function used by the get_metrics_catalog handler (and all other tools) to obtain an authenticated FulcraAPI instance.
    def get_fulcra_object() -> FulcraAPI: global stdio_fulcra if settings.fulcra_environment == "stdio": if stdio_fulcra is not None: return stdio_fulcra else: stdio_fulcra = FulcraAPI() stdio_fulcra.authorize() return stdio_fulcra mcp_access_token = get_access_token() if not mcp_access_token: raise HTTPException(401, "Not authenticated") fulcra_token = oauth_provider.token_mapping.get(mcp_access_token.token) if fulcra_token is None: raise HTTPException(401, "Not authenticated") fulcra = FulcraAPI() fulcra.set_cached_access_token(fulcra_token) return fulcra

Other Tools

Related Tools

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/fulcradynamics/fulcra-context-mcp'

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