> ## Documentation Index
> Fetch the complete documentation index at: https://docs.garnet.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Read a public PR over MCP

> Retrieve the App result and exact job profile for a public pull request without a Garnet login or key.

Start with [clean onboarding PR #4](https://github.com/shennektog/garnet-clean-onboarding/pull/4#issuecomment-7182005806). This walkthrough reads the same App result and job record over Streamable HTTP. It does not install an agent or require a Garnet login.

## Read the PR result

Read the current PR head from GitHub. Call `pr_review` with the bare repository name and PR number. Use either `pullNumber` or `headSha`, not both. Require `status: finalized`, `bound_to_head: true`, usable capture and both `head_sha` and `marker_commit` matching the GitHub head.

```bash wrap theme={null}
curl --fail-with-body --silent --show-error \
  https://api.garnet.ai/api/v2/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pr_review","arguments":{"githubOrg":"shennektog","repo":"garnet-clean-onboarding","pullNumber":4}}}'
```

In the verified response, `status` was `finalized`, `bound_to_head` was `true`, and `head_sha` and `marker_commit` both matched `f4b8de650705a619f7287a6474f908f40899149a`. The result was `changed` with best-effort capture against the previous push. Read the linked App comment before interpreting that result: the new connection was not tied to a workflow step.

## Read the exact job record

Take the run ID and `profile` selector from the App comment's **Full record in Garnet** link, not from an unrelated workflow run.

```bash wrap theme={null}
curl --fail-with-body --silent --show-error \
  https://api.garnet.ai/api/v2/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  --data '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"profiles","arguments":{"githubOrg":"shennektog","repo":"garnet-clean-onboarding","runID":"45751607029","pageArgs":{"first":10}}}}'
```

Use an item only if its `id` exactly matches the linked selector and its `data.scenarios.github.head_sha` matches the current GitHub PR head. The top-level `sha` can be a test-merge commit. Follow `pageInfo.hasNextPage` with `pageArgs.after` as needed. If the ID or nested head is missing or does not match, do not use that profile; fall back to the finalized current-head App comment and report job detail unavailable. The verified response returned [profile `01a215fc-7172-7ef7-910b-e58a389d0c4f`](https://app.garnet.ai/public/runs/45751607029?profile=01a215fc-7172-7ef7-910b-e58a389d0c4f\&utm_source=docs.garnet.ai\&utm_medium=web\&utm_content=public-mcp-walkthrough) with the head above.

## Use it in a review

Cite the current head, App comment, comparison scope and capture quality. Separate workload connections from runner traffic. If the head has moved, read the new head instead. If the profile cannot be read, keep the finalized current-head App comment as the record and say that job detail is unavailable.

If you fix a connection, rerun CI and retrieve the record for the new head. See [who reads what](https://docs.garnet.ai/consume.md#who-reads-what) to choose a coding agent or hosted reviewer. A working public request does not establish access to private records.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.