> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCPListToolsNode

> MCP list tools node that lists available tools from an MCP server. This node connects to an MCP server and retrieves the list of available tools. It takes no inputs and returns a ListToolsResponseData containing all available tools.

## Input

**Type:** `any`

any - The data type that MCPListToolsNode accepts as input

## Output

**Type:** `GraphTypes.ListToolsResponse`

The data type that MCPListToolsNode outputs

## Examples

```typescript theme={"system"}
const mcpComponent = new MCPClientComponent({ id: 'my-mcp-component', sessionConfig: { ... } });
const mcpListToolsNode = new MCPListToolsNode({
mcpComponent,
reportToClient: true
});
```

## Constructors

* [constructor](#constructor)

## Interfaces

* [MCPListToolsNodeProps](#mcplisttoolsnodeprops)
* [MCPListToolsNodePropsWithComponent](#mcplisttoolsnodepropswithcomponent)

***

## Constructors

### constructor

```typescript theme={"system"}
new MCPListToolsNode(props: MCPListToolsNodeProps | MCPListToolsNodePropsWithComponent): MCPListToolsNode
```

Creates a new MCPListToolsNode instance.

#### Parameters

<ParamField body="props" type="MCPListToolsNodeProps | MCPListToolsNodePropsWithComponent" required>
  Configuration for the MCP list tools node.
</ParamField>

#### Returns

`MCPListToolsNode`

## Interfaces

### MCPListToolsNodeProps

#### Properties

**sessionConfig**: `Config`

MCP session configuration

**reportToClient**?: `boolean`

Whether to report results to a client

### MCPListToolsNodePropsWithComponent

Configuration interface for `MCPListToolsNode` creation.

#### Properties

**mcpComponent**: `MCPClientComponent`

Existing MCP component to use

**reportToClient**?: `boolean`

Whether to report results to a client
