## Tool: `execute_sql`

Executes a SQL query against a Bigtable instance. The tool returns at least 10 MiB of the proto-serialized result set (or just one row if the size of the proto-serialized representation of the row exceeds 10 MiB). The RPC may return more than 10 MiB of proto-serialized result set for performance reasons.

To support dynamic routing (which directs requests to the region where your data resides), set the `x-goog-request-params` header in the HTTP request to `instance_name=<INSTANCE_NAME>`. The instance name is the fully qualified resource name (e.g., `projects/my-project/instances/my-instance`). It can be provided as-is (raw string) or URL-encoded (e.g., `projects%2Fmy-project%2Finstances%2Fmy-instance`).

The following code sample shows how to use `curl` to call the `execute_sql` MCP tool.

| Curl Request |
|---|
| ```bash curl --location 'https://bigtable.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "execute_sql", "arguments": { // Provide these details according to the MCP tool specification. } }, "jsonrpc": "2.0", "id": 1 }' ``` |

## Input Schema

Request message for Bigtable.ExecuteSql

### ExecuteSqlRequest

| JSON representation |
|---|
| ``` { "projectId": string, "instanceId": string, "appProfileId": string, "query": string, "viewParameters": { string: { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Value`) }, ... } } ``` |

| Fields ||
|---|---|
| `projectId` | `string` Required. The project ID (e.g., "my-project"). If not known from the context, the Agent should attempt to get the current project ID from the gcloud config by running `gcloud config get-value project`. If the attempt fails, prompt the user for the project ID. |
| `instanceId` | `string` Required. The instance ID within the project against which the query will be executed (e.g., just "myinstance" rather than "projects/myproject/instances/myinstance"). |
| `appProfileId` | `string` Optional. This value specifies routing for replication. If not specified, the `default` application profile will be used. |
| `query` | `string` Required. The SQL query string. |
| `viewParameters` | ``map (key: string, value: object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Value`))`` This map provides the runtime values returned by the VIEW_PARAMETERS() function calls, typically used for user-level scoping of data based on identity. The key is the name of the view parameter e.g. `user_id`, and the value is the parameter value e.g. `alice@example.com`. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

### ViewParametersEntry

| JSON representation |
|---|
| ``` { "key": string, "value": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Value`) } } ``` |

| Fields ||
|---|---|
| `key` | `string` |
| `value` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Value`)`` |

### Value

| JSON representation |
|---|
| ``` { "partial": boolean, "type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) }, // Union field `kind` can be only one of the following: "rawValue": string, "rawTimestampMicros": string, "bytesValue": string, "stringValue": string, "intValue": string, "boolValue": boolean, "floatValue": number, "timestampValue": string, "dateValue": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Date`) }, "arrayValue": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.ArrayValue`) } // End of list of possible types for union field `kind`. } ``` |

