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

# CompletionResult

Defined in: [server/completion.ts:33](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/completion.ts#L33)

The paginated shape a completion callback MAY return for full control over the
`total` / `hasMore` hints. Mirrors the wire `CompleteResult.completion` object.
Returning a bare `string[]` instead is the common case.

## Properties

### hasMore?

```ts theme={null}
optional hasMore?: boolean;
```

Defined in: [server/completion.ts:39](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/completion.ts#L39)

Whether more matches exist beyond `values`.

***

### total?

```ts theme={null}
optional total?: number;
```

Defined in: [server/completion.ts:37](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/completion.ts#L37)

Total number of matches available, if larger than `values`.

***

### values

```ts theme={null}
values: string[];
```

Defined in: [server/completion.ts:35](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/completion.ts#L35)

Suggested values. Capped to 100 on the wire (the spec's maximum).
