Skip to main content
Glama

hz_get_run_meta

Retrieve metadata for a specific run in the Horizon content aggregation pipeline to analyze data processing status and parameters.

Instructions

读取指定 run 的元数据。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYes

Implementation Reference

  • The handler function `hz_get_run_meta` which retrieves run metadata via the `service` utility and manages error handling and metrics.
    @mcp.tool()
    def hz_get_run_meta(run_id: str) -> dict[str, Any]:
        """读取指定 run 的元数据。"""
    
        started = perf_counter()
        try:
            data = service.get_run_meta(run_id)
            elapsed_ms = (perf_counter() - started) * 1000
            _record_metrics("hz_get_run_meta", ok=True, duration_ms=elapsed_ms)
            return _ok("hz_get_run_meta", data, duration_ms=elapsed_ms)
        except Exception as exc:
            elapsed_ms = (perf_counter() - started) * 1000
            payload = _err("hz_get_run_meta", exc, duration_ms=elapsed_ms)
            _record_metrics(
                "hz_get_run_meta",
                ok=False,
                duration_ms=elapsed_ms,

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/henry-insomniac/Horizon-mcp'

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