| Fields ||
|---|---|
| `partial` | `boolean` Output only. If a value is partial, it must be merged with one or more values in the right order to construct a complete value. The last partial value will have this set to `false`, indicating the value is complete. A partial value will never be nested within a non-partial value. A nested partial value can only appear as the last element in a collection. |
| `type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The verified `Type` of this `Value`, if it cannot be inferred. Read results will never specify the encoding for `type` since the value will already have been decoded by the server. Furthermore, the `type` will be omitted entirely if it can be inferred from a previous response. The exact semantics for inferring `type` will vary, and are therefore documented separately for each read method. When using composite types (Struct, Array, Map) only the outermost `Value` will specify the `type`. This top-level `type` will define the types for any nested `Struct' fields,`Array`elements, or`Map`key/value pairs. If a nested`Value`provides a`type\` on write, the request will be rejected with INVALID_ARGUMENT. |
| Union field `kind`. Options for transporting values within the protobuf type system. A given `kind` may support more than one `type` and vice versa. On write, this is roughly analogous to a GoogleSQL literal. The value is `NULL` if none of the fields in `kind` is set. If `type` is also omitted on write, we will infer it based on the schema. `kind` can be only one of the following: ||
| `rawValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a raw byte sequence with no type information. The `type` field must be omitted. A base64-encoded string. |
| `rawTimestampMicros` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a raw cell timestamp with no type information. The `type` field must be omitted. |
| `bytesValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a typed value transported as a byte sequence. A base64-encoded string. |
| `stringValue` | `string` Represents a typed value transported as a string. |
| `intValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a typed value transported as an integer. |
| `boolValue` | `boolean` Represents a typed value transported as a boolean. |
| `floatValue` | `number` Represents a typed value transported as a floating point number. Does not support NaN or infinities. |
| `timestampValue` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Represents a typed value transported as a timestamp. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `dateValue` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Date`)`` Represents a typed value transported as a date. |
| `arrayValue` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.ArrayValue`)`` Represents a typed value transported as a sequence of values. To differentiate between `Struct`, `Array`, and `Map`, the outermost `Value` must provide an explicit `type` on write. This `type` will apply recursively to the nested `Struct` fields, `Array` elements, or `Map` key/value pairs, which *must not* supply their own `type`. |
|   ||

### Type

| JSON representation |
|---|
| ``` { // Union field `kind` can be only one of the following: "bytesType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bytes`) }, "stringType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.String`) }, "int64Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Int64`) }, "float32Type": { object (`Float32`) }, "float64Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Float64`) }, "boolType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bool`) }, "timestampType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Timestamp`) }, "dateType": { object (`Date`) }, "aggregateType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Aggregate`) }, "structType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Struct`) }, "arrayType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Array`) }, "mapType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Map`) }, "protoType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Proto`) }, "enumType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Enum`) }, "geographyType": { object (`Geography`) }, "int32Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Int32`) } // End of list of possible types for union field `kind`. } ``` |

| Fields ||
|---|---|
| Union field `kind`. The kind of type that this represents. `kind` can be only one of the following: ||
| `bytesType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bytes`)`` Bytes |
| `stringType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.String`)`` String |
| `int64Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Int64`)`` Int64 |
| `float32Type` | ``object (`Float32`)`` Float32 |
| `float64Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Float64`)`` Float64 |
| `boolType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bool`)`` Bool |
| `timestampType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Timestamp`)`` Timestamp |
| `dateType` | ``object (`Date`)`` Date |
| `aggregateType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Aggregate`)`` Aggregate |
| `structType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Struct`)`` Struct |
| `arrayType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Array`)`` Array |
| `mapType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Map`)`` Map |
| `protoType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Proto`)`` Proto |
| `enumType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Enum`)`` Enum |
| `geographyType` | ``object (`Geography`)`` Geography |
| `int32Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Int32`)`` Int32 |
|   ||

### Bytes

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "raw": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Raw`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `raw` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Raw`)`` Use `Raw` encoding. |
|   ||

### Raw

| JSON representation |
|---|
| ``` { "escapeNulls": boolean } ``` |

| Fields ||
|---|---|
| `escapeNulls` | `boolean` If set, allows NULL values to be encoded as the empty string "". The actual empty string, or any value which only contains the null byte `0x00`, has one more null byte appended. |

### String

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_1`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_1`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "utf8Raw": { object (`Utf8Raw`) }, "utf8Bytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Utf8Bytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `utf8Raw (deprecated)` | ``object (`Utf8Raw`)`` > [!WARNING] > This item is deprecated! Deprecated: if set, converts to an empty `utf8_bytes`. |
| `utf8Bytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Utf8Bytes`)`` Use `Utf8Bytes` encoding. |
|   ||

### Utf8Bytes

| JSON representation |
|---|
| ``` { "nullEscapeChar": string } ``` |

| Fields ||
|---|---|
| `nullEscapeChar` | `string` Single-character escape sequence used to support NULL values. If set, allows NULL values to be encoded as the empty string "". The actual empty string, or any value where every character equals `null_escape_char`, has one more `null_escape_char` appended. If `null_escape_char` is set and does not equal the ASCII null character `0x00`, then the encoding will not support sorted mode. . |

