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

> ## Agent Instructions
> Assistants connect to Parse over MCP at [https://agent.parse.gl/mcp](https://agent.parse.gl/mcp) (Streamable HTTP). With no sign-in it answers from Parse's public view (the numbers parse.gl's public pages show, up to 5 rows a list), starting with `check_brand`. Signed in with Parse, or sent a workspace key (`parse_mcp_…`), it works in the person's workspace, starting with `get_brief`. Scripts call the same tools over REST at `https://agent.parse.gl/v1/tools/<tool>`.
>
> ```bash
> npx parse-gl init
> ```
>
> To install just the skills: `npx skills add Parsegl/skills`.
> Every tool is also a POST to https://agent.parse.gl/v1/tools/<tool>; its OpenAPI description is https://agent.parse.gl/openapi.json.

# Authentication & workspaces

> Every way to authenticate with agent.parse.gl: public logged-out reads, OAuth scopes, workspace keys, brand-bound keys, and headless unclaimed workspaces.

Parse serves the same 16 tools over MCP (`https://agent.parse.gl/mcp`) and REST (`https://agent.parse.gl/v1/tools/<tool>`). Pick the lightest credential that fits your caller: no credentials for public lookups, OAuth for interactive assistants, workspace or brand-bound keys for scripts and CI, or an unclaimed workspace when an agent starts before a person signs in.

For an agent reading raw machine facts, the same contract lives at [/auth.md](https://parse.gl/auth.md).

## Authentication methods

| Method | Credential | Reaches | Best for |
| - | - | - | - |
| Logged out (public view) | None | Public lookups (`check_brand`, `resolve_ids`, `query_metrics`, `search_answers`, `search_cited_pages`), up to 5 rows/list, daily budgets | Quick checks before sign-in |
| OAuth sign-in | Browser consent via MCP client | Selected workspace with the signer's role and granted scope (`parse:dashboard:read` / `parse:dashboard:write`) | Claude, ChatGPT, Claude Code, Cursor, OpenCode, interactive CLI |
| Workspace key | `Authorization: Bearer parse_mcp_…` | One workspace, with the key's chosen access level (full or read-only) | Scripts, CI, Codex, cron jobs, headless agents |
| Brand-bound key | `Authorization: Bearer parse_mcp_…` | One workspace brand only; brand-scoped settings and spend tracking | Agencies isolating one client per assistant or pipeline |
| Unclaimed workspace | `Authorization: Bearer parse_uws_…` | Public view plus up to 100 staged `log_work` calls until claimed | Autonomous agents starting work with no human present yet |

## OAuth sign-in and scopes

MCP clients discover Parse's OAuth authorization server from `https://agent.parse.gl/.well-known/oauth-protected-resource/mcp`. Calling `get_brief` (or any tool outside the public view) while logged out returns HTTP 401 with an OAuth challenge so the client opens Parse's sign-in and workspace consent screen.

| Scope | Grants | Tools |
| - | - | - |
| `parse:dashboard:read` | Read workspace data, searches, metrics, and briefs | [`check_brand`](/docs/mcp/tools/check_brand), [`resolve_ids`](/docs/mcp/tools/resolve_ids), [`query_metrics`](/docs/mcp/tools/query_metrics), [`search_answers`](/docs/mcp/tools/search_answers), [`search_cited_pages`](/docs/mcp/tools/search_cited_pages), [`read_item`](/docs/mcp/tools/read_item), [`get_brief`](/docs/mcp/tools/get_brief), [`list_work`](/docs/mcp/tools/list_work), [`get_account`](/docs/mcp/tools/get_account) |
| `parse:dashboard:write` | Everything in read, plus workspace writes, tracking, settings, and paid checks inside the monthly budget | [`export`](/docs/mcp/tools/export), [`ask_ai_engines`](/docs/mcp/tools/ask_ai_engines), [`fetch_live_pages`](/docs/mcp/tools/fetch_live_pages), [`classify_items`](/docs/mcp/tools/classify_items), [`track`](/docs/mcp/tools/track), [`log_work`](/docs/mcp/tools/log_work), [`update_settings`](/docs/mcp/tools/update_settings) |

A call exceeding the granted scope returns `unauthorized`. Reconnect Parse in the client's connector settings and allow changes. OAuth sessions also unlock interactive [MCP Apps views](/docs/mcp-apps.md) when the client declares support.

## Workspace keys and brand-bound keys

Workspace members create keys on [Agents](https://parse.gl/app/agents). A key (`parse_mcp_…`) is shown once and sent as a bearer token on MCP or REST requests:

```bash theme={null}
export PARSE_API_KEY="<your-key>"
curl -s -X POST https://agent.parse.gl/v1/tools/get_brief \
  -H 'content-type: application/json' \
  -H "Authorization: Bearer $PARSE_API_KEY" \
  -d '{}'
```

* **Access levels and admin actions:** Each key is created with either full access or read-only access. A read-only key reaches only read tools and cannot write or spend credits. Admin-gated actions such as tracking the workspace's own brand ([`track`](/docs/mcp/tools/track) with `own`) check the creating member's current admin role on each call. Revoking a key on [Agents](https://parse.gl/app/agents) stops it within a minute.
* **Brand-bound keys:** Bind a key to a single brand on Agents so an agency assistant or client automation can read, log work, and edit only that brand's facts, background, locations, service area, and monthly allowance. Workspace-level settings (brief, webhooks, workspace budget) stay out of reach, and [`get_account`](/docs/mcp/tools/get_account) breaks down spend by brand. See [Agencies and local businesses](/docs/agencies.md).
* **Audit and hygiene:** Never paste a key into chat or commit it to git. Pass keys via `PARSE_API_KEY` or secret storage. Every tool call is recorded with its key label in [`get_account`](/docs/mcp/tools/get_account) (`view: "receipt"`). A mistyped or revoked key returns `unauthorized` rather than falling back to the public view.

## Headless unclaimed workspaces

When an autonomous agent needs to start work with no human available to sign in, it can mint a temporary unclaimed workspace with no credentials, stage work, and hand off a claim link when a person is ready.

**1. Mint an unclaimed workspace** (up to 10 per IP/day, idle workspaces expire after 14 days):

```bash theme={null}
curl -s -X POST https://agent.parse.gl/v1/workspaces \
  -H 'content-type: application/json' \
  -d '{}'
```

Store the returned `parse_uws_…` key as a secret immediately: whoever holds it can initiate a claim. An unclaimed workspace reads Parse's public view, keeps the log\_work calls it is sent (list\_work returns them) and buys nothing; kept calls are filed into the work record when a person claims it. With no call for 14 days it is deleted. Or use the CLI: `npx parse-gl start`.

**2. Start a claim when a person provides their email:**

```bash theme={null}
curl -s -X POST https://agent.parse.gl/v1/workspaces/claim \
  -H 'content-type: application/json' \
  -H "Authorization: Bearer parse_uws_…" \
  -d '{"email":"you@example.com"}'
```

Parse returns `{ claimUrl, code, codeExpiresAt, key }` (or run `npx parse-gl claim --email you@example.com`). Save the returned `parse_mcp_…` key as a secret right away; it is shown only in that response and activates once claimed.

* Hand the person both `claimUrl` and the 6-digit `code` (valid for 24 hours, invalidated after 5 wrong attempts). Parse never emails the code.
* On the claim page, the signed-in person enters the code and chooses whether the agent stays connected with full access, read-only access, or disconnected.
* A person claims it on Parse's claim page, signed in or signed up free with the address the agent named, by typing the code the agent showed them. The workspace key the claim start returned then works in their workspace with the access they choose, and the parse\_uws\_ key stops. Their workspace reads the 90-day Parse Index free, runs their brand's first check (its 20 buyer questions on ChatGPT and Google AI Mode), and checks it free every week on a panel of 8 questions. Add prepaid credits from \$20 for live checks, editor contacts, and daily tracking.

**3. Switch keys on handoff:** Keep sending the `parse_uws_…` key until it stops. When either the temporary key or the pending post-claim key is refused with `unauthorized`, read `keyState`:

| keyState | Key sent | Meaning & next step |
| - | - | - |
| `"pending"` | `parse_mcp_…` | You sent the post-claim key before the person finished claiming. Keep using the `parse_uws_…` key until it stops. |
| `"attempt_ended"` | `parse_mcp_…` | The 6-digit code expired or hit the wrong-attempt limit (the temporary `parse_uws_…` key stays active). Call `POST /v1/workspaces/claim` again for a fresh code and key. |
| `"claimed_connected"` | `parse_uws_…` | Claim succeeded and the person kept this agent connected. Switch to the saved `parse_mcp_…` key and call [`get_brief`](/docs/mcp/tools/get_brief). |
| `"claimed_not_connected"` | `parse_uws_…` | Claim succeeded, but the person chose not to keep this key connected. Stop retrying; the person will connect an assistant themselves. |
| `"expired"` | `parse_uws_…` | The unclaimed workspace expired after 14 idle days. Mint a new workspace if needed. |

## Related

* [Get started](/docs/get-started.md): step-by-step client setup and sign-in screens.
* [CLI & CI gate](/docs/cli.md): `login`, `logout`, `start`, `claim`, and `whoami` commands.
* [Rates and limits](/docs/limits.md#team): workspace admin, member, and assistant permissions.
* [/auth.md](https://parse.gl/auth.md): machine-readable auth protocol summary.


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