Skip to main content
Glama

Build data series

build_series
Read-only

Build named time series from a run form. Needs version, data, and series.

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": {
      "run": "<run>"
    },
    "name": "build_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
runYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / run / additionalProperties
      Removed value: -false
    • removedInput schema / properties / run / properties
      Removed value: -{
      -  "data": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "end": {
      -        "type": "string"
      -      },
      -      "interval": {
      -        "enum": [
      -          "1min",
      -          "5min",
      -          "15min",
      -          "30min",
      -          "1hour"
      -        ],
      -        "type": "string"
      -      },
      -      "source": {
      -        "enum": [
      -          "price-api",
      -          "intraday-api"
      -        ],
      -        "type": "string"
      -      },
      -      "start": {
      -        "type": "string"
      -      },
      -      "tickers": {
      -        "items": {
      -          "pattern": "^[A-Z0-9][A-Z0-9.-]{0,11}$",
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "tickers",
      -      "start",
      -      "end",
      -      "source"
      -    ],
      -    "type": "object"
      -  },
      -  "money": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "benchmark": {
      -        "const": "SPY",
      -        "default": "SPY",
      -        "type": "string"
      -      },
      -      "capital": {
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "capital"
      -    ],
      -    "type": "object"
      -  },
      -  "series": {
      -    "default": [],
      -    "items": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "field": {
      -              "enum": [
      -                "open",
      -                "high",
      -                "low",
      -                "close",
      -                "volume"
      -              ],
      -              "type": "string"
      -            },
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "const": "price",
      -              "type": "string"
      -            },
      -            "ticker": {
      -              "pattern": "^[A-Z0-9][A-Z0-9.-]{0,11}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "ticker",
      -            "field",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "const": "observations",
      -              "type": "string"
      -            },
      -            "points": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "knownAt": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "string"
      -                      }
      -                    ]
      -                  },
      -                  "observedAt": {
      -                    "anyOf": [
      -                      {
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "string"
      -                      }
      -                    ]
      -                  },
      -                  "value": {
      -                    "type": "number"
      -                  }
      -                },
      -                "required": [
      -                  "observedAt",
      -                  "knownAt",
      -                  "value"
      -                ],
      -                "type": "object"
      -              },
      -              "minItems": 1,
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "points",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "description": "Running sum, high, low, or first value since the session start. With bars, only the first bars of each session count; the value is null until they finish, then held for the rest of the session.",
      -          "properties": {
      -            "agg": {
      -              "enum": [
      -                "sum",
      -                "high",
      -                "low",
      -                "first"
      -              ],
      -              "type": "string"
      -            },
      -            "bars": {
      -              "exclusiveMinimum": 0,
      -              "type": "integer"
      -            },
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "input": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "const": "session",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "input",
      -            "agg",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "input": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "exclusiveMinimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "const": "lag",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "input",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "input": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "enum": [
      -                "average",
      -                "high",
      -                "low",
      -                "sum",
      -                "change",
      -                "stddev"
      -              ],
      -              "type": "string"
      -            },
      -            "window": {
      -              "exclusiveMinimum": 0,
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "input",
      -            "window",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "alpha": {
      -              "exclusiveMinimum": 0,
      -              "maximum": 1,
      -              "type": "number"
      -            },
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "input": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "const": "smooth",
      -              "type": "string"
      -            },
      -            "window": {
      -              "exclusiveMinimum": 0,
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "input",
      -            "window",
      -            "alpha",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "left": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ]
      -            },
      -            "op": {
      -              "enum": [
      -                "add",
      -                "subtract",
      -                "multiply",
      -                "ratio",
      -                "min",
      -                "max"
      -              ],
      -              "type": "string"
      -            },
      -            "right": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "left",
      -            "right",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "input": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "const": "rank",
      -              "type": "string"
      -            },
      -            "order": {
      -              "enum": [
      -                "ascending",
      -                "descending"
      -              ],
      -              "type": "string"
      -            },
      -            "peers": {
      -              "items": {
      -                "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                "type": "string"
      -              },
      -              "minItems": 2,
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "input",
      -            "peers",
      -            "order",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "description": "A level that moves only one way. Up: the larger of input and its own prior value, and it restarts at input after the prior price closes below it. Down is the reverse. Use it for Supertrend style bands.",
      -          "properties": {
      -            "direction": {
      -              "enum": [
      -                "up",
      -                "down"
      -              ],
      -              "type": "string"
      -            },
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "input": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "const": "ratchet",
      -              "type": "string"
      -            },
      -            "price": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "input",
      -            "price",
      -            "direction",
      -            "lag"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "description": "Swing high or low of input: a value beyond the span values before it and not passed by the span values after it. Known only span bars later. back 0 is the latest swing, 1 the one before. read returns another series at that swing bar.",
      -          "properties": {
      -            "back": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "input": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "kind": {
      -              "enum": [
      -                "high",
      -                "low"
      -              ],
      -              "type": "string"
      -            },
      -            "lag": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "op": {
      -              "const": "pivot",
      -              "type": "string"
      -            },
      -            "read": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "span": {
      -              "exclusiveMinimum": 0,
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "input",
      -            "kind",
      -            "span",
      -            "back",
      -            "lag"
      -          ],
      -          "type": "object"
      -        }
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  "signals": {
      -    "default": [],
      -    "items": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "left": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ]
      -            },
      -            "op": {
      -              "enum": [
      -                "above",
      -                "below",
      -                "crossAbove",
      -                "crossBelow"
      -              ],
      -              "type": "string"
      -            },
      -            "right": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "left",
      -            "right"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "inputs": {
      -              "items": {
      -                "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                "type": "string"
      -              },
      -              "minItems": 2,
      -              "type": "array"
      -            },
      -            "op": {
      -              "enum": [
      -                "and",
      -                "or"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "inputs"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "input": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "op": {
      -              "const": "not",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "input"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "field": {
      -              "enum": [
      -                "month",
      -                "day",
      -                "firstSessionOfMonth",
      -                "utcMinute"
      -              ],
      -              "type": "string"
      -            },
      -            "id": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "op": {
      -              "const": "calendar",
      -              "type": "string"
      -            },
      -            "values": {
      -              "items": {
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "minItems": 1,
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "op",
      -            "field",
      -            "values"
      -          ],
      -          "type": "object"
      -        }
      -      ]
      -    },
      -    "type": "array"
      -  },
      -  "simulation": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "allocation": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "targets": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "ticker": {
      -                  "pattern": "^[A-Z0-9][A-Z0-9.-]{0,11}$",
      -                  "type": "string"
      -                },
      -                "weight": {
      -                  "anyOf": [
      -                    {
      -                      "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                      "type": "string"
      -                    },
      -                    {
      -                      "exclusiveMinimum": 0,
      -                      "maximum": 1,
      -                      "type": "number"
      -                    }
      -                  ],
      -                  "description": "A number, or a series read on the rebalance date. A series weight must be 0 to 1."
      -                },
      -                "when": {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "ticker",
      -                "when",
      -                "weight"
      -              ],
      -              "type": "object"
      -            },
      -            "minItems": 1,
      -            "type": "array"
      -          },
      -          "when": {
      -            "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "when",
      -          "targets"
      -        ],
      -        "type": "object"
      -      },
      -      "feeBps": {
      -        "default": 0,
      -        "maximum": 10000,
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "fillTiming": {
      -        "enum": [
      -          "nextOpen",
      -          "nextClose"
      -        ],
      -        "type": "string"
      -      },
      -      "positions": {
      -        "default": [],
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "add": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "distance": {
      -                  "anyOf": [
      -                    {
      -                      "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "number"
      -                    }
      -                  ]
      -                },
      -                "maxUnits": {
      -                  "exclusiveMinimum": 0,
      -                  "minimum": 2,
      -                  "type": "integer"
      -                }
      -              },
      -              "required": [
      -                "distance",
      -                "maxUnits"
      -              ],
      -              "type": "object"
      -            },
      -            "closeStopPct": {
      -              "exclusiveMinimum": 0,
      -              "maximum": 100,
      -              "type": "number"
      -            },
      -            "closeTargetPct": {
      -              "exclusiveMinimum": 0,
      -              "type": "number"
      -            },
      -            "direction": {
      -              "enum": [
      -                "long",
      -                "short"
      -              ],
      -              "type": "string"
      -            },
      -            "enter": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "exit": {
      -              "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -              "type": "string"
      -            },
      -            "option": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "expiry": {
      -                  "type": "string"
      -                },
      -                "premium": {
      -                  "exclusiveMinimum": 0,
      -                  "type": "number"
      -                },
      -                "right": {
      -                  "enum": [
      -                    "call",
      -                    "put"
      -                  ],
      -                  "type": "string"
      -                },
      -                "strike": {
      -                  "exclusiveMinimum": 0,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "right",
      -                "strike",
      -                "premium",
      -                "expiry"
      -              ],
      -              "type": "object"
      -            },
      -            "size": {
      -              "anyOf": [
      -                {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "fraction": {
      -                      "exclusiveMinimum": 0,
      -                      "maximum": 1,
      -                      "type": "number"
      -                    },
      -                    "kind": {
      -                      "const": "fraction",
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "kind",
      -                    "fraction"
      -                  ],
      -                  "type": "object"
      -                },
      -                {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "distance": {
      -                      "anyOf": [
      -                        {
      -                          "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "number"
      -                        }
      -                      ]
      -                    },
      -                    "kind": {
      -                      "const": "risk",
      -                      "type": "string"
      -                    },
      -                    "maxFraction": {
      -                      "exclusiveMinimum": 0,
      -                      "maximum": 1,
      -                      "type": "number"
      -                    },
      -                    "riskFraction": {
      -                      "exclusiveMinimum": 0,
      -                      "maximum": 1,
      -                      "type": "number"
      -                    }
      -                  },
      -                  "required": [
      -                    "kind",
      -                    "riskFraction",
      -                    "maxFraction",
      -                    "distance"
      -                  ],
      -                  "type": "object"
      -                }
      -              ]
      -            },
      -            "stopDistance": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ]
      -            },
      -            "targetDistance": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ]
      -            },
      -            "ticker": {
      -              "pattern": "^[A-Z0-9][A-Z0-9.-]{0,11}$",
      -              "type": "string"
      -            },
      -            "trailDistance": {
      -              "anyOf": [
      -                {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ],
      -              "description": "Trailing stop: distance below the highest high since entry for a long, or above the lowest low for a short. It moves only in the trade's favor and applies from the next bar."
      -            }
      -          },
      -          "required": [
      -            "ticker",
      -            "direction",
      -            "enter",
      -            "size"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "sleeves": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "allocation": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "targets": {
      -                  "items": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "ticker": {
      -                        "pattern": "^[A-Z0-9][A-Z0-9.-]{0,11}$",
      -                        "type": "string"
      -                      },
      -                      "weight": {
      -                        "anyOf": [
      -                          {
      -                            "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                            "type": "string"
      -                          },
      -                          {
      -                            "exclusiveMinimum": 0,
      -                            "maximum": 1,
      -                            "type": "number"
      -                          }
      -                        ],
      -                        "description": "A number, or a series read on the rebalance date. A series weight must be 0 to 1."
      -                      },
      -                      "when": {
      -                        "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "ticker",
      -                      "when",
      -                      "weight"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "minItems": 1,
      -                  "type": "array"
      -                },
      -                "when": {
      -                  "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "when",
      -                "targets"
      -              ],
      -              "type": "object"
      -            },
      -            "positions": {
      -              "default": [],
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "add": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "distance": {
      -                        "anyOf": [
      -                          {
      -                            "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                            "type": "string"
      -                          },
      -                          {
      -                            "type": "number"
      -                          }
      -                        ]
      -                      },
      -                      "maxUnits": {
      -                        "exclusiveMinimum": 0,
      -                        "minimum": 2,
      -                        "type": "integer"
      -                      }
      -                    },
      -                    "required": [
      -                      "distance",
      -                      "maxUnits"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "closeStopPct": {
      -                    "exclusiveMinimum": 0,
      -                    "maximum": 100,
      -                    "type": "number"
      -                  },
      -                  "closeTargetPct": {
      -                    "exclusiveMinimum": 0,
      -                    "type": "number"
      -                  },
      -                  "direction": {
      -                    "enum": [
      -                      "long",
      -                      "short"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "enter": {
      -                    "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                    "type": "string"
      -                  },
      -                  "exit": {
      -                    "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                    "type": "string"
      -                  },
      -                  "option": {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "expiry": {
      -                        "type": "string"
      -                      },
      -                      "premium": {
      -                        "exclusiveMinimum": 0,
      -                        "type": "number"
      -                      },
      -                      "right": {
      -                        "enum": [
      -                          "call",
      -                          "put"
      -                        ],
      -                        "type": "string"
      -                      },
      -                      "strike": {
      -                        "exclusiveMinimum": 0,
      -                        "type": "number"
      -                      }
      -                    },
      -                    "required": [
      -                      "right",
      -                      "strike",
      -                      "premium",
      -                      "expiry"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  "size": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "fraction": {
      -                            "exclusiveMinimum": 0,
      -                            "maximum": 1,
      -                            "type": "number"
      -                          },
      -                          "kind": {
      -                            "const": "fraction",
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind",
      -                          "fraction"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "distance": {
      -                            "anyOf": [
      -                              {
      -                                "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                                "type": "string"
      -                              },
      -                              {
      -                                "type": "number"
      -                              }
      -                            ]
      -                          },
      -                          "kind": {
      -                            "const": "risk",
      -                            "type": "string"
      -                          },
      -                          "maxFraction": {
      -                            "exclusiveMinimum": 0,
      -                            "maximum": 1,
      -                            "type": "number"
      -                          },
      -                          "riskFraction": {
      -                            "exclusiveMinimum": 0,
      -                            "maximum": 1,
      -                            "type": "number"
      -                          }
      -                        },
      -                        "required": [
      -                          "kind",
      -                          "riskFraction",
      -                          "maxFraction",
      -                          "distance"
      -                        ],
      -                        "type": "object"
      -                      }
      -                    ]
      -                  },
      -                  "stopDistance": {
      -                    "anyOf": [
      -                      {
      -                        "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  },
      -                  "targetDistance": {
      -                    "anyOf": [
      -                      {
      -                        "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ]
      -                  },
      -                  "ticker": {
      -                    "pattern": "^[A-Z0-9][A-Z0-9.-]{0,11}$",
      -                    "type": "string"
      -                  },
      -                  "trailDistance": {
      -                    "anyOf": [
      -                      {
      -                        "pattern": "^[A-Za-z][A-Za-z0-9_]*$",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "number"
      -                      }
      -                    ],
      -                    "description": "Trailing stop: distance below the highest high since entry for a long, or above the lowest low for a short. It moves only in the trade's favor and applies from the next bar."
      -                  }
      -                },
      -                "required": [
      -                  "ticker",
      -                  "direction",
      -                  "enter",
      -                  "size"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "weight": {
      -              "exclusiveMinimum": 0,
      -              "maximum": 1,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "weight"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "slippageBps": {
      -        "default": 0,
      -        "exclusiveMaximum": 10000,
      -        "minimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "fillTiming"
      -    ],
      -    "type": "object"
      -  },
      -  "version": {
      -    "const": 2,
      -    "type": "number"
      -  }
      -}
    • removedInput schema / properties / run / required
      Removed value: -[
      -  "version",
      -  "data"
      -]
    • removedInput schema / properties / run / type
      Removed value: -"object"
  2. First observed

TDQS

C2.5/5.0
Behavior2/5

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

The readOnlyHint=true annotation says nothing is mutated, yet the description's only behavioral statement is "Build," which reads like creation and never clarifies whether the resulting series is persisted, returned in the response, or ephemeral. No permissions, size limits, or side effects are described. The ambiguity is not a hard contradiction, but the description adds almost nothing beyond the annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded, with no padding — structurally fine. However, the second sentence introduces three unexplained terms that do not correspond to the schema, so the brevity comes at the cost of clarity rather than being efficient.

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

Completeness1/5

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

For a tool with one required, completely undocumented parameter and no output schema, the description should explain what a "run form" is, what shape the input takes, and what the caller gets back. Instead it leaves the sole parameter undefined and adds mismatched field names, so an agent cannot reliably construct a valid call from this definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema declares exactly one required property, "run," with no type or description (0% coverage), so the description must compensate and instead introduces different field names: "version, data, and series." Those names do not map onto any declared parameter, leaving the agent unsure whether they are sub-fields of "run," separate parameters, or something else.

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?

"Build named time series from a run form" names a specific verb (build) and resource (named time series) plus its input source, so the agent knows what artifact this produces. It stops short of distinguishing itself from siblings like build_signal or simulate, which sound like they operate on the same kind of inputs.

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

Usage Guidelines2/5

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

The only usage hint is the precondition "from a run form," which implies a run must already exist. There is no statement of when to choose this over build_signal or simulate, no mention of prerequisites such as loading data first, and no exclusions.

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