Skip to main content
Glama

pine_smart_compile

Compiles Pine Script into the active TradingView chart by triggering the build, polling Monaco markers, and reporting status. Use when Pine Editor is open.

Instructions

Execute atomic developer compilation loop: detects appropriate compile button, triggers build, polls for Monaco markers, and reports compile status. WHEN TO USE: Preferred tool for compiling Pine Script code directly into the active chart. SIDE EFFECTS: STATE_MUTATING (Modifies chart study state). LIMITATIONS: Requires Pine Editor panel to be open.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it declares SIDE EFFECTS: STATE_MUTATING (modifies chart study state) and a LIMITATION (requires the Pine Editor panel open). It also explains that compile status is reported. Rates/return detail are absent, but the mutation profile and prerequisite are 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?

Front-loaded with the core action, then cleanly labeled WHEN TO USE / SIDE EFFECTS / LIMITATIONS sections. Every sentence earns its place with no filler, though the labeled format is slightly dense.

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?

No output schema exists, but the description states it reports compile status, and it covers the mutation side effect and panel prerequisite. For a zero-param mutation tool with no annotations, this is nearly complete; only return-format specifics are omitted.

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?

The tool takes zero parameters, so per calibration the baseline is 4. The description correctly implies an atomic, argument-free operation and adds no misleading parameter expectations.

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?

States a specific verb+resource (compile Pine Script) and unpacks the mechanism: detects the compile button, triggers the build, polls Monaco markers, reports status. Says it is the 'preferred tool for compiling Pine Script code directly into the active chart,' which hints at differentiation from siblings like pine_compile, but never names an alternative explicitly.

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?

Explicit 'WHEN TO USE' clause ties the tool to compiling into the active chart, and 'preferred' implies this is the default over other compile/check siblings. It lacks an explicit when-not clause or a named alternative, so it stops short of full routing guidance.

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