<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[agents](../../) / [Exports](../modules) / IRelayMcpOptions

# Interface: IRelayMcpOptions

## Hierarchy

- `IAbstractToolOptions`

  ↳ **`IRelayMcpOptions`**

## Table of contents

### Properties

- [logger](IRelayMcpOptions#logger)
- [eventService](IRelayMcpOptions#eventservice)
- [schema](IRelayMcpOptions#schema)
- [run](IRelayMcpOptions#run)

## Properties

### logger

• `Optional` **logger**: [`AbstractLogger`](AbstractLogger)

Optional logger for tool operations
Defaults to DEFAULT_ABSTRACT_LOGGER if not provided

#### Inherited from

IAbstractToolOptions.logger

#### Defined in

[packages/agents/src/abstracts/abstract-tool.ts:49](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-tool.ts#L49)

---

### eventService

• `Optional` **eventService**: [`IEventService`](IEventService)

Optional event service for unified event emission
If not provided, tool will operate silently without emitting events

The caller should provide an EventService configured with appropriate settings
(e.g., ownerPrefix='tool' for tool events)

**`Since`**

2.1.0

#### Inherited from

IAbstractToolOptions.eventService

#### Defined in

[packages/agents/src/abstracts/abstract-tool.ts:60](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-tool.ts#L60)

---

### schema

• **schema**: [`IToolSchema`](IToolSchema)

MCP schema describing this relay tool

#### Defined in

[packages/agents/src/tools/implementations/relay-mcp-tool.ts:20](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/tools/implementations/relay-mcp-tool.ts#L20)

---

### run

• **run**: (`parameters`: [`TToolParameters`](../modules#ttoolparameters), `ctx`: [`IRelayMcpContext`](IRelayMcpContext)) => `Promise`\<[`IToolResult`](IToolResult)\>

Relay executor that performs the actual work (e.g., create Robota agent and run).
Must not perform ownerPath inference; receives the augmented agent ownerPath.

#### Type declaration

▸ (`parameters`, `ctx`): `Promise`\<[`IToolResult`](IToolResult)\>

##### Parameters

| Name         | Type                                            |
| :----------- | :---------------------------------------------- |
| `parameters` | [`TToolParameters`](../modules#ttoolparameters) |
| `ctx`        | [`IRelayMcpContext`](IRelayMcpContext)          |

##### Returns

`Promise`\<[`IToolResult`](IToolResult)\>

#### Defined in

[packages/agents/src/tools/implementations/relay-mcp-tool.ts:25](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/tools/implementations/relay-mcp-tool.ts#L25)
