# Tool programs: update, delete

URL: /code/mcp/tool/records-update · Id: `page:code/mcp/tool/records-update`

> The Tool Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for [Tool](/business/nouns/tool), one group of [Tool programs](/code/mcp/tool).

### Tool.update
Changes the given properties of a Tool. [Verb page](/business/nouns/tool/update?interface=mcp).

```text
do: return await $.Tool.update(input)
```

Emits `Tool.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Tool. |
| `name` | `string` | No | The `Noun.verb` name, such as `Contact.create`. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `tool` | [Tool](/business/nouns/tool) | Yes | The Tool. |

**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. | None. |

**Example**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Tool.update({ id: 'tool_aTLwY2cmRy', name: 'Leaseline' })"
  }
}
```

### Tool.delete
Deletes a Tool: a soft delete that keeps its history, undone by `Thing.restore`. [Verb page](/business/nouns/tool/delete?interface=mcp).

```text
do: return await $.Tool.delete(input)
```

Emits `Tool.deleted`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Tool. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `tool` | [Tool](/business/nouns/tool) | Yes | The Tool. |

**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. | None. |

**Example**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Tool.delete({ id: 'tool_aTLwY2cmRy' })"
  }
}
```