Skip to main content
Glama

Add an indicator to my open Vela chart

vela_add_indicator

Adds an indicator that already exists to the chart the signed-in member has open right now in Vela: one from the LuxAlgo Library, the largest indicator library in trading, by its slug (library_search and library_get_indicator return it), or one of the member's own saved scripts, by its id (quant_search_user_scripts returns it). Give exactly one of the two. Use it when the member asks to put an indicator on their own chart ("add Smart Money Concepts to my chart", "put my saved RSI script on it"): find the slug or the id first, never guess one. It does not take Pine Script® and does not write an indicator: for a new one, the member asks Quant, our coding agent, in Vela. The member sees it appear and is told an assistant added it. Returns the id it has on the chart, which vela_remove_indicators takes, and what the chart shows afterwards; it never returns source code. Nothing is added, and the result says why, when the Library indicator is a paid one the member's plan does not include, when the chart is at their plan's tools per chart, when it is already on the chart, or when the script does not run. With the member's Vela tab on screen it happens in front of them within seconds. When it is not (they are in another tab), the change is queued and applied the moment they look at Vela again, within 10 minutes: the result then says queued, so tell them to open Vela. 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": {
      "context": "<context>"
    },
    "name": "vela_add_indicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotNoOne chart of a multi-chart layout, by position (0 is the top-left, in reading order). Leave it out for the chart the member is working on.
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."
script_idNoOne of the member's saved scripts, by its id as quant_search_user_scripts returned it.
library_slugNoA LuxAlgo Library indicator, by its slug as library_search or library_get_indicator returned it, e.g. "smart-money-concepts".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare this is a non-read-only, non-destructive, open-world mutation; the description adds substantial behavior beyond that, including visibility to the member, queued application when Vela is not on screen, a 10-minute window, OAuth requirements, and specific failure cases such as paid-plan limits and duplicate indicators. It also states that the tool returns the chart indicator id and never returns source code.

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?

The description is front-loaded from purpose to input sourcing, usage, exclusions, outcomes, queuing, and authentication, so an agent can scan it efficiently. It is quite dense and includes a marketing phrase ('the largest indicator library in trading') that does not earn its place, but the remaining detail is mostly operational.

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 mutation tool with no output schema, the definition covers the return value (chart indicator id), what happens on the chart, failure modes, delayed queued application, and authentication requirements. That is sufficient for an agent to call it correctly and explain the outcome to the member.

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?

Schema coverage is 100%, so most parameter meaning is already documented. The description still adds a useful cross-parameter constraint: exactly one of library_slug or script_id must be supplied, and both must come from the named lookup tools rather than being guessed. It does not add much about slot or context beyond the schema.

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 uses a specific verb and resource ('Adds an indicator') and scopes it to the signed-in member's currently open Vela chart, distinguishing it from library lookup tools and from creating a new Pine Script indicator. An agent can identify the operation without opening the schema.

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?

It explicitly states when to use the tool ('when the member asks to put an indicator on their own chart'), gives examples, and tells the agent to obtain the slug or id first via library_search, library_get_indicator, or quant_search_user_scripts rather than guessing. It also excludes new Pine Script indicators and points to Quant for those.

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.