Skip to main content
Glama

pine_compile

Compile the current Pine Editor script to add or update an indicator or strategy on the TradingView chart canvas. Use after editing source code; editor must be open with code loaded.

Instructions

Trigger compilation ("Add to Chart" or "Save & Update") for the script currently in the Pine Editor. WHEN TO USE: Call after setting source code to apply the indicator or strategy to the chart canvas. SIDE EFFECTS: STATE_MUTATING (Attaches or updates study/strategy on chart canvas). LIMITATIONS: Pine Editor must be open with code loaded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does useful work: it declares SIDE EFFECTS as STATE_MUTATING and a prerequisite (editor open with code loaded). It omits what happens on compile failure and how errors surface (pine_get_errors), which an agent invoking a mutation would want.

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?

Labeled sections (WHEN TO USE / SIDE EFFECTS / LIMITATIONS) front-load the action, then the trigger conditions, then the constraints. Every sentence is informative and there is no filler.

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?

For a no-parameter, no-output-schema action tool with no annotations, the description supplies purpose, sequencing, mutation semantics, and a precondition. Nothing essential to calling it correctly is 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?

The tool takes zero parameters, so per the rubric this is the baseline 4. There is nothing further the description could add on parameter semantics.

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 ('trigger compilation') and resource (the script in the Pine Editor) and names the UI actions it corresponds to. However, it does not differentiate itself from the sibling pine_smart_compile (or pine_check/pine_analyze), so an agent cannot tell from this text alone which compile variant to pick.

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?

The WHEN TO USE section gives clear sequencing ('call after setting source code') and the intended outcome (applying the indicator/strategy to the chart). It stops short of naming alternatives like pine_smart_compile or when not to call it, so routing between compile tools is left to inference.

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