# Run and verify your first MCP read (/docs/developer/first-mcp-read)

[Connect your AI app](/docs/developer/mcp-quickstart) before you start. Start with a small search on an organization you recognize and open a conversation to check the result.

## At a glance [#at-a-glance]

| Check | What to look for |
| --- | --- |
| Organization | The organization ID you intended to query |
| Read permission | The account or key is allowed to make this read |
| Successful search | Up to three rows with matching status |
| No matches | An empty list and any explanation Sift returns |
| More matches | A cursor for the next page |
| Refused request | An error you can diagnose |

## What you're looking at [#what-youre-looking-at]

MCP connects an external AI app to Sift. Your account or key decides which Sift data the app can use. A request that says “read only” tells the assistant what to do. Permissions decide what the app can do.

## Select the organization [#select-the-organization]

- When you connect one organization, Sift uses that organization. Check its name before you use any result.
- When you connect **All organizations**, call `list_orgs` and find the organization ID. Pass it in the tool’s `org` field on each read. That keeps another chat from changing which organization this read uses.
- A new all-organizations connection has no active organization. If the tool asks you to choose one, give the ID for that call, or use `switch_org` if you want to change the connection’s active organization.

## Run a small search [#run-a-small-search]

1. Ask the client to read `sift.spec("query.search.actions")` using `execute` if the tool is available.
2. For a personal connection that can use several organizations, pass the following input to `execute`. Replace `YOUR_ORGANIZATION_ID` with the ID from `list_orgs`. For a connection to just one organization, you can omit `org`.

   ```json
   {
     "org": "YOUR_ORGANIZATION_ID",
     "code": "return await sift.call('query.search.actions', { filter: { filterType: 'status', operator: 'in', value: ['OPEN'] }, limit: 3 })"
   }
   ```

3. For an all-organizations connection, match the ID in the organization line to the ID you chose. Open a returned Sift link and check the case status. A short page of matches is a sample.

This example uses fictional values. The organization line identifies the workspace. The search output lists the cases.

```text
Organization: Example Support (YOUR_ORGANIZATION_ID)

{
  "items": [{
    "actionId": "EXAMPLE_CASE_ID",
    "siftUrl": "https://app.getsift.ai/example-case-link"
  }],
  "nextCursor": null
}
```

## Read the result or troubleshoot it [#read-the-result-or-troubleshoot-it]

| Result | What to do |
| --- | --- |
| `items` has rows | Open the row’s Sift link, such as `siftUrl` where returned. |
| `items` is empty | Read `emptyReason` if present. Check the organization, filters, and data the account can see. |
| `nextCursor` has a value | Use the cursor for the next page with the same filters if you need more rows. |
| Sign-in or `401` error | Sign in again or check that the configured key is valid. |
| Access refused or `403` error | Check organization selection, **Use MCP**, the operation’s permissions, and the key’s scope. Treat refusal separately from an empty result. |
| The client does not show `execute` | Check the tools available to your account and client. See [MCP troubleshooting](/docs/developer/mcp-connections#troubleshoot-a-connection). |

## Use a key for an unattended read [#use-a-key-for-an-unattended-read]

Use the [API keys guide](/docs/developer/api-keys) to choose a key with read access and keep it in your client’s secret settings. Organization keys depend on the organization’s MCP defaults. If you use a key linked to a service account, have an admin check its effective access. Verify the tool call even if the connection signs in. If the call is refused, troubleshoot the key and its permissions before you rely on it for a report.

## Tips [#tips]

- Use a scope you know has a matching case for your first check.
- Keep this check to a search. Reply drafts and changes have [separate approval rules](/docs/developer/mcp#understand-reads-and-changes).

## Related [#related]

<Cards>
  <Card href="/docs/developer/mcp-quickstart" title="Connect your AI app">Connect Claude, ChatGPT, Codex, or Cursor.</Card>
  <Card href="/docs/developer/mcp-connections" title="MCP connections">Choose authentication and troubleshoot access.</Card>
  <Card href="/docs/developer/mcp-reference" title="MCP field reference">Look up the exact tools and their result fields.</Card>
</Cards>
