# get_decision

URL: https://codepanel.ai/docs/mcp-server/get_decision

The CodePanel MCP tool that fetches a single decision by id or short ref (D4), including rationale, citations and panel votes.

`get_decision` fetches a single decision by `id`, or by `repo` and short `ref` (such as `D4`). Returns the decision text, chosen option, rationale, citations, alternatives, confidence, reversibility, tier and models used, panel votes (if Tier 2 ran), and any owner override. Needs the `read` scope.

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | no | Decision id |
| `repo` | string | no | Repository as owner/name (with ref) |
| `ref` | string | no | Short decision ref such as "D4" (with repo) |

It only reads: the server marks it `readOnlyHint: true`, so clients that ask before a write can run it without asking.

## What the server tells your agent

> Fetch one decision by its id, or by repo and ref (e.g. "D4"). Returns the decision, rationale, citations, panel votes, and override state.
