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

# renameTool

```ts theme={null}
function renameTool(originalName, newName): Transform;
```

Defined in: [server/transform.ts:94](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/transform.ts#L94)

Rename a single tool. The original name still resolves at call time.

## Parameters

### originalName

`string`

### newName

`string`

## Returns

[`Transform`](/api/server/interfaces/Transform)
