Skip to main content
Glama

Outline page regions from chosen metrics and breakdowns

component_page_outline
Read-only

Proposes 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

NameRequiredDescriptionDefault
dateYes기간과 추이에 쓸 날짜 필드 이름 또는 ID.
pageNo구성할 빈 페이지. 지정하면 결과 page_add에 그대로 들어갑니다.
tabsNocomponent_page_add의 tabs와 같습니다. 지정하면 결과 page_add에 그대로 들어갑니다.
crossNo교차표로 볼 분류 쌍. 열은 값이 8개 이하여야 합니다.
trendNo추이를 그리는 방식.
designNocomponent_page_add의 design과 같습니다. 지정하면 결과 page_add에 그대로 들어갑니다.
headerNocomponent_page_add의 header와 같습니다. 지정하면 결과 page_add에 그대로 들어갑니다.
includeNo도구가 기본으로 넣는 부분. 요청에 없으면 false로 끕니다.
metricsYes사용자가 보려는 지표. 첫 지표가 추이와 분류별 구역의 기준입니다. 도구가 지표를 더하지 않습니다.
replaceNocomponent_page_add의 replace와 같습니다. 이미 만든 페이지의 구성을 바꿀 때 지정하면 결과 page_add에 그대로 들어갑니다.
report_idYes대상 리포트 ID 또는 URL.
comparisonNoKPI 기간 비교. 예: Previous period. 지정할 때만 넣습니다.
date_rangeYes고정 기간 YYYY-MM-DD..YYYY-MM-DD. 이 기간의 값 개수로 차트 형태를 정합니다.
dimensionsNo첫 지표를 나눠 볼 분류 필드. 생략하면 지표 현황 구역만 만들고 쓸 수 있는 분류를 알려줍니다.
data_sourceNo대상 리포트에 연결된 데이터 소스 이름·별칭·ID.
average_lineNo추이에 평균 참조선을 넣습니다. 지정할 때만 넣습니다.
comparison_labelNo비교 값 옆 문구.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint, while the description adds substantial behavioral detail: chart form is selected by breakdown cardinality, the first metric drives trend and breakdown charts, other metrics become value columns, comparisons affect KPIs unless opted into tables or trend, and several default views can be switched off via include. It also states what the tool will never infer and that result notes document what was added. This is consistent with the readOnly annotation and nothing is saved.

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?

The first sentence front-loads purpose and output, and the remaining details are relevant for a 17-parameter tool. However, the description is a dense single paragraph with many semicolon-linked clauses, which makes it harder to scan than a structured breakdown would be. It is not wasteful, but it could be clearer.

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 a complex tool with 17 parameters, nested objects, and no output schema, the description covers chart-selection logic, include defaults and opt-in behavior, what the tool will not choose on its own, pass-through fields, and result notes. Annotations already cover the safety profile, and the description carries the behavioral context needed to call the tool correctly.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning beyond individual schema entries: the first metric anchors the trend and breakdown sections, other metrics appear as value columns, comparison is directed to KPIs only, and page/header/tabs/design are pass-through values for page_add. The schema already documents many parameters in detail, so this is not maximally additive, but the cross-parameter relationships are useful.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Proposes the titled regions of a report page' as ready component_page_add input. It distinguishes itself from the eventual save tool by stating that nothing is saved and that it never chooses metrics, breakdowns, comparisons, or average lines itself. This makes the tool's role immediately clear.

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?

It explains the caller supplies chosen metrics and breakdowns and passes page, header, tabs, and design to get a page_add value that component_page_add accepts unchanged, which implies a pre-add outlining step. It also clarifies that unused dimensions are listed rather than added. It does not explicitly name when to choose this over other sibling tools, but the intended usage context is clear.

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