Skip to main content
Glama

ChartslibraryUI

Get chart source

get_source
Read-only

The full TypeScript source of a chart, to write into the project at components/charts/.tsx (the shared core installs with the 'core' slug). Free charts are open; Pro charts need the user's access key sent as 'Authorization: Bearer clui_…' in the MCP connection. Prefer the shadcn install command when a terminal is available.

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": {
      "slug": "<slug>"
    },
    "name": "get_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesChart slug, or 'core'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Well beyond what readOnlyHint/openWorldHint convey: it discloses the Pro auth requirement ('Authorization: Bearer clui_…' on the MCP connection), the file path where the payload belongs, and the special 'core' slug for the shared core. This is precisely the kind of precondition context the rubric credits. It does not address output size or failure modes when the key is missing, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with what is returned, then the destination path, then access rules, then the alternative. No filler and every clause carries distinct information.

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?

With one parameter, no output schema, and annotations covering the safety profile, the description supplies everything else an agent needs: payload nature, write destination, auth precondition, and an alternative install path. Nothing material is missing for correct invocation.

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 coverage is 100% and the schema already defines slug as 'Chart slug, or core'. The description still adds meaning by explaining that 'core' refers to the shared core install and by tying the slug to the output filename pattern, so it contributes beyond the structured field.

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

Purpose4/5

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

Names the concrete resource and payload: 'The full TypeScript source of a chart', plus the destination path pattern components/charts/<slug>.tsx. An agent can immediately tell this returns source code rather than chart metadata. It does not explicitly contrast with siblings like get_chart or list_charts, so a 5 is not warranted.

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?

'Prefer the shadcn install command when a terminal is available' gives an explicit alternative and the condition that selects it, which is exactly the routing guidance an agent needs. It also clarifies free vs Pro chart access. It stops short of stating when this tool is the wrong choice regardless of terminal, but the context is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.