Skip to main content
Glama

Get chart options schema

get_chart_spec_json_schema
Read-only

Get Spec Json Schema

When to use: 차트 스펙 문서(get_chart_spec 응답의 spec 필드, {version, spec} 래퍼 자체가 아님) 자체를 코드로 직접 파싱하거나, 그 구조로부터 검증기를 생성할 구조적 스키마(JSON Schema)가 필요할 때. 값 목록·기본값이 아니라 스펙 문서의 필드 타입·필수 여부 같은 구조 자체를 돌려준다 — 실제 값 목록이 필요하면 spec 도구를 쓴다.

Limitations: 버전 파라미터가 없다 — 항상 최신 스펙 하나만 반환하며, 과거 버전의 json-schema 는 조회할 수 없다. 개별 차트 설정(body)을 검증하려면 이 스키마가 아니라 spec 도구 응답의 spec.chart_types[*].config_schema 를 쓰고, 컴파일된 body 의 유효성은 compile_chart_body 로 확인한다.

Examples:

  • Q: 차트 스펙 문서를 코드로 파싱할 수 있게 구조적 스키마로 줘 params: {}

Output shape: object: JSON Schema

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_chart_spec_json_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real behavioral context beyond them: there is no version parameter, only the latest spec schema is ever returned, and historical json-schemas are unreachable. It could say more about size or caching, but the key operational constraint is disclosed.

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?

The When to use / Limitations / Examples / Output shape sections are well front-loaded, and the delimiting clause about the wrapper is placed before the alternatives. The opening line repeats the tool title as a header, and the example is near-trivial (params: {}) — small waste in an otherwise tight structure.

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?

The tool takes no parameters and has an output schema, so the description only needs to establish what it returns and its boundaries. It does exactly that, plus states the return shape ('object: JSON Schema') and the versioning limitation, leaving nothing an agent needs 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?

There are zero input parameters, so the baseline is 4. The description reinforces this by stating outright that no version parameter exists, which pre-empts an agent trying to pass one — appropriate compensation for an empty schema.

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?

The description names the resource precisely (the JSON Schema of the chart spec document) and explicitly excludes the {version, spec} wrapper that get_chart_spec returns. It is clearly differentiated from the value-returning spec tool and from compile_chart_body, so an agent can tell the three apart without opening any schema.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use condition (you need the structure to parse in code or to generate a validator), an explicit when-not (you want value lists or defaults — use the spec tool), and names two concrete alternatives for adjacent jobs: spec.chart_types[*].config_schema for per-chart body validation and compile_chart_body for compiled-body validity.

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.

Resources