hz_get_run_summary
Retrieve summary content for a specific run in the Horizon content aggregation and analysis pipeline. Use this tool to access processed data summaries by providing a run identifier.
Instructions
读取指定 run 的摘要内容。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| language | No | zh |
Implementation Reference
- horizon_mcp/server.py:357-375 (handler)The tool hz_get_run_summary is registered using the @mcp.tool() decorator and implemented in server.py, calling the service.get_run_summary helper method.
@mcp.tool() def hz_get_run_summary(run_id: str, language: str = "zh") -> dict[str, Any]: """读取指定 run 的摘要内容。""" started = perf_counter() try: data = service.get_run_summary(run_id=run_id, language=language) elapsed_ms = (perf_counter() - started) * 1000 _record_metrics("hz_get_run_summary", ok=True, duration_ms=elapsed_ms) return _ok("hz_get_run_summary", data, duration_ms=elapsed_ms) except Exception as exc: elapsed_ms = (perf_counter() - started) * 1000 payload = _err("hz_get_run_summary", exc, duration_ms=elapsed_ms) _record_metrics( "hz_get_run_summary", ok=False, duration_ms=elapsed_ms, error_code=payload["error"]["code"], )