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
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes |
Implementation Reference
- horizon_mcp/server.py:313-329 (handler)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,