Skip to main content
Glama

Valuein — SEC EDGAR Fundamentals & Smart-Money Data

This connector has been deprecated in the official MCP Registry

Replaced by Valuein — SEC EDGAR Fundamentals & Smart-Money Data.

Run Bounded Factor Backtest

run_backtest
Read-onlyIdempotent

A SMALL, BOUNDED, in-Worker sanity-check backtest — NOT a full-universe backtesting engine. Answers a quick question like 'does this factor actually work on these 5 names over the last year' inline, mid-conversation, without leaving MCP. Composes two existing tools (get_pit_universe + get_pit_valuation_ratios) across up to 10 tickers x 12 rebalance dates (120 cells): for each rebalance date, checks which requested tickers were in the survivorship-free PIT universe on that date (dropping — never erroring on — a ticker not yet listed or already delisted), then pulls each surviving ticker's point-in-time TTM margins. Returns a flat {rebalance_date, ticker, factor_values, next_rebalance_date, next_factor_values} grid (FILINGS ONLY: no returns are computed, the tool takes no price input; next_factor_values is what the next filings showed, the same margins point-in-time on the following rebalance date, so 'did margins hold after this date' reads straight off the grid; see prices_note in the response) — a quick cross-sectional factor snapshot, NOT a transaction-cost-aware portfolio simulation or a statistically validated backtest result. If the requested grid exceeds 120 cells, this tool does NOT silently truncate — it returns a stream_fallback response (signed Parquet download URLs, same shape as get_compute_ready_stream) and tells you to use those URLs. For a REAL full-universe, multi-date, survivorship-free backtest, use the Python SDK's AlphaEngine (pip install valuein-sdk) looped over as_of dates client-side — this tool is explicitly the small complement to that, not a replacement for it. Pro and Institutional only: it composes get_pit_valuation_ratios (TTM financials), which needs the Pro plan, so the free plans receive an ENTITLEMENT_DENIED upgrade envelope before any read. Coverage follows your plan tier same as the two tools it composes.

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": {
      "tickers": "<tickers>",
      "rebalance_dates": "<rebalance_dates>"
    },
    "name": "run_backtest"
  }
}

Input Schema

NameRequiredDescriptionDefault
factorsNoWhich of get_pit_valuation_ratios's own output fields to include as factor_values. One or more of: gross_margin_pct, operating_margin_pct, net_margin_pct. Omit to include all of them.
tickersYes1-10 stock ticker symbols, e.g. ["AAPL","MSFT"].
rebalance_datesYes1-12 historical dates (YYYY-MM-DD) to snapshot TTM margins on. Order does not matter — the tool sorts them chronologically. Each cell also reports the factors as the NEXT date in the sorted list shows them (filings only, no returns).

Output Schema

