Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_docsA

List all available Pine Script v6 documentation files with descriptions.

Returns files organised by category with descriptions. For small files use get_doc(path). For large files (ta.md, strategy.md, collections.md, drawing.md, general.md) use list_sections(path) then get_section(path, header).

list_sectionsA

List all section headers in a doc file. Use before get_section() to find the right header.

Especially useful for large files like ta.md, strategy.md, collections.md, drawing.md, general.md which have 50-115 sections each.

get_docA

Read a specific Pine Script v6 documentation file.

For large files (ta.md, strategy.md, collections.md, drawing.md, general.md) prefer list_sections() + get_section() to avoid loading 1000-2800 line files into context.

get_sectionA

Get a specific section from a documentation file by its header.

Use after list_sections() shows available headers, or after resolve_topic() / search_docs() identifies the relevant file.

search_docsA

Search Pine Script v6 documentation and return matching sections.

Finds sections containing the query and returns previews with get_section() call hints so you can read the full content.

Multi-word queries use AND logic: all terms must appear in the section (not necessarily on the same line).

get_functionsA

Get valid Pine Script v6 functions, optionally filtered by namespace.

Use before writing Pine Script to see which functions exist. For checking a single function name, use validate_function() instead.

validate_functionA

Check if a Pine Script v6 function name is valid.

resolve_topicA

Fast lookup for exact Pine Script API terms and known concepts.

Use for exact function names and Pine Script vocabulary (e.g., "ta.rsi", "strategy.entry", "repainting", "request.security").

For natural language questions, read the docs://manifest resource for routing guidance, then use get_doc() or list_sections() + get_section().

list_promptsA

List all available prompts.

Returns JSON with prompt metadata including name, description, and optional arguments.

get_promptA

Get a prompt by name with optional arguments.

Returns the rendered prompt as JSON with a messages array. Arguments should be provided as a dict mapping argument names to values.

Prompts

Interactive templates invoked by user choice

NameDescription
debug_errorDebug a Pine Script compilation error.
convert_v5_to_v6Convert Pine Script v5 code to v6.
explain_functionExplain a Pine Script function in detail.

Resources

Contextual data attached and managed by the client

NameDescription
LLM ManifestSTART HERE — routing guide that maps Pine Script questions to documentation files and tool call sequences
Pine Script v6 FunctionsComplete list of valid Pine Script v6 functions as JSON

TDQS

A4.4/5.0

Scored across 10 tools

Disambiguation5/5

Every tool has a clearly distinct purpose: reading full docs, listing docs/sections/prompts, searching, resolving specific terms, validating function names. No overlap in functionality.

Naming Consistency5/5

All tools follow a consistent verb_noun snake_case pattern (e.g., get_doc, list_sections, validate_function). No mixing of conventions.

Tool Count5/5

With 10 tools, the server is well-scoped for its documentation purpose. Covers browsing, reading, searching, and utility without being excessive or insufficient.

Completeness5/5

The tool surface covers all major documentation needs: listing, reading, searching, and validating. There are no obvious gaps for a Pine Script docs server.

Maintenance

ActivityStale
ResponsivenessUnresponsive