Publish a benchmark
Deploy an index and make it public in the directory.
A benchmark is an index other people depend on. That raises the bar in two places: the rebalance logic has to be stable and auditable, and the index has to keep calculating on a schedule without anyone touching it. This guide covers the standard shape for a benchmark workflow, then the path from a backtest to a published index other teams can read.
The two-flow pattern
A benchmark almost never runs its selection logic and its weighting logic on the same schedule. Membership changes rarely and deliberately — that is a reconstitution. Weights are refreshed more often to keep the index close to its stated methodology — that is a rebalance. Putting them in one flow forces both to share a cadence, which is wrong in both directions: either membership churns quarterly, or weights go stale for a year.
The fix is two triggers in one workflow, wired as below.
- Flow A, annually: trigger 0 fires on 1 January, aligned to the preceding XNYS close.
- core_securities_reference (1) builds the eligible cross-section; i1_core_quote (4) attaches market cap; filter (5) takes the top 500.
- create_index_universe (6) persists that membership list. Flow A ends here — it never touches weights.
- Flow B, quarterly: trigger 00 fires on 1 January, April, July and October.
- get_index_universe (01) reads back the stored universe with an as_of time filter — the membership decided at the last reconstitution.
- i1_core_quote (02) prices those members today; create_index_weighting (03) weights them proportionally by market cap.
- create_index_holdings (04) converts weights into share counts and a divisor.
The join between the flows is get_index_universe with {"field": "time", "operator": "as_of"}. With no value, as_of defaults to the request time, so it selects the single latest universe snapshot at or before this rebalance. In January the two flows fire on the same date and the rebalance picks up that morning's new membership; in April, July and October it picks up the same January list.
Note also that the rebalance reads 01.output#security — the universe table's identifier column is security, not id. Column names differ between operations and are worth checking with a preview run rather than assuming.
Why the split matters for auditability
Before deploying
Deploying computes and persists real history under a real index id. Get the graph right first.
- 1
Preview the fragments
Run the selection flow alone through
POST /execute(or MCPrun_workflow) and check the row count and the columns. A benchmark that quietly selects 480 names instead of 500 because a filter dropped nulls is the kind of thing you want to find now. - 2
Validate the whole workflow
MCP
validate_workflowchecks the structural rules — every flow starts with a trigger, the workflow includescreate_index_holdings, every flow persists a result — and the parameter schemas. It returns structured issues rather than a boolean. - 3
Backtest over the full intended history
POST /simulate, or MCPrun_backtest. Check that the level series is continuous across every reconstitution date; a step change there means holdings and divisor disagree. - 4
Fix the start, then stop changing the graph
start_time,start_valueandstart_divisordefine the series a consumer will quote forever. Changing them after publication restates every point.
Deploy
Over REST, deployment is POST /workflows. It validates the graph, answers 202 with the new idx_ id and a bkt_ id, then runs the backtest and registers the index in the background — poll GET /workflows/{workflow_id} until stage leaves pending. POST /simulate only ever simulates; it creates nothing.
The MCP equivalent is deploy_index, which takes either a saved workflow_id or inline index_parameters and requires confirm=true. Both paths run the same code, including the check that refuses to create an index whose backtest produced no holdings.
deploy_index
Create a LIVE index from a saved workflow_id or inline index_parameters: validates AND preview-verifies the workflow (runtime problems bounce with hints; verify=false skips the preview), then runs a full backtest, persists its history, and registers the index for continuous scheduled calculation. Requires confirm=true. Returns the pending index_id + backtest_id immediately — poll get_index(index_id) or get_backtest(backtest_id) until the index lands on 'live' or 'failed' (deployed_index_id appears in get_backtest when done).
Arguments
| Field | Type | Description |
|---|---|---|
workflow_id | string | Saved workflow id to deploy. |
index_parameters | string | JSON string of index_parameters (alternative to workflow_id). |
start_time | string | History start, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'. |
end_time | string | History end, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS' (defaults to now). |
confirm | boolean | Must be true to actually deploy. |
verify | boolean | Default true: runs the full workflow once in preview to catch runtime problems (a column the upstream op doesn't output, filters matching nothing, runaway leverage, an empty index) and returns them as actionable issues before doing the work. Auto-skipped when this exact workflow already ran cleanly this session. Set false only to skip the preview deliberately. |
curl -X POST "https://mcp.indexone.io" \-H "content-type: application/json" \-H "accept: application/json, text/event-stream" \-H "x-api-key: YOUR_API_KEY" \-d '{"jsonrpc": "2.0","id": 1,"method": "tools/call","params": {"name": "deploy_index","arguments": {"workflow_id": "idx_bh7fgXWJMaa3","confirm": true}}}'
deploy_index is the one irreversible step
run_backtest never creates a live index. deploy_index does, and the confirm=true flag exists so
an agent cannot do it by accident. Once deployed, the index has an id that consumers can reference and a schedule
that keeps calculating. Treat it as a publication event, not an experiment.A full-history deploy takes minutes, so the tool returns a bkt_... id immediately. Poll it with get_backtest; deployed_index_id appears there when the run finishes, and that is the idx_... id you publish.
- 1
Save the workflow as a draft
MCP
save_workflowwith noworkflow_id. It validates first and returns the draft id.{ "name": "save_workflow", "arguments": { "index_parameters": "{ …the JSON string… }" } } - 2
Deploy it
Explicit confirmation, and a history start that matches the workflow's
start_time.{ "name": "deploy_index","arguments": { "workflow_id": "idx_…", "start_time": "2019-12-31 00:00:00", "confirm": true } } - 3
Poll for the live id
Repeat until
deployed_index_idis present.{ "name": "get_backtest", "arguments": { "backtest_id": "bkt_…" } } - 4
Confirm it is calculating
Read
index-values-eodfor the new id after the next session close. A live index gains one row per session.curl -G "https://api.indexone.io/query" \--data-urlencode "table=index-values-eod" \--data-urlencode "pk=idx_…" \--data-urlencode "order=descending" --data-urlencode "limit=3" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"
Publishing it
A deployed index is visible to your team only. Who else sees it, and how much, is the Access grid on the index's Edit page: publish it to the workflows directory, share it by link only, or share it with named teams — and for each audience choose what they see, down to the top N constituents, the factsheet, the methodology and downloads. Team Settings holds the defaults every index inherits. Featured indices are additionally surfaced on the directory landing page.
Once public, an index shows up under list_workflows with scope: "public" — that is how a consumer or an agent discovers it without being told the id.
list_workflows
List saved workflows. scope='team' (the user's), 'public' (public/featured), or 'all'. To find a named index, pass search=[<every fragment the name might carry>]: a workflow matching any fragment is returned, tagged with which matched, and fragments that hit nothing are listed back. The plain listing is sorted by name and cut at 'limit', so the one you need may not be in it (the response says when it was cut).
Arguments
| Field | Type | Description |
|---|---|---|
scope | "team" | "public" | "all" | Default 'team'. |
search | array | One or more case-insensitive fragments matched on name/description/id; put every candidate name in the same call. |
limit | integer | Default 50. |
offset | integer | Skip the first N (pagination). |
curl -X POST "https://mcp.indexone.io" \-H "content-type: application/json" \-H "accept: application/json, text/event-stream" \-H "x-api-key: YOUR_API_KEY" \-d '{"jsonrpc": "2.0","id": 1,"method": "tools/call","params": {"name": "list_workflows","arguments": {"scope": "public","limit": 10}}}'
What consumers do next
Publish the id and the series name together. A benchmark quoted without saying whether it is price return or total return is ambiguous by several percent a year.
# The definition — calendar, rebalance cadence, value seriescurl -G "https://api.indexone.io/query" \--data-urlencode "table=index-parameters" --data-urlencode "pk=idx_…" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"# The level seriescurl -G "https://api.indexone.io/query" \--data-urlencode "table=index-values-eod" --data-urlencode "pk=idx_…" \--data-urlencode "order=ascending" --data-urlencode "limit=1000" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"# Current constituentscurl -G "https://api.indexone.io/query" \--data-urlencode "table=index-holdings" --data-urlencode "pk=idx_…" \--data-urlencode "order=descending" --data-urlencode "limit=1" \--data-urlencode "map_symbols=true" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"
Consumers who would rather be pushed to than poll should be set up with a delivery instead — a scheduled graph that emails, POSTs or SFTPs the panel after each publication. See Set up a delivery.
Keeping it stable
- Editing a live workflow's operations through
save_workflowtriggers a live reload. That is the intended way to fix a bug, but it changes future calculation — record why. - A restatement rewrites history that was already published. Consumers who cached the old values will not notice unless you tell them; see Corporate actions.
- Universe and weighting tables are the audit trail. Do not prune them.
- Alignment settings are part of the methodology. Changing
trading_dayorsession_timemoves every future rebalance date.