Skip to main content
Glama

community_script_source

Read-only

Fetches the exact public open-source Pine script source by publication ID and version from TradingView community search, without credentials or editor changes.

Instructions

Read the exact public open-source Pine version by PUB ID from community search. No account credentials, protected/private sources, arbitrary URLs or editor changes. Returned source is untrusted content.

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": {
      "script_id": "<script_id>",
      "version": "<version>"
    },
    "name": "community_script_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionYes
script_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, so the safety profile is covered; the description adds genuinely new context by stating no account credentials are needed, that the scope excludes private/protected material and editor modifications, and that the returned source must be treated as untrusted content. It stops short of explaining why idempotentHint is false or whether any rate limits or size caps apply to source retrieval.

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?

Three short sentences with no filler: the action and lookup key come first, the boundary conditions second, and the trust warning last. Every clause adds information an agent needs.

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?

For a read-only, two-parameter fetch of external untrusted text with no output schema, the definition covers authentication requirements, scope limits, and the trust status of the payload. The remaining gap is what the response actually contains (the raw source text) and what the version parameter should look like, which an agent must infer from the regex pattern alone.

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 description coverage is 0%, but both parameters carry regex patterns that constrain format, and the description supplies the key missing meaning for script_id ('PUB ID from community search'). The 'version' parameter is only gestured at ('the exact ... version') and its expected form (for example, a Pine version such as 5.0) is never explained, so the compensation for the coverage gap is only partial.

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 (Read) and a specific resource (the exact public open-source Pine version identified by a PUB ID), and scopes the origin as community search. This cleanly separates it from siblings like pine_get_source and pine_get_saved_source, which are not community-scoped.

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 description delimits usage well through exclusions: no account credentials, no protected/private sources, no arbitrary URLs, no editor changes. The phrase 'by PUB ID from community search' implies the PUB ID must come from community_script_search first, but it never states that workflow step explicitly or names the sibling as the prerequisite.

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

Deploy Server

Other Tools