Outline page regions from chosen metrics and breakdowns
component_page_outlineProposes a report page layout with charts and tables for chosen metrics and breakdowns, selecting chart types by value count and returning ready-to-use page-add input.
Instructions
Proposes the titled regions of a report page for metrics and breakdown dimensions the caller has chosen, as ready component_page_add input. It reads how many values each breakdown has in the period and picks the chart form from that: a share ring with a table for a few values, ranked horizontal bars with a table for some, a paged table for many, and a heat-map cross table sized to its rows. It adds a KPI group with the first metric's trend. Charts by breakdown use the first metric; the other metrics appear as value columns in each breakdown table. A comparison goes to the KPIs only; a comparison line in the trend and change columns in tables are opt-in through include. It never chooses a metric, a breakdown, a comparison or an average line by itself, and lists the unused dimensions instead of adding them. Give page, header, tabs and design here to get a page_add value that component_page_add accepts unchanged. It does add other views of the same chosen metric - the KPI and trend overview, a share-of-total column in tables, a daily 100% stacked bar for short periods, and filters for the chosen breakdowns - each of which include can switch off; the result notes say what was added. Nothing is saved.
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>",
"date": "<date>",
"date_range": "<date_range>",
"metrics": "<metrics>"
},
"name": "component_page_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | 기간과 추이에 쓸 날짜 필드 이름 또는 ID. | |
| page | No | 구성할 빈 페이지. 지정하면 결과 page_add에 그대로 들어갑니다. | |
| tabs | No | component_page_add의 tabs와 같습니다. 지정하면 결과 page_add에 그대로 들어갑니다. | |
| cross | No | 교차표로 볼 분류 쌍. 열은 값이 8개 이하여야 합니다. | |
| trend | No | 추이를 그리는 방식. | |
| design | No | component_page_add의 design과 같습니다. 지정하면 결과 page_add에 그대로 들어갑니다. | |
| header | No | component_page_add의 header와 같습니다. 지정하면 결과 page_add에 그대로 들어갑니다. | |
| include | No | 도구가 기본으로 넣는 부분. 요청에 없으면 false로 끕니다. | |
| metrics | Yes | 사용자가 보려는 지표. 첫 지표가 추이와 분류별 구역의 기준입니다. 도구가 지표를 더하지 않습니다. | |
| replace | No | component_page_add의 replace와 같습니다. 이미 만든 페이지의 구성을 바꿀 때 지정하면 결과 page_add에 그대로 들어갑니다. | |
| report_id | Yes | 대상 리포트 ID 또는 URL. | |
| comparison | No | KPI 기간 비교. 예: Previous period. 지정할 때만 넣습니다. | |
| date_range | Yes | 고정 기간 YYYY-MM-DD..YYYY-MM-DD. 이 기간의 값 개수로 차트 형태를 정합니다. | |
| dimensions | No | 첫 지표를 나눠 볼 분류 필드. 생략하면 지표 현황 구역만 만들고 쓸 수 있는 분류를 알려줍니다. | |
| data_source | No | 대상 리포트에 연결된 데이터 소스 이름·별칭·ID. | |
| average_line | No | 추이에 평균 참조선을 넣습니다. 지정할 때만 넣습니다. | |
| comparison_label | No | 비교 값 옆 문구. |