---
url: /api/platform/platform-mcp/types/fn/type-class-tool-props.md
description: api documentation of ClassToolProps from @tsed/platform-mcp
---

## Usage

```typescript
import { ClassToolProps } from "@tsed/platform/platform-mcp/src/fn/defineTool";
```

> See [/packages/platform/platform-mcp/src/fn/defineTool.ts](https://github.com/tsedio/tsed/blob/v8.37.1/packages/platform/platform-mcp/src/fn/defineTool.ts#L0-L0).

## Overview

```ts
type ClassToolProps<Input, Output = unknown> = BaseToolProps<Input, Output> & {
    name?: string;
    token: Type | AbstractType<any>;
    propertyKey: string | symbol;
};
```

## Description

Configuration accepted when decorating class methods as MCP tools.

## name

```ts
name?: string;
```

## token

```ts
token: Type | AbstractType<any>;
```

## propertyKey

```ts
propertyKey: string | symbol;
```
