# get

URL: /business/nouns/dataset/get · Id: `verb:Dataset.get` · Call: `await $.Dataset.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 Dataset by id.

Get returns one [Dataset](/business/nouns/dataset) 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 Dataset. |
| `at` | `string` | No | A time or Version name: the record as it stood then. Unset: as it stands now. |

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

## 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. | [Dataset.get](/business/nouns/dataset/get) |

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

## Example

**Ask**

```text
Show me the latest dataset.
```

**API**

```bash
curl https://api.sb/kilnbakery.com/datasets/dataset_1 \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/kilnbakery.com",
  "$type": "Dataset",
  "$id": "https://api.sb/kilnbakery.com/datasets/dataset_1",
  "dataset": {
    "$id": "https://api.sb/kilnbakery.com/datasets/dataset_1",
    "$type": "Dataset",
    "name": "Kiln Bakery",
    "promise": "Bread out of the oven by 8 a.m.",
    "status": "draft"
  },
  "links": {
    "self": "https://api.sb/kilnbakery.com/datasets/dataset_1",
    "up": "https://api.sb/kilnbakery.com/datasets"
  }
}
```

**SDK**

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

const dataset = await $.Dataset.get({ id: 'dataset_1' })
```

**CLI**

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

**MCP**

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