Skip to main content
Glama

Règle → Pine v5 pour le juge

prisme_rule_to_pine
Read-onlyIdempotent

Écrit le script Pine v5 (achat seul, 100 % du capital, 0,1 % de frais, ordres à la clôture) que le juge gratuit lit : cross, trend, rsi, macd, cross_rsi, bollinger ou double_bottom. Même générateur que l'atelier ; judge.prefilled_url ouvre le juge.

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": {
      "rule": "<rule>"
    },
    "name": "prisme_rule_to_pine"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNo
ruleYes{type:"cross",fast:"ema:20",slow:"ema:50"} | {type:"trend",average:"sma:200"} | {type:"rsi",period:14,low:30,high:70} | {type:"macd",fast:12,slow:26,signal:9,source:"close"} | {type:"cross_rsi",fast:"ema:20",slow:"ema:50",period:14,filter:"below",level:70} | {type:"bollinger",period:20,mult:2,source:"close",mode:"reversion"|"breakout"} | {type:"double_bottom", …réglages de figure}
intervalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the baseline is low. The description adds real behavioral context beyond them: the generated script assumes long-only ('achat seul'), 100% of capital, 0.1% fees, and close-time orders, plus that it exposes a prefilled judge URL — facts an agent cannot get from the annotations.

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?

Two dense sentences with the output artifact and its constraints front-loaded, then the rule-type list, then the judge hand-off. No filler; the enumeration is long but each token maps to a real enum value an agent must supply.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a nested rule object with seven distinct shapes and no output schema, the description does well to enumerate variants and disclose one return field (judge.prefilled_url). It still leaves the interval parameter's options/default and the lang parameter's effect unexplained, and does not say in what form the Pine script itself is returned.

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 only 33%, so the description must carry weight; it does reinforce the rule.type enumeration but adds no field-level detail beyond the schema's own examples. The lang and interval parameters (both enums, no defaults stated) are not addressed at all, and the fixed assumptions indirectly relate to no parameter.

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 and resource ('Écrit le script Pine v5') and enumerates the seven supported rule types (cross, trend, rsi, macd, cross_rsi, bollinger, double_bottom), so an agent knows exactly what it produces. It also ties the output to the judge via 'judge.prefilled_url', distinguishing it from pure-judge siblings like prisme_judge_link, though no sibling is named as an explicit alternative.

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

Usage Guidelines3/5

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

'Même générateur que l'atelier ; judge.prefilled_url ouvre le juge' implies the generate-then-open-judge workflow, which is useful context. However, there is no explicit when-to-use/when-not-to-use statement, no prerequisites, and no routing guidance versus the other judge-related siblings.

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.

Resources