NameRequiredDescriptionDefault
noteYes
_metaYesResponse metadata (provenance, point-in-time flag, freshness, request id and warnings). Every field is documented once in the agent contract (agent_contract.meta in the server's manifest.json).
cellsNo
cappedYes
methodYes
caveatsYes
droppedYes
factorsYes
streamsNo
summaryNo
tickersYes
pit_safeYes
next_stepNo
grid_cellsYes
prices_noteYesA one-line note on what this backtest does not use.
cells_computedYes
rebalance_datesYes
source_tools_usedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / rebalance_dates / description
      Previous value: -"1-12 historical dates (YYYY-MM-DD) to snapshot TTM margins on. Order does not matter — the tool sorts them chronologically. Forward return is computed from each date to the NEXT one in the sorted list."New value: +"1-12 historical dates (YYYY-MM-DD) to snapshot TTM margins on. Order does not matter — the tool sorts them chronologically. Each cell also reports the factors as the NEXT date in the sorted list shows them (filings only, no returns)."
    • addedOutput schema / properties / cells / items / properties / next_factor_values
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / cells / items / properties / next_rebalance_date
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / prices_note
      Added value: +{
      +  "description": "A one-line note on what this backtest does not use.",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "_meta",
      -  "method",
      -  "grid_cells",
      -  "cells_computed",
      -  "pit_safe",
      -  "capped",
      -  "source_tools_used",
      -  "caveats",
      -  "tickers",
      -  "rebalance_dates",
      -  "factors",
      -  "dropped",
      -  "note"
      -]New value: +[
      +  "_meta",
      +  "method",
      +  "grid_cells",
      +  "cells_computed",
      +  "pit_safe",
      +  "capped",
      +  "source_tools_used",
      +  "caveats",
      +  "tickers",
      +  "rebalance_dates",
      +  "factors",
      +  "dropped",
      +  "note",
      +  "prices_note"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / pit_safe / anyOf
      Previous value: -[
      -  {
      -    "const": true,
      -    "type": "boolean"
      -  },
      -  {
      -    "const": false,
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "examples": [
      +      true
      +    ],
      +    "type": "boolean"
      +  },
      +  {
      +    "examples": [
      +      false
      +    ],
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed2 schema fields changed
    • removedOutput schema / properties / method / enum
      Removed value: -[
      -  "compose",
      -  "stream_fallback"
      -]
    • addedOutput schema / properties / method / examples
      Added value: +[
      +  "compose",
      +  "stream_fallback"
      +]
  4. Changed4 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / cells / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / dropped / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / streams / items / additionalProperties
      Removed value: -false
  5. Changed24 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / properties / _meta / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / _meta / description
      Previous value: -"Provenance envelope — data lineage for every MCP response"New value: +"Response metadata (provenance, point-in-time flag, freshness, request id and warnings). Every field is documented once in the agent contract (agent_contract.meta in the server's manifest.json)."
    • removedOutput schema / properties / _meta / properties / as_of_date
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / _meta / properties / cost_usd
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Per-call cost transparency. Omitted for subscription-only and free tools, which have no MPP price.",
      -  "properties": {
      -    "amount_usd": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "basis": {
      -      "description": "mpp_charge = real pay-per-call charge (a card or MPP payment through agent-pay). mpp_rate_card = indicative price, not billed.",
      -      "enum": [
      -        "mpp_charge",
      -        "mpp_rate_card"
      -      ],
      -      "type": "string"
      -    },
      -    "billed": {
      -      "description": "true = this amount was actually charged via MPP for this call. false = indicative MPP-equivalent value only: no charge was made for this call (it was within your plan).",
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "amount_usd",
      -    "billed",
      -    "basis"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / data_plan
      Removed value: -{
      -  "description": "Access plan: sample | sp500 | pro | full",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / data_quality
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Server-side invariants run on this response",
      -  "properties": {
      -    "notes": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "validation_failed": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "detail": {
      -            "type": "string"
      -          },
      -          "rule": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "rule",
      -          "detail"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "validation_passed": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "validation_passed",
      -    "validation_failed",
      -    "notes"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / fundamentals_as_of
      Removed value: -{
      -  "description": "ISO timestamp when the FINANCIAL STATEMENTS were last rebuilt in bulk. Use THIS — not `last_updated` — when telling a user how current the cross-sectional fundamentals are. The snapshot is republished on every weekday price refresh while the statements are carried forward unchanged, so `last_updated` can be far more recent than the numbers it sits next to. It is a floor for a single filer, not a ceiling: a filer with a live partition receives its filing, facts and ratios intraday (minutes after EDGAR dissemination), so an entity-scoped read may carry a filing newer than this; cross-sectional ranks (factor scores, earnings signals) refresh with the weekly bulk export.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / last_updated
      Removed value: -{
      -  "description": "ISO timestamp when the snapshot was exported",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / latency_ms
      Removed value: -{
      -  "description": "Wall-clock milliseconds this tool call took, measured server-side around the handler.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / _meta / properties / limit_warnings
      Removed value: -{
      -  "description": "Soft-warning array for partial fulfillment. Each entry carries a stable subcode + remediation.options[]. AI agents pattern-match on subcode.",
      -  "items": {
      -    "additionalProperties": {},
      -    "properties": {
      -      "code": {
      -        "const": "LIMIT_EXCEEDED",
      -        "type": "string"
      -      },
      -      "current_plan": {
      -        "type": "string"
      -      },
      -      "extensions": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "limit_type": {
      -        "type": "string"
      -      },
      -      "limit_value": {},
      -      "remediation": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "contact_sales": {
      -            "type": "string"
      -          },
      -          "default_action": {
      -            "type": "string"
      -          },
      -          "options": {
      -            "items": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "pricing_page": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "options",
      -          "default_action",
      -          "pricing_page",
      -          "contact_sales"
      -        ],
      -        "type": "object"
      -      },
      -      "requested_value": {},
      -      "returned_value": {},
      -      "subcode": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "subcode",
      -      "limit_type",
      -      "current_plan",
      -      "remediation"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / _meta / properties / mpp_offer
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Present when figures still need payment: the MPP option (price, resource_url, request body) for the full run.",
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / mpp_override
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Set when this single response was paid for over MPP (card, agent-pay): the payment's order was honoured for this call only. agent-pay captures the payment only when this is present.",
      -  "properties": {
      -    "amount_cents": {
      -      "type": "number"
      -    },
      -    "category": {
      -      "type": "string"
      -    },
      -    "companies": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "company_count": {
      -      "type": "number"
      -    },
      -    "order_id": {
      -      "type": "string"
      -    },
      -    "run": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "run_token_hash": {
      -      "type": "string"
      -    },
      -    "scope_hash": {
      -      "type": "string"
      -    },
      -    "tool": {
      -      "type": "string"
      -    },
      -    "unlock_level": {
      -      "enum": [
      -        "pro",
      -        "full"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "order_id",
      -    "tool",
      -    "category",
      -    "amount_cents",
      -    "company_count",
      -    "scope_hash",
      -    "run_token_hash",
      -    "unlock_level",
      -    "companies",
      -    "run"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / mpp_verification
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Verification tools only, when some figures are outside the caller's plan. Figures the plan covers are always verified free; a Valuein account also verifies its first figures free, once, figures outside its plan included (the verification trial, size in pricing://current). served_free = own-plan figures plus trial figures; trial_used / trial_remaining = this run's draw and what the account has left; needs_payment = figures still to pay for (the paid verification run). A guest has no trial: note says how to get it.",
      -  "properties": {
      -    "figures": {
      -      "type": "number"
      -    },
      -    "needs_payment": {
      -      "type": "number"
      -    },
      -    "note": {
      -      "type": "string"
      -    },
      -    "served_free": {
      -      "type": "number"
      -    },
      -    "trial_remaining": {
      -      "type": "number"
      -    },
      -    "trial_used": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "figures",
      -    "served_free",
      -    "trial_used",
      -    "needs_payment"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / pit_safe
      Removed value: -{
      -  "description": "true iff a zero-look-ahead point-in-time cut was applied to every returned figure",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / _meta / properties / rate_limit
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Caller's remaining budget",
      -  "properties": {
      -    "limit": {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "remaining": {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "reset_at": {
      -      "description": "ISO 8601 timestamp when the window resets",
      -      "type": "string"
      -    },
      -    "window": {
      -      "enum": [
      -        "minute",
      -        "hour"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "limit",
      -    "remaining",
      -    "reset_at",
      -    "window"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / request_id
      Removed value: -{
      -  "description": "Per-request correlation id (8-char)",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / result_count
      Removed value: -{
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / _meta / properties / schema_version
      Removed value: -{
      -  "description": "Parquet schema version from manifest.json",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / snapshot
      Removed value: -{
      -  "description": "Snapshot directory name (e.g. snapshot_20260420)",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / source
      Removed value: -{
      -  "const": "SEC EDGAR",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / ticker
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / truncation
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Set when fewer rows were returned than requested — explains why and points to a remedy",
      -  "properties": {
      -    "current_plan": {
      -      "type": "string"
      -    },
      -    "plan_limit": {
      -      "maximum": 9007199254740991,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "reason": {
      -      "enum": [
      -        "PLAN_LIMIT",
      -        "DATA_NOT_AVAILABLE",
      -        "FISCAL_YEAR_BOUNDARY_FILTER",
      -        "OTHER"
      -      ],
      -      "type": "string"
      -    },
      -    "requested": {
      -      "maximum": 9007199254740991,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "returned": {
      -      "maximum": 9007199254740991,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "upgrade_required_for": {
      -      "type": "string"
      -    },
      -    "upgrade_url": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "requested",
      -    "returned",
      -    "reason"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / required
      Removed value: -[
      -  "data_plan",
      -  "schema_version",
      -  "snapshot",
      -  "last_updated",
      -  "source",
      -  "pit_safe"
      -]
  6. Changed3 schema fields changed
    • changedInput schema / properties / factors / description
      Previous value: -"Which of get_pit_valuation_ratios's own output fields to include as factor_values. One or more of: pe_ratio, ps_ratio, pb_ratio, ev_ebitda, ev_revenue, fcf_yield_pct, gross_margin_pct, operating_margin_pct, net_margin_pct. Omit to include all of them."New value: +"Which of get_pit_valuation_ratios's own output fields to include as factor_values. One or more of: gross_margin_pct, operating_margin_pct, net_margin_pct. Omit to include all of them."
    • changedInput schema / properties / factors / items / enum
      Previous value: -[
      -  "pe_ratio",
      -  "ps_ratio",
      -  "pb_ratio",
      -  "ev_ebitda",
      -  "ev_revenue",
      -  "fcf_yield_pct",
      -  "gross_margin_pct",
      -  "operating_margin_pct",
      -  "net_margin_pct"
      -]New value: +[
      +  "gross_margin_pct",
      +  "operating_margin_pct",
      +  "net_margin_pct"
      +]
    • changedInput schema / properties / rebalance_dates / description
      Previous value: -"1-12 historical dates (YYYY-MM-DD) to snapshot valuation multiples on. Order does not matter — the tool sorts them chronologically. Forward return is computed from each date to the NEXT one in the sorted list."New value: +"1-12 historical dates (YYYY-MM-DD) to snapshot TTM margins on. Order does not matter — the tool sorts them chronologically. Forward return is computed from each date to the NEXT one in the sorted list."
  7. Changed4 schema fields changed
    • removedOutput schema / properties / _meta / properties / price_as_of
      Removed value: -{
      -  "description": "ISO timestamp when the price surfaces were last refreshed.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / cells / items / properties / close
      Removed value: -{
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / cells / items / properties / forward_return_pct
      Removed value: -{
      -  "description": "(next rebalance date's close / this date's close - 1) x 100, using the RAW (unadjusted) close from queryPitValuationRatios. Null on the last rebalance date, or when the ticker has no computed cell at the next date.",
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • changedOutput schema / properties / cells / items / required
      Previous value: -[
      -  "rebalance_date",
      -  "ticker",
      -  "close",
      -  "factor_values",
      -  "forward_return_pct"
      -]New value: +[
      +  "rebalance_date",
      +  "ticker",
      +  "factor_values"
      +]
  8. Changed31 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / _meta / properties / cost_usd / description
      Previous value: -"Per-call cost transparency. Omitted for subscription-only tools that have no PAYG-equivalent price."New value: +"Per-call cost transparency. Omitted for subscription-only and free tools, which have no MPP price."
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / basis / description
      Previous value: -"payg_charge = real pay-per-call charge (a card or MPP payment through agent-pay). payg_rate_card = indicative price, not billed."New value: +"mpp_charge = real pay-per-call charge (a card or MPP payment through agent-pay). mpp_rate_card = indicative price, not billed."
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / basis / enum
      Previous value: -[
      -  "payg_charge",
      -  "payg_rate_card"
      -]New value: +[
      +  "mpp_charge",
      +  "mpp_rate_card"
      +]
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / billed / description
      Previous value: -"true = this amount was actually charged via PAYG for this call. false = indicative PAYG-equivalent value only: no charge was made for this call (it was within your plan)."New value: +"true = this amount was actually charged via MPP for this call. false = indicative MPP-equivalent value only: no charge was made for this call (it was within your plan)."
    • addedOutput schema / properties / _meta / properties / latency_ms / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / _meta / properties / limit_warnings / items / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / _meta / properties / limit_warnings / items / properties / extensions / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / _meta / properties / limit_warnings / items / properties / remediation / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / _meta / properties / limit_warnings / items / properties / remediation / properties / options / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _meta / properties / mpp_offer
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when figures still need payment: the MPP option (price, resource_url, request body) for the full run.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / _meta / properties / mpp_override
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Set when this single response was paid for over MPP (card, agent-pay): the payment's order was honoured for this call only. agent-pay captures the payment only when this is present.",
      +  "properties": {
      +    "amount_cents": {
      +      "type": "number"
      +    },
      +    "category": {
      +      "type": "string"
      +    },
      +    "companies": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "company_count": {
      +      "type": "number"
      +    },
      +    "order_id": {
      +      "type": "string"
      +    },
      +    "run": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "run_token_hash": {
      +      "type": "string"
      +    },
      +    "scope_hash": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "unlock_level": {
      +      "enum": [
      +        "pro",
      +        "full"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "order_id",
      +    "tool",
      +    "category",
      +    "amount_cents",
      +    "company_count",
      +    "scope_hash",
      +    "run_token_hash",
      +    "unlock_level",
      +    "companies",
      +    "run"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / _meta / properties / mpp_verification
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Verification tools only, when some figures are outside the caller's plan. Figures the plan covers are always verified free; a Valuein account also verifies its first figures free, once, figures outside its plan included (the verification trial, size in pricing://current). served_free = own-plan figures plus trial figures; trial_used / trial_remaining = this run's draw and what the account has left; needs_payment = figures still to pay for (the paid verification run). A guest has no trial: note says how to get it.",
      +  "properties": {
      +    "figures": {
      +      "type": "number"
      +    },
      +    "needs_payment": {
      +      "type": "number"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "served_free": {
      +      "type": "number"
      +    },
      +    "trial_remaining": {
      +      "type": "number"
      +    },
      +    "trial_used": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "figures",
      +    "served_free",
      +    "trial_used",
      +    "needs_payment"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / properties / _meta / properties / payg_override
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Set when this single response was paid for via the agent-pay PAYG flow — the rate-limit / depth-limit checks were bypassed for this call only.",
      -  "properties": {
      -    "amount_cents": {
      -      "type": "number"
      -    },
      -    "entity_scope_hash": {
      -      "type": "string"
      -    },
      -    "meter": {
      -      "type": "string"
      -    },
      -    "quote_id": {
      -      "type": "string"
      -    },
      -    "retry_token_hash": {
      -      "type": "string"
      -    },
      -    "ticker_count": {
      -      "type": "number"
      -    },
      -    "tool": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "quote_id",
      -    "tool",
      -    "meter",
      -    "amount_cents",
      -    "ticker_count",
      -    "entity_scope_hash",
      -    "retry_token_hash"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / _meta / properties / rate_limit / properties / limit / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / _meta / properties / rate_limit / properties / limit / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / _meta / properties / rate_limit / properties / remaining / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / _meta / properties / rate_limit / properties / remaining / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / _meta / properties / result_count / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / _meta / properties / result_count / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / _meta / properties / truncation / properties / plan_limit / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / _meta / properties / truncation / properties / requested / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / _meta / properties / truncation / properties / returned / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / cells / items / properties / factor_values / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / cells_computed / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / cells_computed / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / grid_cells / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / grid_cells / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / summary / additionalProperties
      Previous value: -trueNew value: +{}
  9. Changed1 schema field changed
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / basis / description
      Previous value: -"payg_charge = real charge (agent-pay or your balance). payg_rate_card = indicative price, not billed."New value: +"payg_charge = real pay-per-call charge (a card or MPP payment through agent-pay). payg_rate_card = indicative price, not billed."
  10. Changed2 schema fields changed
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / basis / description
      Previous value: -"payg_charge = real agent-pay charge. payg_rate_card = indicative price, not billed."New value: +"payg_charge = real charge (agent-pay or your balance). payg_rate_card = indicative price, not billed."
    • changedOutput schema / properties / _meta / properties / cost_usd / properties / billed / description
      Previous value: -"true = this amount was actually charged via PAYG for this call. false = indicative PAYG-equivalent value; your plan already covers this call for free."New value: +"true = this amount was actually charged via PAYG for this call. false = indicative PAYG-equivalent value only: no charge was made for this call (it was within your plan)."
  11. Added
  12. Removed
  13. Changed1 schema field changed
    • changedOutput schema / properties / _meta / properties / fundamentals_as_of / description
      Previous value: -"ISO timestamp when the FINANCIAL STATEMENTS were last rebuilt. Use THIS — not `last_updated` — when telling a user how current the fundamentals are. The snapshot is republished on every weekday price refresh while the statements are carried forward unchanged, so `last_updated` can be far more recent than the numbers it sits next to."New value: +"ISO timestamp when the FINANCIAL STATEMENTS were last rebuilt in bulk. Use THIS — not `last_updated` — when telling a user how current the cross-sectional fundamentals are. The snapshot is republished on every weekday price refresh while the statements are carried forward unchanged, so `last_updated` can be far more recent than the numbers it sits next to. It is a floor for a single filer, not a ceiling: a filer with a live partition receives its filing, facts and ratios intraday (minutes after EDGAR dissemination), so an entity-scoped read may carry a filing newer than this; cross-sectional ranks (factor scores, earnings signals) refresh with the weekly bulk export."
  14. Changed1 schema field changed
    • changedInput schema / properties / tickers / items / pattern
      Previous value: -"^[A-Za-z][A-Za-z0-9.\\-]{0,9}$"New value: +"^([A-Za-z][A-Za-z0-9.\\-]{0,9}|\\d{1,10})$"
  15. Changed2 schema fields changed
    • addedOutput schema / properties / _meta / properties / fundamentals_as_of
      Added value: +{
      +  "description": "ISO timestamp when the FINANCIAL STATEMENTS were last rebuilt. Use THIS — not `last_updated` — when telling a user how current the fundamentals are. The snapshot is republished on every weekday price refresh while the statements are carried forward unchanged, so `last_updated` can be far more recent than the numbers it sits next to.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / _meta / properties / price_as_of
      Added value: +{
      +  "description": "ISO timestamp when the price surfaces were last refreshed.",
      +  "type": "string"
      +}
  16. Changed2 schema fields changed
    • addedOutput schema / properties / _meta / properties / cost_usd
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Per-call cost transparency. Omitted for subscription-only tools that have no PAYG-equivalent price.",
      +  "properties": {
      +    "amount_usd": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "basis": {
      +      "description": "payg_charge = real agent-pay charge. payg_rate_card = indicative price, not billed.",
      +      "enum": [
      +        "payg_charge",
      +        "payg_rate_card"
      +      ],
      +      "type": "string"
      +    },
      +    "billed": {
      +      "description": "true = this amount was actually charged via PAYG for this call. false = indicative PAYG-equivalent value; your plan already covers this call for free.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "amount_usd",
      +    "billed",
      +    "basis"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / _meta / properties / latency_ms
      Added value: +{
      +  "description": "Wall-clock milliseconds this tool call took, measured server-side around the handler.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  17. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, and the description layers on the things annotations cannot express: tickers missing from the PIT universe are silently dropped rather than erroring, no price input exists and no returns are computed, the 120-cell overflow returns signed Parquet URLs, and free tiers receive an ENTITLEMENT_DENIED envelope before any read. The plan-tier/entitlement gating is exactly the kind of operational context that prevents a failed or misinterpreted call.

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?

The main point is front-loaded in the first sentence, but the paragraph is dense with parentheticals and repeats the same negation three times ('NOT a full-universe backtesting engine', 'NOT a transaction-cost-aware portfolio simulation', 'not a replacement for it'). One consolidated scope disclaimer plus the SDK pointer would carry the same information in noticeably less text.

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

Completeness5/5

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

For a composed, multi-tool, entitlement-gated operation this covers everything an agent needs: cell budget, drop-not-error semantics, the exact response grid fields, the absence of a returns computation, overflow behavior, and plan requirements. Output-schema existence is acknowledged rather than duplicated, with only the non-obvious `prices_note` referenced.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already carries the per-parameter contracts; the description nonetheless adds the derived constraint (10 tickers × 12 dates = the 120-cell cap) and reinforces the point-in-time meaning of rebalance_dates. It does not restate the factor enum or ticker pattern, which is correct since the schema owns those.

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

Purpose5/5

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

States a precise verb+resource with explicit scope boundaries: a bounded, in-Worker factor snapshot composing get_pit_universe and get_pit_valuation_ratios over up to 10 tickers × 12 dates. It also names what it is not (full-universe backtester, portfolio simulation, statistically validated result), so an agent can distinguish it from the sibling PIT tools and from the SDK-based path without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use scenario ('does this factor actually work on these 5 names over the last year', inline mid-conversation) and an explicit when-not-to-use with the named alternative (Python SDK AlphaEngine looped over as_of dates for real full-universe backtests). It also states the 120-cell threshold above which the tool redirects to stream_fallback URLs rather than truncating.

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.