Skip to main content
Glama
klar-mcp

klar-mcp

Official

Read a Klar source file

read_file
Read-only

Fetches the source of a kit or dashboard file so you can study or adapt it; use a path relative to the kit root.

Instructions

Returns the source of one kit or dashboard file, e.g. "components/charts/finance/Candlestick.tsx", "dashboards/orbit/index.tsx" or "klar.css". Imports use the "@/" alias for the kit root; the install tools rewrite them to relative paths. Use it to study or adapt a file, not to copy it by hand.

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": {
      "path": "<path>"
    },
    "name": "read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath relative to the kit root (get_chart and get_dashboard list them)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

readOnlyHint=true already establishes safety, so the description's job is to add context — and it does: it discloses that imports use the "@/" alias and that install tools rewrite them to relative paths, which materially affects how an agent should interpret the returned source. It omits edge behavior (invalid paths, very large files, truncation), keeping it from 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 tight sentences: purpose and examples first, then the alias/rewrite caveat, then the usage directive. Every sentence carries information an agent would otherwise have to discover by trial.

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?

For a single-parameter read tool with readOnlyHint and no output schema, the definition covers what is returned (raw source), path semantics, and the alias caveat. Minor gaps remain around failure modes and large-file handling, but nothing critical to a correct invocation is missing.

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 path parameter is documented, so the baseline is 3; the description goes beyond it by showing accepted path shapes (component file, dashboard file, root CSS) and explaining the "@/" alias convention embedded in file contents. That is genuine added meaning about how paths relate to the kit root.

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 opens with a specific verb+resource: "Returns the source of one kit or dashboard file," and reinforces it with three concrete path examples. It does not explicitly contrast itself with siblings like get_chart or install_chart, so it stops short of full differentiation, but an agent can immediately tell what this tool returns.

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?

"Use it to study or adapt a file, not to copy it by hand" gives a clear intended use plus a negative case. It does not name an alternative tool (e.g., install_chart for actually adding a file), so the routing guidance is contextual rather than explicit.

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