# update

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

> Changes the given properties of an Evaluator.

Update changes the given properties of an [Evaluator](/business/nouns/evaluator). 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 Evaluator. |
| `kind` | `string` | No | One of `code`, `generative`, `agentic`, or `human`. |
| `cascade` | `string[]` | No | Kinds tried in order when one declines, such as code, then a Human. |
| `instructions` | `text` | No | For a generative or agentic Function, what it does and how. |
| `model` | `string` | No | For a generative or agentic Function, the model it runs on. |
| `tools` | list of [Verb](/business/nouns/verb) | No | For an agentic Function, the Verbs it may call; Permissions and Limits apply to each. |
| `maxSteps` | `integer` | No | For an agentic Function, the most steps one Action may take. |
| `budget` | `money` | No | The most one Action may spend; the Mandate’s Limits apply as well. |
| `role` | [Role](/business/nouns/role) | No | For a human Function, the Role its Tasks go to. |
| `form` | `json` | No | For a human Function, the form; generated from the Verb’s inputs and outputs when absent. |
| `sla` | `string` | No | For a human Function, how long a Task may wait, as an ISO 8601 duration. |
| `escalateTo` | [Role](/business/nouns/role) | No | For a human Function, the Role a Task moves to when the service level passes. |
| `rubric` | `text` | No | What it grades against. An agent never varies its own Evaluators. Never randomized. |
| `integration` | [Integration](/business/nouns/integration) | No | The Integration whose outside run returns the verdict, such as a CI job; empty when the platform runs it. |
| `required` | `boolean` | No | True when `Change.merge` refuses until this Evaluator passes on the Change’s head. Never randomized. |

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

## Effects
- Emits `Evaluator.updated`.
- Two-way: `try`, `send`, `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. | [Evaluator.update](/business/nouns/evaluator/update) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Low: two-way, nothing at stake |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | None: it runs once review passes. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) 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
Change the latest evaluator.
```

**API**

```bash
curl -X PATCH https://api.sb/petpantry.shop/evaluators/evaluator_1 \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"integration":"integration_1"}'
```

```json
{
  "api": "https://api.sb/petpantry.shop",
  "evaluator": {
    "$id": "https://api.sb/petpantry.shop/evaluators/evaluator_1",
    "$type": "Evaluator",
    "kind": "code",
    "rubric": "Example rubric"
  },
  "action": {
    "$id": "https://api.sb/petpantry.shop/actions/action_1",
    "operation": "Evaluator.update",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/petpantry.shop/actions/action_1"
  }
}
```

**SDK**

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

const evaluator = await $.Evaluator.update({ id: 'evaluator_1', integration: 'integration_1' })
```

**CLI**

```bash
npx startup-builder do Evaluator.update --json '{"id":"evaluator_1","integration":"integration_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Evaluator.update({ id: 'evaluator_1', integration: 'integration_1' })"
  }
}
```