### Int64

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_2`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_2`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "bigEndianBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.BigEndianBytes`) }, "orderedCodeBytes": { object (`OrderedCodeBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `bigEndianBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.BigEndianBytes`)`` Use `BigEndianBytes` encoding. |
| `orderedCodeBytes` | ``object (`OrderedCodeBytes`)`` Use `OrderedCodeBytes` encoding. |
|   ||

### BigEndianBytes

| JSON representation |
|---|
| ``` { "bytesType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bytes`) } } ``` |

| Fields ||
|---|---|
| `bytesType (deprecated)` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bytes`)`` > [!WARNING] > This item is deprecated! Deprecated: ignored if set. |

### Float64

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_3`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_3`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "bigEndianBytes": { object (`BigEndianBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `bigEndianBytes` | ``object (`BigEndianBytes`)`` Use `BigEndianBytes` encoding. |
|   ||

### Bool

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_4`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_4`)`` Specifies the encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "sentinelBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.SentinelBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `sentinelBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.SentinelBytes`)`` Required. Use `SentinelBytes` encoding. |
|   ||

### SentinelBytes

| JSON representation |
|---|
| ``` { // Union field `_true_value` can be only one of the following: "trueValue": string // End of list of possible types for union field `_true_value`. // Union field `_false_value` can be only one of the following: "falseValue": string // End of list of possible types for union field `_false_value`. } ``` |

| Fields ||
|---|---|
| Union field `_true_value`. `_true_value` can be only one of the following: ||
| `trueValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The value to use for `TRUE`. If unset, `TRUE` values cannot be encoded. A base64-encoded string. |
|   ||
| Union field `_false_value`. `_false_value` can be only one of the following: ||
| `falseValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The value to use for `FALSE`. If unset, `FALSE` values cannot be encoded. A base64-encoded string. |
|   ||

### Timestamp

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_5`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_5`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "unixMicrosInt64": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_2`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `unixMicrosInt64` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_2`)`` Encodes the number of microseconds since the Unix epoch using the given `Int64` encoding. Values must be microsecond-aligned. Compatible with: - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` |
|   ||

### Aggregate

| JSON representation |
|---|
| ``` { "inputType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) }, "stateType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) }, // Union field `aggregator` can be only one of the following: "sum": { object (`Sum`) }, "hllppUniqueCount": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.HyperLogLogPlusPlusUniqueCount`) }, "max": { object (`Max`) }, "min": { object (`Min`) }, "kllQuantiles": { object (`KllQuantiles`) } // End of list of possible types for union field `aggregator`. } ``` |

| Fields ||
|---|---|
| `inputType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` Type of the inputs that are accumulated by this `Aggregate`. Use `AddInput` mutations to accumulate new inputs. |
| `stateType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` Output only. Type that holds the internal accumulator state for the `Aggregate`. This is a function of the `input_type` and `aggregator` chosen. |
| Union field `aggregator`. Which aggregator function to use. The configured types must match. `aggregator` can be only one of the following: ||
| `sum` | ``object (`Sum`)`` Sum aggregator. |
| `hllppUniqueCount` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.HyperLogLogPlusPlusUniqueCount`)`` HyperLogLogPlusPlusUniqueCount aggregator. |
| `max` | ``object (`Max`)`` Max aggregator. |
| `min` | ``object (`Min`)`` Min aggregator. |
| `kllQuantiles` | ``object (`KllQuantiles`)`` KllQuantiles aggregator. |
|   ||

### HyperLogLogPlusPlusUniqueCount

| JSON representation |
|---|
| ``` { // Union field `_precision` can be only one of the following: "precision": integer // End of list of possible types for union field `_precision`. // Union field `_sparse_precision` can be only one of the following: "sparsePrecision": integer // End of list of possible types for union field `_sparse_precision`. } ``` |

| Fields ||
|---|---|
| Union field `_precision`. `_precision` can be only one of the following: ||
| `precision` | `integer` Optional. Precision for HyperLogLog++ algorithm. Valid values are between 4 and 24, inclusive. Defaults to 15. |
|   ||
| Union field `_sparse_precision`. `_sparse_precision` can be only one of the following: ||
| `sparsePrecision` | `integer` Optional. Sparse precision for HyperLogLog++ algorithm. Valid values are between precision and 25, inclusive, or 0 to disable sparse representation. Defaults to precision + 5. |
|   ||

### Struct

| JSON representation |
|---|
| ``` { "fields": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Field`) } ], "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_6`) } } ``` |

