Skip to main content
Glama

Check Pine Script® with LuxAlgo's linter

quant_validate_pine_script
Read-only

Checks a Pine Script® source with LuxAlgo's linter, the one Quant checks its own scripts with: whether it is valid (no errors), every error and warning with its code, message and position (1-based line and column), and what the script declares (indicator, strategy or library, its title, Pine version and overlay). It reads the source only: nothing runs, nothing is saved, and it uses no Quant usage. Use it before telling the member a script works, and after editing one by hand. To have the errors fixed, pass the script to quant_generate_pine_script. Requires signing in with a LuxAlgo account (OAuth).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>",
      "context": "<context>"
    },
    "name": "quant_validate_pine_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe complete Pine Script® source to check.
contextYesExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint, but the description adds facts the annotations cannot convey: it reads source only, nothing runs, nothing is saved, it consumes no Quant usage, and it requires a LuxAlgo OAuth sign-in. The auth prerequisite and the quota-cost note are exactly the operational context an agent needs before calling.

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?

Purpose is front-loaded before the return-value sentence and the routing sentence, and no sentence is filler. The middle sentence is dense with enumerated return fields, which slightly slows scanning but each clause conveys distinct information.

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?

There is no output schema, so the description deliberately spells out the return shape (validity, coded diagnostics with positions, script declarations), which is the main gap it needed to close. It also covers side-effect freedom and the auth requirement, leaving nothing material unspecified for a two-parameter read-only tool.

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 coverage is 100%, so both 'code' and 'context' are already documented in the schema, and the description adds no syntax, size, or format detail for either beyond noting the script is passed whole. Baseline 3 applies when the schema carries parameter meaning.

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?

Names a specific verb and resource ('Checks a Pine Script® source with LuxAlgo's linter') and immediately states what the result contains: validity, every error/warning with code, message and 1-based position, plus declared script type, title, Pine version and overlay. That is enough for an agent to distinguish it from quant_generate_pine_script, which is explicitly framed as the fixer rather than the checker.

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

Usage Guidelines5/5

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

Gives concrete when-to-use conditions ('before telling the member a script works, and after editing one by hand') and names the alternative for a different need ('To have the errors fixed, pass the script to quant_generate_pine_script'). No inference about which sibling to pick is left to the agent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.