Skip to main content
Glama
klar-mcp

klar-mcp

Official

Get one Klar chart

get_chart
Read-only

Fetch complete details for a specific chart by id or name, including props, data types, usage example, required files, npm packages, and import paths.

Instructions

Everything needed to use one chart: description, tags, its props (with comments) and data types taken from the component source, a usage example, the files and npm packages it needs, whether it is standalone, and for a bespoke chart the dashboard it belongs to. Accepts an id from list_charts, a short id ("candlestick"), a component name ("KaplanMeier") or a name.

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": {
      "id": "<id>"
    },
    "name": "get_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesChart id, e.g. "fin-candlestick", "sci-kaplan-meier", "spend-sankey"
target_dirNoInstall folder, used for the import paths in the examplesrc/klar

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

readOnlyHint=true already declares the safety profile, and the description goes beyond it by disclosing the shape and breadth of the payload, including the conditional case where a bespoke chart returns its parent dashboard. It does not describe error behavior for unresolvable ids, which is the main remaining gap.

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?

Two sentences, front-loaded with the payload summary before the accepted id forms. Dense but every clause names a distinct returned artifact, so nothing is filler.

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 carries the return-value burden and does so thoroughly, including the conditional dashboard field. Only the id-resolution failure mode and the handoff to install_chart are unaddressed for a two-parameter read tool.

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%, so the baseline is 3, and the description earns above that by expanding id semantics: it accepts a list_charts id, a short id like "candlestick", a component name like "KaplanMeier", or a plain name. target_dir is left to the schema, which documents it adequately as the install folder for import paths.

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?

The description states it retrieves a single Klar chart and enumerates exactly what comes back (props with comments, data types, usage example, files, npm packages, standalone flag, parent dashboard for bespoke charts). This clearly separates it from list_charts, which is named as the id source, though it never explicitly contrasts itself with the other get_* siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies the workflow by saying the id can come from list_charts, which is useful sequencing guidance. It gives no when-not-to-use guidance and does not say how this differs from get_dashboard or when to follow up with install_chart, so usage is only implied.

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