| Fields ||
|---|---|
| `fields[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Field`)`` The names and types of the fields in this struct. |
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_6`)`` The encoding to use when converting to or from lower level types. |

### Field

| JSON representation |
|---|
| ``` { "fieldName": string, "type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) } } ``` |

| Fields ||
|---|---|
| `fieldName` | `string` The field name (optional). Fields without a `field_name` are considered anonymous and cannot be referenced by name. |
| `type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of values in this field. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "singleton": { object (`Singleton`) }, "delimitedBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.DelimitedBytes`) }, "orderedCodeBytes": { object (`OrderedCodeBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `singleton` | ``object (`Singleton`)`` Use `Singleton` encoding. |
| `delimitedBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.DelimitedBytes`)`` Use `DelimitedBytes` encoding. |
| `orderedCodeBytes` | ``object (`OrderedCodeBytes`)`` User `OrderedCodeBytes` encoding. |
|   ||

### DelimitedBytes

| JSON representation |
|---|
| ``` { "delimiter": string } ``` |

| Fields ||
|---|---|
| `delimiter` | `string (https://developers.google.com/discovery/v1/type-format format)` Byte sequence used to delimit concatenated fields. The delimiter must contain at least 1 character and at most 50 characters. A base64-encoded string. |

### Array

| JSON representation |
|---|
| ``` { "elementType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) } } ``` |

| Fields ||
|---|---|
| `elementType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of the elements in the array. This must not be `Array`. |

### Map

| JSON representation |
|---|
| ``` { "keyType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) }, "valueType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) } } ``` |

| Fields ||
|---|---|
| `keyType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of a map key. Only `Bytes`, `String`, and `Int64` are allowed as key types. |
| `valueType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of the values in a map. |

### Proto

| JSON representation |
|---|
| ``` { "schemaBundleId": string, "messageName": string } ``` |

| Fields ||
|---|---|
| `schemaBundleId` | `string` The ID of the schema bundle that this proto is defined in. |
| `messageName` | `string` The fully qualified name of the protobuf message, including package. In the format of "foo.bar.Message". |

### Enum

| JSON representation |
|---|
| ``` { "schemaBundleId": string, "enumName": string } ``` |

| Fields ||
|---|---|
| `schemaBundleId` | `string` The ID of the schema bundle that this enum is defined in. |
| `enumName` | `string` The fully qualified name of the protobuf enum message, including package. In the format of "foo.bar.EnumMessage". |

### Int32

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_7`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_7`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "bigEndianBytes": { object (`BigEndianBytes`) }, "orderedCodeBytes": { object (`OrderedCodeBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `bigEndianBytes` | ``object (`BigEndianBytes`)`` Use `BigEndianBytes` encoding. |
| `orderedCodeBytes` | ``object (`OrderedCodeBytes`)`` Use `OrderedCodeBytes` encoding. |
|   ||

### Timestamp

| JSON representation |
|---|
| ``` { "seconds": string, "nanos": integer } ``` |

| Fields ||
|---|---|
| `seconds` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be between -62135596800 and 253402300799 inclusive (which corresponds to 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). |
| `nanos` | `integer` Non-negative fractions of a second at nanosecond resolution. This field is the nanosecond portion of the duration, not an alternative to seconds. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be between 0 and 999,999,999 inclusive. |

### Date

| JSON representation |
|---|
| ``` { "year": integer, "month": integer, "day": integer } ``` |

| Fields ||
|---|---|
| `year` | `integer` Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
| `month` | `integer` Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
| `day` | `integer` Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |

### ArrayValue

| JSON representation |
|---|
| ``` { "values": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Value`) } ] } ``` |

| Fields ||
|---|---|
| `values[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Value`)`` The ordered elements in the array. |

## Output Schema

Response message for Bigtable.ExecuteSql

### ExecuteSqlResponse

| JSON representation |
|---|
| ``` { "columns": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Output.Schema.ColumnMetadata`) } ], "rows": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.ArrayValue`) } ], "truncated": boolean } ``` |

| Fields ||
|---|---|
| `columns[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Output.Schema.ColumnMetadata`)`` The columns in the result set. |
| `rows[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.ArrayValue`)`` The rows in the result set wherein each row contains values with schema matching the `columns` field above. |
| `truncated` | `boolean` Whether the response is truncated. |

### ColumnMetadata

| JSON representation |
|---|
| ``` { "name": string, "type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the column. |
| `type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of the column. |

### Type

| JSON representation |
|---|
| ``` { // Union field `kind` can be only one of the following: "bytesType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bytes`) }, "stringType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.String`) }, "int64Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Int64`) }, "float32Type": { object (`Float32`) }, "float64Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Float64`) }, "boolType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bool`) }, "timestampType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Timestamp`) }, "dateType": { object (`Date`) }, "aggregateType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Aggregate`) }, "structType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Struct`) }, "arrayType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Array`) }, "mapType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Map`) }, "protoType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Proto`) }, "enumType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Enum`) }, "geographyType": { object (`Geography`) }, "int32Type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Int32`) } // End of list of possible types for union field `kind`. } ``` |

| Fields ||
|---|---|
| Union field `kind`. The kind of type that this represents. `kind` can be only one of the following: ||
| `bytesType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bytes`)`` Bytes |
| `stringType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.String`)`` String |
| `int64Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Int64`)`` Int64 |
| `float32Type` | ``object (`Float32`)`` Float32 |
| `float64Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Float64`)`` Float64 |
| `boolType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bool`)`` Bool |
| `timestampType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Timestamp`)`` Timestamp |
| `dateType` | ``object (`Date`)`` Date |
| `aggregateType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Aggregate`)`` Aggregate |
| `structType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Struct`)`` Struct |
| `arrayType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Array`)`` Array |
| `mapType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Map`)`` Map |
| `protoType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Proto`)`` Proto |
| `enumType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Enum`)`` Enum |
| `geographyType` | ``object (`Geography`)`` Geography |
| `int32Type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Int32`)`` Int32 |
|   ||

