plot_pie_chart
Generate a pie chart directly from a Teradata table to visualize proportions or share of a numeric column by category.
Instructions
Generate a pie chart that reads directly from a Teradata table — do NOT use base_readQuery to pre-fetch or aggregate data first. Specify the table in table_name, the category column in labels, and the numeric value column in column. Use when the user asks for proportions, shares, or how a total breaks down by category. For polar area charts, use plot_polar_chart. For time-series trends, use plot_line_chart.
PARAMETERS: table_name: Required Argument. Specifies the name of the table to generate the pie chart. Types: str
labels:
Required Argument.
Specifies the category column for labels.
Types: str
column:
Required Argument.
Specifies the numeric value column for the pie chart.
Types: strRETURNS: dict
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": {
"table_name": "<table_name>",
"labels": "<labels>",
"column": "<column>"
},
"name": "plot_pie_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | Required Argument. Specifies the numeric value column for the pie chart. Types: str | |
| labels | Yes | Required Argument. Specifies the category column for labels. Types: str | |
| table_name | Yes | Required Argument. Specifies the name of the table to generate the pie chart. Types: str |