Skip to main content
Glama

Search my scripts

quant_search_user_scripts
Read-only

Searches the signed-in member's own Pine Script® scripts on LuxAlgo: the ones Quant wrote for them in a chat (origin: quant) and the ones they saved from the code editor (origin: user). Each result has its id, name, kind (indicator, strategy or library), origin, a one-line description when there is one, and when it was created and last saved; newest first. query matches names and descriptions; leave it out for the latest scripts. Results carry no source: fetch one script's code with get_user_script and its id. For LuxAlgo's published indicators use library_search, not this. 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": "quant_search_user_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOnly scripts of this kind.
limitNoMax results (default 20).
queryNoWords to look for in script names and descriptions.
originNoOnly scripts Quant wrote, or only the member's own.
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.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, destructiveHint false and openWorldHint false, and the description adds value on top: the OAuth sign-in requirement, the exact result fields (id, name, kind, origin, description, created/last-saved timestamps), sort order (newest first), and the notable absence of source code in results. That last point prevents a common misassumption about a search over scripts.

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 what is searched and scoped by origin, then results, then query behavior, then alternatives and auth. It is a single dense block with semicolon-joined clauses; every clause carries information, though the run-on structure could be broken into shorter sentences for faster scanning.

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 read-only search with no output schema, the description covers result shape, ordering, auth requirements, and the key limitation that code is not returned. Nothing an agent needs in order to call it correctly or interpret its results 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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: `query` matches names and descriptions and its omission returns the latest scripts, and the two origin values are explained as Quant-written versus user-saved. It does not explain `type`, `limit` behavior beyond what the schema says, or the `context` analytics field, so it is not a full 5.

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?

States a specific verb and resource ("Searches the signed-in member's own Pine Script® scripts") and immediately scopes it to the two origins, `quant` and `user`. It names the sibling tools it is not (`get_user_script` for code, `library_search` for published indicators), so an agent can separate it from neighbors without opening schemas.

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 explicit routing rules: use `get_user_script` with an id to fetch code, use `library_search` for LuxAlgo's published indicators, and drop `query` to get the latest scripts. It also states the precondition (signed-in LuxAlgo account via OAuth), covering both when to use and when not to.

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.