### Bytes

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "raw": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Raw`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `raw` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Raw`)`` Use `Raw` encoding. |
|   ||

### Raw

| JSON representation |
|---|
| ``` { "escapeNulls": boolean } ``` |

| Fields ||
|---|---|
| `escapeNulls` | `boolean` If set, allows NULL values to be encoded as the empty string "". The actual empty string, or any value which only contains the null byte `0x00`, has one more null byte appended. |

### String

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_1`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_1`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "utf8Raw": { object (`Utf8Raw`) }, "utf8Bytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Utf8Bytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `utf8Raw (deprecated)` | ``object (`Utf8Raw`)`` > [!WARNING] > This item is deprecated! Deprecated: if set, converts to an empty `utf8_bytes`. |
| `utf8Bytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Utf8Bytes`)`` Use `Utf8Bytes` encoding. |
|   ||

### Utf8Bytes

| JSON representation |
|---|
| ``` { "nullEscapeChar": string } ``` |

| Fields ||
|---|---|
| `nullEscapeChar` | `string` Single-character escape sequence used to support NULL values. If set, allows NULL values to be encoded as the empty string "". The actual empty string, or any value where every character equals `null_escape_char`, has one more `null_escape_char` appended. If `null_escape_char` is set and does not equal the ASCII null character `0x00`, then the encoding will not support sorted mode. . |

### Int64

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_2`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_2`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "bigEndianBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.BigEndianBytes`) }, "orderedCodeBytes": { object (`OrderedCodeBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `bigEndianBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.BigEndianBytes`)`` Use `BigEndianBytes` encoding. |
| `orderedCodeBytes` | ``object (`OrderedCodeBytes`)`` Use `OrderedCodeBytes` encoding. |
|   ||

### BigEndianBytes

