# trial-report-generate

`station__trial__trial-report-generate` · external (needs EXECUTION_BACKEND_URL configured) · domain `trial` · pv-relevance `pv-core`

Generate a CONSORT-style Markdown report for a completed trial.

> **Note:** This tool routes through an external execution backend. If `EXECUTION_BACKEND_URL` is unset on the server, calls return JSON-RPC error `-32603 "Tool execution backend not configured"`. Tools with `backend: native` execute in-process and are always callable.

## Agent metadata

- `idempotent`: unknown
- `read_only`: unknown
- `expected_latency_ms`: unknown (not yet contract-tested)
- `cost_tokens_estimate`: unknown

## Input schema

- `protocol_json` *string* (required) — Protocol as JSON (from trial_protocol_register)
- `results_json` *string* (required) — Endpoint results as JSON array (from trial_endpoint_evaluate calls)

## Example call

```json
POST /api/mcp
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "station__trial__trial-report-generate",
    "arguments": {
      "protocol_json": "",
      "results_json": ""
    }
  }
}
```

## Related

- [/tools](/tools) — all 3062 tools
- [/tools/trial__trial-report-generate](/tools/trial__trial-report-generate) — HTML page
- [/tools/trial__trial-report-generate/json](/tools/trial__trial-report-generate/json) — JSON form (agent-friendly)
- [/api/mcp](/api/mcp) — endpoint
- [/AGENTS.md](/AGENTS.md) — agent guide
