---
title: "Turn a sentence into a filter, as the builder"
description: "A small model call given the table's fields, example values and the current filter; returns the complete filter to apply, or a refusal in plain words."
canonical: "https://gtable.app/docs/builder-api/data/filters-suggest"
updated: "2026-10-05"
---

# Turn a sentence into a filter, as the builder

`POST https://studio.gtable.app/v1/apps/{appId}/tables/{tableId}/filters/suggest`

A small model call given the table's fields, example values and the current filter; returns the complete filter to apply, or a refusal in plain words.

Costs the organisation credits.

Requires the `records:read` scope. Operation `apps.filters.suggest`. MCP tool `apps_filters_suggest`. CLI, once published: `gtable apps filters suggest`.

## Path parameters

| Name      | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| `appId`   | string | yes      |             |
| `tableId` | string | yes      |             |

## Headers

| Name              | Type   | Required | Description                                                                                                                                                                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Idempotency-Key` | string | no       | Any unique string. Sending the same key with the same request again returns the first response (marked `Idempotency-Replayed: true`) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |

## Request body

| Field      | Type        | Required | Description           |
| ---------- | ----------- | -------- | --------------------- |
| `sentence` | string      | yes      | Up to 600 characters. |
| `current`  | FilterGroup | no       |                       |