| JSON representation |
|---|
| ``` { "bytesType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bytes`) } } ``` |

| Fields ||
|---|---|
| `bytesType (deprecated)` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Bytes`)`` > [!WARNING] > This item is deprecated! Deprecated: ignored if set. |

### Float64

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_3`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_3`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "bigEndianBytes": { object (`BigEndianBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `bigEndianBytes` | ``object (`BigEndianBytes`)`` Use `BigEndianBytes` encoding. |
|   ||

### Bool

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_4`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_4`)`` Specifies the encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "sentinelBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.SentinelBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `sentinelBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.SentinelBytes`)`` Required. Use `SentinelBytes` encoding. |
|   ||

### SentinelBytes

| JSON representation |
|---|
| ``` { // Union field `_true_value` can be only one of the following: "trueValue": string // End of list of possible types for union field `_true_value`. // Union field `_false_value` can be only one of the following: "falseValue": string // End of list of possible types for union field `_false_value`. } ``` |

| Fields ||
|---|---|
| Union field `_true_value`. `_true_value` can be only one of the following: ||
| `trueValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The value to use for `TRUE`. If unset, `TRUE` values cannot be encoded. A base64-encoded string. |
|   ||
| Union field `_false_value`. `_false_value` can be only one of the following: ||
| `falseValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The value to use for `FALSE`. If unset, `FALSE` values cannot be encoded. A base64-encoded string. |
|   ||

### Timestamp

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_5`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_5`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "unixMicrosInt64": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_2`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `unixMicrosInt64` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_2`)`` Encodes the number of microseconds since the Unix epoch using the given `Int64` encoding. Values must be microsecond-aligned. Compatible with: - Java `Instant.truncatedTo()` with `ChronoUnit.MICROS` |
|   ||

### Aggregate

| JSON representation |
|---|
| ``` { "inputType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) }, "stateType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) }, // Union field `aggregator` can be only one of the following: "sum": { object (`Sum`) }, "hllppUniqueCount": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.HyperLogLogPlusPlusUniqueCount`) }, "max": { object (`Max`) }, "min": { object (`Min`) }, "kllQuantiles": { object (`KllQuantiles`) } // End of list of possible types for union field `aggregator`. } ``` |

| Fields ||
|---|---|
| `inputType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` Type of the inputs that are accumulated by this `Aggregate`. Use `AddInput` mutations to accumulate new inputs. |
| `stateType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` Output only. Type that holds the internal accumulator state for the `Aggregate`. This is a function of the `input_type` and `aggregator` chosen. |
| Union field `aggregator`. Which aggregator function to use. The configured types must match. `aggregator` can be only one of the following: ||
| `sum` | ``object (`Sum`)`` Sum aggregator. |
| `hllppUniqueCount` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.HyperLogLogPlusPlusUniqueCount`)`` HyperLogLogPlusPlusUniqueCount aggregator. |
| `max` | ``object (`Max`)`` Max aggregator. |
| `min` | ``object (`Min`)`` Min aggregator. |
| `kllQuantiles` | ``object (`KllQuantiles`)`` KllQuantiles aggregator. |
|   ||

### HyperLogLogPlusPlusUniqueCount

| JSON representation |
|---|
| ``` { // Union field `_precision` can be only one of the following: "precision": integer // End of list of possible types for union field `_precision`. // Union field `_sparse_precision` can be only one of the following: "sparsePrecision": integer // End of list of possible types for union field `_sparse_precision`. } ``` |

| Fields ||
|---|---|
| Union field `_precision`. `_precision` can be only one of the following: ||
| `precision` | `integer` Optional. Precision for HyperLogLog++ algorithm. Valid values are between 4 and 24, inclusive. Defaults to 15. |
|   ||
| Union field `_sparse_precision`. `_sparse_precision` can be only one of the following: ||
| `sparsePrecision` | `integer` Optional. Sparse precision for HyperLogLog++ algorithm. Valid values are between precision and 25, inclusive, or 0 to disable sparse representation. Defaults to precision + 5. |
|   ||

### Struct

| JSON representation |
|---|
| ``` { "fields": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Field`) } ], "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_6`) } } ``` |

