Skip to main content
Glama

basecoat_get_chart_blueprint

Read-onlyIdempotent

Fetch complete chart markup, CSS theme tokens, layout footprint, client options, and framework mount code for a chart blueprint ID or category, with optional token overrides.

Instructions

[STAGE 3: SYNTAX & STACKS] Retrieve complete chart markup, CSS theme tokens (--chart-1..5), layout footprint, client options, and framework mount code (vanilla, astro, react, vue, svelte) with optional theme token overrides for a specific chart blueprint ID or category. Next step: Call basecoat_quality_inspector to audit the assembled page.

Input Schema

NameRequiredDescriptionDefault
idNoAlias for chartId. Defaults to "area-default" if neither chartId nor id is provided.
nameNoAlias for chartId/name.
engineNoChart rendering engine (svg or apexcharts). Defaults to svg.svg
chartIdNoChart blueprint ID from basecoat_list_charts (e.g., area-default, area-stacked, bar-multiple, pie-donut, radar-default, radial-half, tooltip-default). Also accepts category name or keyword alias.
frameworkNoTarget framework mount generator (vanilla, astro, react, vue, svelte, html). When html or omitted, resolves to vanilla.
componentIdNoAlias for chartId/id.
environmentNoTarget environment (html, astro, react, vue, svelte). Defaults to html.html
themeTokensNoOptional CSS theme token overrides (e.g. { "var(--chart-1)": "var(--color-primary)" }).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.8.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive behavior, so the safety profile is covered. The description adds genuine behavioral value by specifying exactly what comes back (markup, tokens, layout footprint, per-framework mount code) and that theme overrides are optional.

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?

Two dense sentences with the stage tag and core payload front-loaded, ending with a next-step pointer. Every clause (tokens, layout, mount code) conveys content, though the enumeration is slightly heavy.

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

Completeness4/5

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

With no output schema, the description must describe returns, and it does so thoroughly (markup, theme tokens, layout footprint, client options, framework mount code). Combined with 100% schema coverage and clear pipeline positioning, only auth/limits context is absent, which is minor for a read-only tool.

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 coverage is 100%, so the schema carries the parameter burden including aliases and enum meanings. The description mentions 'chart blueprint ID or category' and per-framework mount code, which lightly maps to chartId and framework, but adds no syntax beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb ('Retrieve') and resource ('complete chart markup, CSS theme tokens, layout footprint, client options, and framework mount code') for a chart blueprint ID or category. The enumerated outputs make it distinguishable from basecoat_list_charts, which only lists blueprints rather than fetching their full markup.

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 '[STAGE 3: SYNTAX & STACKS]' tag and 'Next step: Call basecoat_quality_inspector' route the agent through the pipeline and imply this runs after selection. It doesn't explicitly state when-not-to-use or name basecoat_list_charts as the prerequisite, so guidance is clear but not exhaustive.

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