# RegistrableServerTool
Source: https://docs.maelstrom-ai.co/dev/reference/engine/interfaces/registrableservertool/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:21](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L21)

A Server Tool with its input and output types erased so tools of different types share one list.

The agent loop is experimental in 0.3 and may change in any minor release.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

## Properties

### approval

> `readonly` **approval**: `"never"`

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:35](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L35)

Whether a call needs user approval before it runs.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### description

> `readonly` **description**: `string`

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:25](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L25)

Description shown to the model.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### input

> `readonly` **input**: `ZodType`<`unknown`\>

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:27](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L27)

Schema the model’s arguments are validated against.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### locus

> `readonly` **locus**: `"server"`

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:31](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L31)

Where the tool runs.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### name

> `readonly` **name**: `string`

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:23](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L23)

Name the model calls the tool by. Must match `^[A-Za-z0-9_-]{1,64}$`.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### output

> `readonly` **output**: `ZodType`<`unknown`\>

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:29](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L29)

Schema the tool’s result is validated against.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### sideEffect

> `readonly` **sideEffect**: `"idempotent"` | `"read_only"` | `"non_idempotent"`

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:33](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L33)

How the tool affects the world.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

## Methods

### execute()

> **execute**(`input`, `ctx`): `Promise`<`unknown`\>

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:37](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L37)

Runs the tool with validated input.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

#### Parameters

##### input

`never`

##### ctx

[`ServerToolContext`](https://docs.maelstrom-ai.co/dev/reference/engine/interfaces/servertoolcontext/)

#### Returns

`Promise`<`unknown`\>

* * *

### summarize()

> **summarize**(`output`): `string`

Defined in: [packages/engine/src/lib/agent-session/tool-registry.ts:39](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/engine/src/lib/agent-session/tool-registry.ts#L39)

Pure, synchronous, user-safe one-line description of a result.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

#### Parameters

##### output

`never`

#### Returns

`string`
