# get

URL: /business/nouns/deal/get · Id: `verb:Deal.get` · Call: `await $.Deal.get({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Returns one Deal by id.

Get returns one [Deal](/business/nouns/deal) by id. It is inherited: every [Noun](/business/nouns/noun) has `get`, `list`, `create`, `update` and `delete`.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Deal. |
| `at` | `string` | No | A time or Version name: the record as it stood then. Unset: as it stands now. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `deal` | [Deal](/business/nouns/deal) | Yes | The Deal. |

## Effects
- Reads only: it emits no Event and changes nothing.
- Read: `try`, `do`.

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | [Deal.get](/business/nouns/deal/get) |

## When it waits
Never: a read runs at once.

## Example

**Ask**

```text
Show me the latest deal.
```

**API**

```bash
curl https://api.sb/petpantry.shop/deals/deal_1 \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/petpantry.shop",
  "$type": "Deal",
  "$id": "https://api.sb/petpantry.shop/deals/deal_1",
  "deal": {
    "$id": "https://api.sb/petpantry.shop/deals/deal_1",
    "$type": "Deal",
    "status": "Open"
  },
  "links": {
    "self": "https://api.sb/petpantry.shop/deals/deal_1",
    "up": "https://api.sb/petpantry.shop/deals"
  },
  "actions": {
    "advance": "https://api.sb/petpantry.shop/deals/deal_1/advance",
    "assign": "https://api.sb/petpantry.shop/deals/deal_1/assign",
    "lose": "https://api.sb/petpantry.shop/deals/deal_1/lose"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const deal = await $.Deal.get({ id: 'deal_1' })
```

**CLI**

```bash
npx startup-builder do Deal.get --json '{"id":"deal_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Deal.get({ id: 'deal_1' })"
  }
}
```