Skip to main content
Glama

MCP Server Chart

Official
liquid.ts1.54 kB
import { z } from "zod"; import { zodToJsonSchema } from "../utils"; import { BackgroundColorSchema, HeightSchema, TextureSchema, ThemeSchema, TitleSchema, WidthSchema, } from "./base"; const schema = { percent: z .number() .describe( "The percentage value to display in the liquid chart, should be a number between 0 and 1, where 1 represents 100%. For example, 0.75 represents 75%.", ) .min(0, { message: "Value must be at least 0." }) .max(1, { message: "Value must be at most 1." }), shape: z .enum(["circle", "rect", "pin", "triangle"]) .optional() .default("circle") .describe( "The shape of the liquid chart, can be 'circle', 'rect', 'pin', or 'triangle'. Default is 'circle'.", ), style: z .object({ backgroundColor: BackgroundColorSchema, texture: TextureSchema, color: z .string() .optional() .describe( "Custom color for the liquid chart, if not specified, defaults to the theme color.", ), }) .optional() .describe("Custom style configuration for the chart."), theme: ThemeSchema, width: WidthSchema, height: HeightSchema, title: TitleSchema, }; const tool = { name: "generate_liquid_chart", description: "Generate a liquid chart to visualize a single value as a percentage, such as, the current occupancy rate of a reservoir or the completion percentage of a project.", inputSchema: zodToJsonSchema(schema), }; export const liquid = { 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