Plan a chart from an analytical purpose
component_template_planRecommends a common chart or overview section for a specified analytical purpose and resolves its data roles, returning a ready add or update plan or clear prerequisites without executing changes.
Instructions
Recommends a common chart or overview section for an explicit analytical purpose and resolves its data roles. The client interprets natural language and confirms business definitions first. An explicit BigQuery connection or calculated_field returns needs_preparation with one validated prerequisite and a continuation to run after it succeeds; it does not invent future source or field IDs. Missing fields, ambiguous names or unspecified aggregations return issues without an executable chart call. Ready plans include the exact add or update call after a write-free public-tool preflight. Planning never executes the returned calls or infers business formulas. Updates require the complete desired configuration.
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>",
"purpose": "<purpose>"
},
"name": "component_template_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page id, the name shown in the page list, or its number counted from 1 | |
| size | No | 공통 구조 전용 크기. 준비된 원본 디자인의 크기 변경에는 사용할 수 없습니다. | |
| texts | No | 선택적 짧은 제목. 생략하면 준비된 기본 제목. | |
| target | No | 수정 계획일 때만 지정하며 두 ID 중 하나만 사용합니다. 생략하면 새로 추가할 계획입니다. | |
| purpose | Yes | 사용자의 분석 목적: 추이 trend, 분류 비교 comparison, 비중 share, 핵심값 kpi, 상세표 detail, 관계 relationship, 요약 섹션 overview, 교차표 cross_tab. | |
| sort_by | No | 공통 차트의 첫 정렬 필드 이름 또는 ID. 같은 필드를 여러 역할·집계로 사용하면 고유한 차트 표시 이름을 지정합니다. sort_ascending 생략 시 내림차순이며 dimension_order와 함께 지정하지 않습니다. | |
| bindings | No | 사용자가 원하는 필드와 집계를 역할에 연결합니다. 생략하면 필요한 역할과 소스 필드를 알려줍니다. 일반 측정항목은 집계를 명시하고 Auto 필드는 집계를 생략합니다. | |
| position | No | 선택적 위치. 공통 차트는 생략하면 기존 요소와 겹치지 않는 곳에 자동 배치합니다. | |
| report_id | Yes | 대상 리포트 ID 또는 URL. | |
| connection | No | 아직 연결되지 않은 BigQuery 테이블·뷰·쿼리. data_source와 함께 지정할 수 없습니다. 연결 호출과 연결 후 재계획 입력을 반환합니다. | |
| date_range | No | 기간 비교 디자인에는 필수입니다. 예: 2026-11-01..2026-11-03 또는 Last 7 days. | |
| data_source | No | 대상 리포트에 연결된 데이터 소스 이름·별칭·ID. | |
| template_id | No | 추천 기본값 대신 선택할 같은 목적의 공통 구조 ID. | |
| field_formats | No | Chart-level grouping and display patterns for selected fields. Does not change the data source. | |
| common_options | No | 공통 구조의 분석·표현 옵션. compact 밀도, 배경, 표 표시 행 수 등을 지정하며 원본 디자인 경로에서는 사용할 수 없습니다. | |
| sort_ascending | No | 공통 차트 정렬 방향. sort_by를 함께 지정해야 하며 true는 오름차순입니다. | |
| section_options | No | 공통 요약 섹션의 기간·분류 컨트롤과 KPI 표시 옵션. | |
| calculated_field | No | 먼저 만들 계산 필드 한 개. 수식을 검사하고 생성 호출과 재계획 입력을 반환합니다. 새 소스도 필요하면 연결부터 진행합니다. |