Skip to main content
Glama

Get historical prices

get_prices
Read-only

Read historical prices for a run form. Needs only version and data.

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": "get_prices"
  }
}

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.2/5.0
Behavior2/5

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

The readOnlyHint annotation already covers the safety profile, and 'Read' is consistent with it. However, the description's one extra claim — 'Needs only version and data' — describes inputs that do not appear in the schema and does not explain pagination, date-range scoping, or what a run's prices consist of.

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 short sentences with no filler, and the purpose leads. The second sentence is brief but incorrect rather than merely redundant, so brevity does not earn full credit.

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

Completeness2/5

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

A one-parameter lookup with no output schema, no annotation detail beyond readOnly, and zero schema coverage needs the description to explain the 'run' identifier and the return shape. Instead the description supplies only a vague purpose and a misleading input statement.

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

Parameters1/5

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

Schema description coverage is 0% and the single parameter 'run' has an empty schema with no type or description, so the description must compensate and does not. Worse, it names 'version' and 'data' as the inputs, which are not the parameter at all, actively misdirecting the agent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb+resource ('Read historical prices') is identifiable, but the qualifier 'for a run form' is ambiguous and no sibling tool (list_data, build_series) is referenced to distinguish the scope. An agent knows roughly what domain this touches but not precisely what it returns.

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?

There is no statement of when to use this versus list_data or build_series, nor any prerequisite or exclusion. The only usage hint is a claim about what inputs are needed, which is not framed as guidance.

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