Skip to main content
Glama

Plan a chart from an analytical purpose

component_template_plan
Read-only

Recommends 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

NameRequiredDescriptionDefault
pageNoPage id, the name shown in the page list, or its number counted from 1
sizeNo공통 구조 전용 크기. 준비된 원본 디자인의 크기 변경에는 사용할 수 없습니다.
textsNo선택적 짧은 제목. 생략하면 준비된 기본 제목.
targetNo수정 계획일 때만 지정하며 두 ID 중 하나만 사용합니다. 생략하면 새로 추가할 계획입니다.
purposeYes사용자의 분석 목적: 추이 trend, 분류 비교 comparison, 비중 share, 핵심값 kpi, 상세표 detail, 관계 relationship, 요약 섹션 overview, 교차표 cross_tab.
sort_byNo공통 차트의 첫 정렬 필드 이름 또는 ID. 같은 필드를 여러 역할·집계로 사용하면 고유한 차트 표시 이름을 지정합니다. sort_ascending 생략 시 내림차순이며 dimension_order와 함께 지정하지 않습니다.
bindingsNo사용자가 원하는 필드와 집계를 역할에 연결합니다. 생략하면 필요한 역할과 소스 필드를 알려줍니다. 일반 측정항목은 집계를 명시하고 Auto 필드는 집계를 생략합니다.
positionNo선택적 위치. 공통 차트는 생략하면 기존 요소와 겹치지 않는 곳에 자동 배치합니다.
report_idYes대상 리포트 ID 또는 URL.
connectionNo아직 연결되지 않은 BigQuery 테이블·뷰·쿼리. data_source와 함께 지정할 수 없습니다. 연결 호출과 연결 후 재계획 입력을 반환합니다.
date_rangeNo기간 비교 디자인에는 필수입니다. 예: 2026-11-01..2026-11-03 또는 Last 7 days.
data_sourceNo대상 리포트에 연결된 데이터 소스 이름·별칭·ID.
template_idNo추천 기본값 대신 선택할 같은 목적의 공통 구조 ID.
field_formatsNoChart-level grouping and display patterns for selected fields. Does not change the data source.
common_optionsNo공통 구조의 분석·표현 옵션. compact 밀도, 배경, 표 표시 행 수 등을 지정하며 원본 디자인 경로에서는 사용할 수 없습니다.
sort_ascendingNo공통 차트 정렬 방향. sort_by를 함께 지정해야 하며 true는 오름차순입니다.
section_optionsNo공통 요약 섹션의 기간·분류 컨트롤과 KPI 표시 옵션.
calculated_fieldNo먼저 만들 계산 필드 한 개. 수식을 검사하고 생성 호출과 재계획 입력을 반환합니다. 새 소스도 필요하면 연결부터 진행합니다.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, and the description reinforces rather than contradicts this ("Planning never executes the returned calls", "write-free public-tool preflight"). It adds genuinely useful behavior beyond annotations: the needs_preparation contract, the refusal to invent source or field IDs, and the requirement that updates carry the complete desired configuration.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five sentences, each doing distinct work: purpose, precondition, preparation branch, failure branch, ready branch, plus a mutation constraint. It is front-loaded and free of filler, though several sentences are dense enough that an agent may need to re-read the outcome branching.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter planning tool with no output schema, the description compensates by spelling out the shape of each response state (needs_preparation, issues, ready plan containing the exact call). Combined with 100% schema coverage, an agent has what it needs to call this correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% across 18 parameters, so the schema carries the parameter burden and the baseline is 3. The description adds only scattered hints — that updates need the full configuration (relevant to target) and that it will not invent field IDs (relevant to bindings/calculated_field) — without explaining purpose, bindings, or connection semantics in its own text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource — "Recommends a common chart or overview section for an explicit analytical purpose and resolves its data roles" — which is far more than a restatement of the name. It is distinguishable from the inspect/list siblings by being a planning/return-a-call tool, though it never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description sets a clear precondition ("The client interprets natural language and confirms business definitions first") and describes three distinct outcome branches: needs_preparation with a prerequisite, issues for missing/ambiguous fields, and a ready plan. What is missing is explicit routing language naming an alternative tool when planning is not appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.