Skip to main content
Glama
iamrichardD

PineScript MCP Documentation Server

by iamrichardD

pinescript_review

Review PineScript code to ensure compliance with style guide and language rules. Scan code strings, files, or directories; output violations as JSON, Markdown, or streaming chunks.

Instructions

Review PineScript code against style guide and language rules. Supports single files, directories, and streaming for large results via JSON chunks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoPineScript code to review (required when source_type=code)
formatNoOutput format: json (single response), markdown (formatted), stream (chunked JSON for large files/directories)json
versionNoPineScript version (default: v6)v6
file_pathNoPath to PineScript file to review (required when source_type=file)
recursiveNoFor directory source: scan subdirectories recursively (default: true)
chunk_sizeNoFor stream format: violations per chunk (default: 20, max: 100)
source_typeNoSource type: code (string input), file (single file path), directory (scan for .pine files)code
directory_pathNoPath to directory containing PineScript files (required when source_type=directory)
file_extensionsNoFile extensions to scan for (default: [".pine", ".pinescript"])
severity_filterNoFilter violations by severity (default: all)all
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions streaming for large results, indicating non-blocking behavior, but does not disclose potential resource usage, side effects (e.g., file system writes), or whether it is read-only. Adequate but not comprehensive.

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?

The description is a single sentence that efficiently conveys the core functionality and key features (single files, directories, streaming) without redundancy. Every phrase adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (10 parameters, 3 enum types, no output schema), the description is relatively brief. It covers high-level capabilities but lacks details on return values, error handling, or comprehensive usage scenarios. Adequate for basic understanding but leaves gaps for nuanced use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters. The description adds little to no new meaning beyond what the schema provides. It rephrases some parameter purposes but doesn't clarify dependencies or provide examples.

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 clearly identifies the tool's purpose: reviewing PineScript code against a style guide and language rules. It specifies supported input types (single files, directories) and output formats (streaming, JSON chunks), making the tool's scope unambiguous.

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

Usage Guidelines2/5

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

The description does not provide explicit guidance on when to use this tool versus siblings (e.g., syntax_compatibility_validation). It lacks 'when to use' or 'when not to use' statements, leaving the agent to infer usage context from the description alone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/iamrichardD/mcp-server-pinescript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server