| Fields ||
|---|---|
| `fields[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Field`)`` The names and types of the fields in this struct. |
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_6`)`` The encoding to use when converting to or from lower level types. |

### Field

| JSON representation |
|---|
| ``` { "fieldName": string, "type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) } } ``` |

| Fields ||
|---|---|
| `fieldName` | `string` The field name (optional). Fields without a `field_name` are considered anonymous and cannot be referenced by name. |
| `type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of values in this field. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "singleton": { object (`Singleton`) }, "delimitedBytes": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.DelimitedBytes`) }, "orderedCodeBytes": { object (`OrderedCodeBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `singleton` | ``object (`Singleton`)`` Use `Singleton` encoding. |
| `delimitedBytes` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.DelimitedBytes`)`` Use `DelimitedBytes` encoding. |
| `orderedCodeBytes` | ``object (`OrderedCodeBytes`)`` User `OrderedCodeBytes` encoding. |
|   ||

### DelimitedBytes

| JSON representation |
|---|
| ``` { "delimiter": string } ``` |

| Fields ||
|---|---|
| `delimiter` | `string (https://developers.google.com/discovery/v1/type-format format)` Byte sequence used to delimit concatenated fields. The delimiter must contain at least 1 character and at most 50 characters. A base64-encoded string. |

### Array

| JSON representation |
|---|
| ``` { "elementType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) } } ``` |

| Fields ||
|---|---|
| `elementType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of the elements in the array. This must not be `Array`. |

### Map

| JSON representation |
|---|
| ``` { "keyType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) }, "valueType": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) } } ``` |

| Fields ||
|---|---|
| `keyType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of a map key. Only `Bytes`, `String`, and `Int64` are allowed as key types. |
| `valueType` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The type of the values in a map. |

### Proto

| JSON representation |
|---|
| ``` { "schemaBundleId": string, "messageName": string } ``` |

| Fields ||
|---|---|
| `schemaBundleId` | `string` The ID of the schema bundle that this proto is defined in. |
| `messageName` | `string` The fully qualified name of the protobuf message, including package. In the format of "foo.bar.Message". |

### Enum

| JSON representation |
|---|
| ``` { "schemaBundleId": string, "enumName": string } ``` |

| Fields ||
|---|---|
| `schemaBundleId` | `string` The ID of the schema bundle that this enum is defined in. |
| `enumName` | `string` The fully qualified name of the protobuf enum message, including package. In the format of "foo.bar.EnumMessage". |

### Int32

| JSON representation |
|---|
| ``` { "encoding": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_7`) } } ``` |

| Fields ||
|---|---|
| `encoding` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Encoding_7`)`` The encoding to use when converting to or from lower level types. |

### Encoding

| JSON representation |
|---|
| ``` { // Union field `encoding` can be only one of the following: "bigEndianBytes": { object (`BigEndianBytes`) }, "orderedCodeBytes": { object (`OrderedCodeBytes`) } // End of list of possible types for union field `encoding`. } ``` |

| Fields ||
|---|---|
| Union field `encoding`. Specifies which encoding to use. `encoding` can be only one of the following: ||
| `bigEndianBytes` | ``object (`BigEndianBytes`)`` Use `BigEndianBytes` encoding. |
| `orderedCodeBytes` | ``object (`OrderedCodeBytes`)`` Use `OrderedCodeBytes` encoding. |
|   ||

### ArrayValue

| JSON representation |
|---|
| ``` { "values": [ { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Value`) } ] } ``` |

| Fields ||
|---|---|
| `values[]` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Value`)`` The ordered elements in the array. |

### Value

| JSON representation |
|---|
| ``` { "partial": boolean, "type": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`) }, // Union field `kind` can be only one of the following: "rawValue": string, "rawTimestampMicros": string, "bytesValue": string, "stringValue": string, "intValue": string, "boolValue": boolean, "floatValue": number, "timestampValue": string, "dateValue": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Date`) }, "arrayValue": { object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.ArrayValue`) } // End of list of possible types for union field `kind`. } ``` |

