Skip to main content
Glama

MCP Server Chart

Official
boxplot.ts1.56 kB
import { z } from "zod"; import { zodToJsonSchema } from "../utils"; import { AxisXTitleSchema, AxisYTitleSchema, BackgroundColorSchema, HeightSchema, PaletteSchema, TextureSchema, ThemeSchema, TitleSchema, WidthSchema, } from "./base"; const data = z.object({ category: z .string() .describe("Category of the data point, such as '分类一'."), value: z.number().describe("Value of the data point, such as 10."), group: z .string() .optional() .describe( "Optional group for the data point, used for grouping in the boxplot.", ), }); const schema = { data: z .array(data) .describe( "Data for boxplot chart, such as, [{ category: '分类一', value: 10 }] or [{ category: '分类二', value: 20, group: '组别一' }].", ) .nonempty({ message: "Boxplot chart data cannot be empty." }), style: z .object({ backgroundColor: BackgroundColorSchema, palette: PaletteSchema, texture: TextureSchema, }) .optional() .describe("Custom style configuration for the chart."), theme: ThemeSchema, width: WidthSchema, height: HeightSchema, title: TitleSchema, axisXTitle: AxisXTitleSchema, axisYTitle: AxisYTitleSchema, }; const tool = { name: "generate_boxplot_chart", description: "Generate a boxplot chart to show data for statistical summaries among different categories, such as, comparing the distribution of data points across categories.", inputSchema: zodToJsonSchema(schema), }; export const boxplot = { schema, tool, };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/antvis/mcp-server-chart'

If you have feedback or need assistance with the MCP directory API, please join our Discord server