field_discovery
Discover available fields (metrics and dimensions) for a data source. Only call if data_source_discovery config shows has_fields=true. Fields in a query must share a common report_type if the source uses report types.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ds_id": "<ds_id>"
},
"name": "field_discovery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ds_id | Yes | Data source ID from data_source_discovery (e.g. 'FA', 'AW', 'GAWA') | |
| filter | No | Case-insensitive filter against field ID, name, description, type, alias or report type. Comma-separated list of terms, e.g. 'click,impression'. | |
| compress | No | Always recommended. Encodes response as compact text, reducing size and token usage. In tables, an empty cell means not set and list values are |-joined. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| notes | No | ||
| success | Yes | ||
| business_context | No |