Skip to main content
Glama

Server Details

MCP server providing Pine Script v6 documentation.

Enables AI to:

Look up Pine Script functions and validate syntax
Access official documentation for indicators, strategies, and visuals
Understand Pine Script concepts (execution model, repainting, etc.)
Generate correct v6 code with proper function references
If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

A4.2/5.0

Scored across 12 tools

Disambiguation3/5

The three discovery tools (resolve_topic, search_docs, semantic_search_pine_docs) overlap in purpose and their own cross-references conflict: resolve_topic routes natural-language questions to search_docs, while semantic_search_pine_docs claims natural-language questions and routes keyword grep to search_docs. The doc-reading ladder (list_docs → list_sections → get_section/get_doc) is well delineated, and validate_function/explain_pine_error are clearly distinct, but an agent can still hesitate among the search entry points.

Naming Consistency4/5

Nearly all tools follow verb_noun snake_case (get_doc, list_sections, search_docs, validate_function). Minor deviations exist: semantic_search_pine_docs adds an adjective and redundant domain suffix, and explain_pine_error embeds the domain awkwardly, but the pattern stays readable and predictable.

Tool Count4/5

Twelve tools is reasonable for a documentation-retrieval domain, with each tier (discover, navigate, read, validate) earning its place. The count is only slightly inflated by having three separate search tools plus two unrelated prompt-listing tools.

Completeness4/5

The surface covers discovery, navigation, full reads, function validation, error diagnosis, and conceptual search — a solid retrieval lifecycle. Minor gaps remain: no way to inspect full function signatures/parameters, no script-wide syntax or compile check, and list_prompts/get_prompt feel like MCP boilerplate rather than part of the Pine Script domain.

Available Tools

12 tools
explain_pine_errorA
Read-only
Inspect

USE WHEN diagnosing a Pine Script compilation or runtime error. Returns semantically relevant documentation chunks alongside the bundled common-errors reference. If the error mentions an unknown function name, also call validate_function() after this tool. AFTER calling this tool, call validate_function(fn_name) if the error mentions an unrecognised function; call get_section() on any suggested doc paths to read full context. Data sourced from ai-ready-data semantic index and bundled concepts/common_errors.md.

Inputs: error_text (required), code. Returns: result

get_docA
Read-onlyIdempotent
Inspect

USE WHEN reading the full content of a Pine Script v6 documentation file. Returns the file content; when limit is set, a header shows the char range and offset to continue reading. AFTER calling this tool, use offset= to continue if the header indicates more content is available. For large files (ta.md, strategy.md, collections.md, drawing.md, general.md), prefer list_sections() + get_section() instead. Data sourced from bundled Pine Script v6 documentation.

Inputs: path (required), limit, offset.

get_functionsA
Read-onlyIdempotent
Inspect

USE WHEN browsing valid Pine Script v6 functions, optionally filtered to a namespace. Returns function names grouped by namespace (e.g. ta., strategy.) or filtered to the requested namespace. AFTER calling this tool, call validate_function(fn_name) to check a specific name, or get_section() to read its documentation. Data sourced from bundled pine_v6_functions.json.

Inputs: namespace.

get_promptAInspect

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.

Inputs: name (required), arguments. Returns: result

get_sectionA
Read-onlyIdempotent
Inspect

USE WHEN reading a specific named section from a Pine Script v6 documentation file. Returns the section content from the matched header to the next same-level header, with file path and line range. AFTER calling this tool, call list_sections(path) if the header was not found, or get_section() again with a child header for a narrower subsection. Data sourced from bundled Pine Script v6 documentation.

Inputs: path (required), header (required), include_children.

list_docsA
Read-onlyIdempotent
Inspect

USE WHEN discovering what Pine Script v6 documentation is available. Returns a categorised list of doc file paths with one-line descriptions. AFTER calling this tool, call get_doc(path) for small files or list_sections(path) then get_section(path, header) for large files (ta.md, strategy.md, collections.md, drawing.md, general.md). Data sourced from bundled Pine Script v6 documentation.

Inputs: no named parameters.

list_promptsAInspect

List all available prompts.

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

Inputs: no named parameters. Returns: result

list_sectionsA
Read-onlyIdempotent
Inspect

USE WHEN navigating a large documentation file before reading a specific section. Returns a newline-separated list of # and ## headers (### excluded) in the file. AFTER calling this tool, call get_section(path, header) with a header from this list. Data sourced from bundled Pine Script v6 documentation.

Inputs: path (required).

resolve_topicA
Read-onlyIdempotent
Inspect

USE WHEN looking up an exact Pine Script API term or known concept keyword. Returns the best-matching doc paths with matched keywords and a retrieval suggestion (get_doc or list_sections + get_section). AFTER calling this tool, follow the suggestion: call get_doc() for small files or list_sections() + get_section() for large files. For natural language questions use search_docs() instead. Data sourced from bundled TOPIC_MAP and doc file content scan.

Inputs: query (required). Returns: result

search_docsA
Read-onlyIdempotent
Inspect

USE WHEN finding documentation sections that match specific terms across all Pine Script v6 docs. Returns up to max_results sections ranked by match count, each with a preview and a get_section() call hint. AFTER calling this tool, call get_section(file, header) for each result you want to read in full. Data sourced from bundled Pine Script v6 documentation.

Inputs: query (required), max_results.

semantic_search_pine_docsA
Read-only
Inspect

USE WHEN answering conceptual, fuzzy, or natural language questions about Pine Script v6. Returns ranked documentation chunks with score, source path, and section header. Each result includes a get_section() call hint for retrieving the full content. AFTER calling this tool, call get_section(path, header) on the top results for complete context. For exact API term lookups use resolve_topic() instead; for keyword grep use search_docs() instead. Data sourced from the ai-ready-data pinescript-v06 semantic index.

Inputs: query (required), top_k. Returns: result

validate_functionA
Read-onlyIdempotent
Inspect

USE WHEN confirming a Pine Script v6 function name is valid before using it in code. Returns a valid/invalid verdict with namespace suggestions or known replacement hints (e.g. ta.adx → ta.dmi, security → request.security). AFTER calling this tool, call get_functions(namespace) to list all valid functions in the relevant namespace if the function is invalid. Data sourced from bundled pine_v6_functions.json.

Inputs: fn_name (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Remote MCP server that lets AI assistants read tracked competitive intelligence — competitor news, reviews, website changes, social posts and ads — and act on it by managing projects, competitors, battle cards, reports and canvases. Every answer carries a source and a date, and write actions only publish when explicitly shared.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables brand visibility monitoring across major AI platforms like ChatGPT, Claude, Gemini, and Perplexity. It allows users to track visibility scores, analyze competitor data, and receive actionable insights to improve AI-generated brand recommendations.
      16
      11 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Browse IndustryLens's published competitive-intelligence reports and head-to-head competitor comparisons from any AI agent — real, source-backed data.
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources