# convert

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

> Convert turns a SAFE or note into Shares at a priced round, at its cap or discount, whichever gives more Shares.

Convert turns a SAFE or note into [Shares](/business/nouns/share) at a priced round, at its cap or discount, whichever gives more Shares.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `instrument` | [Instrument](/business/nouns/instrument) | Yes | The SAFE or note. |
| `roundPrice` | `money` | Yes | The price per Share of the priced round. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `shares` | list of [Share](/business/nouns/share) | Yes | The Shares issued on conversion. |
| `instrument` | [Instrument](/business/nouns/instrument) | Yes | The Instrument, now converted. |

## Effects
- Emits [`Instrument.converted`](/business/events/Instrument.converted).
- Performed by the [Legal Lead](/agents/legal/legal-lead).
- One-way (money): it waits out its delay window, and runs in the `send` and `do` modes.
- Applies most-favored-nation terms when a later Instrument got better ones.

## 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. | [Instrument.convert](/business/nouns/instrument/convert) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | High: one-way, broad (money) |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | 1 business day, in which a watcher can pause, redirect or cancel it; then it runs. |
| Limit | The spend [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) or [Mandate](/business/nouns/mandate) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Convert the latest instrument.
```

**API**

```bash
curl -X POST https://api.sb/kilnbakery.com/instruments/instrument_1/convert \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"roundPrice":{"amount":9,"currency":"USD"}}'
```

```json
{
  "api": "https://api.sb/kilnbakery.com",
  "shares": [
    {
      "$id": "https://api.sb/kilnbakery.com/shares/share_1",
      "$type": "Share",
      "class": "common",
      "quantity": 1
    }
  ],
  "instrument": {
    "$id": "https://api.sb/kilnbakery.com/instruments/instrument_1",
    "$type": "Instrument",
    "kind": "safe",
    "status": "outstanding"
  },
  "action": {
    "$id": "https://api.sb/kilnbakery.com/actions/action_1",
    "operation": "Instrument.convert",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/kilnbakery.com/actions/action_1"
  }
}
```

**SDK**

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

const { shares, instrument } = await $.Instrument.convert({ instrument: 'instrument_1', roundPrice: { amount: 9, currency: 'USD' } })
```

**CLI**

```bash
npx startup-builder do Instrument.convert --json '{"instrument":"instrument_1","roundPrice":{"amount":9,"currency":"USD"}}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Instrument.convert({ instrument: 'instrument_1', roundPrice: { amount: 9, currency: 'USD' } })"
  }
}
```