Read data source rows
datasource_queryReads a bounded table of dimension and metric values from a report data source to inspect events and KPIs before designing charts, using a fixed date range and returning up to 500 rows.
Instructions
Reads a bounded table of dimension and metric values from a connected report data source without saving a chart or changing the report. Use it to discover collected events and inspect KPI values before designing charts. Give an explicit fixed date range and date field; specify metric aggregation unless the field is Auto. Returns at most 500 rows, not automatic pagination. Report/page filters and viewer controls are not applied. 64-bit integer columns remain strings to preserve precision; missing totals and quality guarantees are not invented.
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": {
"report_id": "<report_id>",
"data_source": "<data_source>",
"metrics": "<metrics>",
"date_range": "<date_range>",
"date_range_dimension": "<date_range_dimension>"
},
"name": "datasource_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 반환할 최대 행 수. 잘림 확인을 위해 서버에 한 행을 더 요청합니다. 자동 페이지 넘김은 없습니다. | |
| metrics | Yes | 조회할 측정항목과 집계. 업무상의 의미는 호출자가 확인합니다. | |
| report_id | Yes | Report id or its Looker Studio URL. | |
| date_range | Yes | 조회할 고정 기간 YYYY-MM-DD..YYYY-MM-DD. 시작일과 종료일 포함. | |
| dimensions | No | 묶어서 볼 측정기준 이름 또는 ID. GA4 이벤트 탐색은 Event name을 지정합니다. | |
| data_source | Yes | The data source: its alias as datasource_list shows it (ds1, ds2 …), its id, or its name (case ignored). Two sources with the same name need the alias. | |
| date_range_dimension | Yes | 기간을 적용할 Date 또는 Date & Time 필드 이름이나 ID. |