> ## 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.

# PromptsAsTools

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

Expose registered prompts as a `list_prompts` tool.

## Implements

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

## Constructors

### Constructor

```ts theme={null}
new PromptsAsTools(): PromptsAsTools;
```

#### Returns

`PromptsAsTools`

## Methods

### synthesizeTools()

```ts theme={null}
synthesizeTools(_resources, prompts): SynthesizedTool[];
```

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

Synthesize additional tools derived from the current resource and prompt lists.
Called at request time so the snapshot is always fresh.

#### Parameters

##### \_resources

[`ResourceView`](/api/server/interfaces/ResourceView)\[]

##### prompts

[`PromptView`](/api/server/interfaces/PromptView)\[]

#### Returns

[`SynthesizedTool`](/api/server/interfaces/SynthesizedTool)\[]

#### Implementation of

[`Transform`](/api/server/interfaces/Transform).[`synthesizeTools`](/api/server/interfaces/Transform#synthesizetools)