| Fields ||
|---|---|
| `partial` | `boolean` Output only. If a value is partial, it must be merged with one or more values in the right order to construct a complete value. The last partial value will have this set to `false`, indicating the value is complete. A partial value will never be nested within a non-partial value. A nested partial value can only appear as the last element in a collection. |
| `type` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Type`)`` The verified `Type` of this `Value`, if it cannot be inferred. Read results will never specify the encoding for `type` since the value will already have been decoded by the server. Furthermore, the `type` will be omitted entirely if it can be inferred from a previous response. The exact semantics for inferring `type` will vary, and are therefore documented separately for each read method. When using composite types (Struct, Array, Map) only the outermost `Value` will specify the `type`. This top-level `type` will define the types for any nested `Struct' fields,`Array`elements, or`Map`key/value pairs. If a nested`Value`provides a`type\` on write, the request will be rejected with INVALID_ARGUMENT. |
| Union field `kind`. Options for transporting values within the protobuf type system. A given `kind` may support more than one `type` and vice versa. On write, this is roughly analogous to a GoogleSQL literal. The value is `NULL` if none of the fields in `kind` is set. If `type` is also omitted on write, we will infer it based on the schema. `kind` can be only one of the following: ||
| `rawValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a raw byte sequence with no type information. The `type` field must be omitted. A base64-encoded string. |
| `rawTimestampMicros` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a raw cell timestamp with no type information. The `type` field must be omitted. |
| `bytesValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a typed value transported as a byte sequence. A base64-encoded string. |
| `stringValue` | `string` Represents a typed value transported as a string. |
| `intValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents a typed value transported as an integer. |
| `boolValue` | `boolean` Represents a typed value transported as a boolean. |
| `floatValue` | `number` Represents a typed value transported as a floating point number. Does not support NaN or infinities. |
| `timestampValue` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Represents a typed value transported as a timestamp. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `dateValue` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.Date`)`` Represents a typed value transported as a date. |
| `arrayValue` | ``object (`https://docs.cloud.google.com/bigtable/docs/reference/data/mcp/tools_list/execute_sql#Input.Schema.ArrayValue`)`` Represents a typed value transported as a sequence of values. To differentiate between `Struct`, `Array`, and `Map`, the outermost `Value` must provide an explicit `type` on write. This `type` will apply recursively to the nested `Struct` fields, `Array` elements, or `Map` key/value pairs, which *must not* supply their own `type`. |
|   ||

### Timestamp

| JSON representation |
|---|
| ``` { "seconds": string, "nanos": integer } ``` |

| Fields ||
|---|---|
| `seconds` | `string (https://developers.google.com/discovery/v1/type-format format)` Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be between -62135596800 and 253402300799 inclusive (which corresponds to 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). |
| `nanos` | `integer` Non-negative fractions of a second at nanosecond resolution. This field is the nanosecond portion of the duration, not an alternative to seconds. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be between 0 and 999,999,999 inclusive. |

### Date

| JSON representation |
|---|
| ``` { "year": integer, "month": integer, "day": integer } ``` |

| Fields ||
|---|---|
| `year` | `integer` Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
| `month` | `integer` Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
| `day` | `integer` Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |

### Tool Annotations


[Tool annotations](https://modelcontextprotocol.io/specification/latest/schema#toolannotations) are sent to MCP clients to describe the basic risk of a given tool. Most clients treat these hints as untrusted, but they can be used to decide when a confirmation prompt might be sent to a user.


Along with the title string, the following boolean hints are defined as follows:

- `readOnlyHint`: If true, the tool doesn't modify its environment. Default: false.
- `destructiveHint`: If true, then the tool can perform destructive actions. If false, then the tool can only perform additive actions. Default: true.
- `idempotentHint`: If true, then calling the tool repeatedly with the same arguments will have no additional effect on its environment. Default: false.
- `openWorldHint`: If true, then the tool can interact with an 'open world' of external entities. If false, then the tool can only interact with internal entities. For example, a web search tool would be open world, while a memory tool would not be open world.

Destructive Hint: ❌ \| Idempotent Hint: ✅ \| Read Only Hint: ✅ \| Open World Hint: ❌