inspect_table_blocks with its variable block when a user asks how a Variable is calculated, or why it behaves differently by segment or period. Use its read block to see which formula actually produced the numbers in a table.
Read a Variable’s saved formulas
- The result lists every formula definition saved on the Variable, each with its condition and its Actuals or Forecast range. A formula the product’s own level-default sync saved, such as a generated sum or
0on a number or the line formula above a percentage’s lines, carrieswriter: "level_default_sync"; a formula a person or Ari wrote has nowriter. Treat a formula with that writer as the product’s: the sync replaces or removes it when the tables or the line formula change. - Add
conditionsonly when the question needs one exact saved scope, such as["[Department = \"Sales\"]"]. Leave it out when the user wants every formula. - A Variable with many formulas returns them in pages. To read the next page, copy the response’s
next.afterintoafterin the samevariableblock, with the sametarget. - Leave out
targetto list every readable Variable in the Scenario, as the same entries, in saved order.nextcontinues the listing.
dimension block the same way to read a Dimension’s saved definitions, and the items block to list its items.
What reads each object
Eachvariable or dimension entry carries dependents, what reads the object at that snapshot:
A
delete without force is refused exactly when total is above 0, and deletes at once when it is 0.
How each definition’s scope is described
Each definition states itstime_grain when it is dated, and its reach in words. How results describe a formula’s reach explains the wording.
Imported Variables and Dimensions
For a Variable or Dimension read from an imported source, the entry’ssource_default also states order, such as last by MONTH or last by source order. It says how a column that shows one row per record picks that row when a record has several: by MONTH orders the record’s rows by the source’s date column, and by source order says the source has no date column to order by. With no date column, the pick is the same in every calculation, but it is not the row’s position in the source; last states the rule. A column that sums its rows has no order.
Read several at once
target on the variable and dimension blocks also takes a list of references:
sources, and an entry’s source.query_ref names its key there. A reference that matches nothing is refused in its own entry while the others still answer: No readable variable or dimension matches this target. The refusal lists up to five candidates of the requested kind, each with its readable name, a reference usable as the next target, its kind, and a closeness score, so Total Revenue suggests the saved Revenue. A candidate never selects anything.
Connect formulas to the values a table shows
Use theread block on the table that actually shows the result:
- Each row and column already carries its formula per range under
formulas, and a cell that breaks its row’s formula says so in the cell. formula_origins: "all"adds, for every row, each formula the engine ranked for it, best first, with the ones that computed a cell marked selected."zeros"adds them only to rows that show a zero, blank, or error. The default is"off", except that a selection of exactly one cell defaults to"all".- A row computed by a formula saved outside this table’s rows and columns names that formula’s owner and condition in
inherited_from. include_edit_rules: trueadds each returned row’s and column’s editing rules: the actions a write accepts there, its own Actuals and Forecast defaults with ownership and writability, and its formula roles.
Select rows and columns
- Select rows and columns by the references a read prints, by unambiguous names or full paths, or by coordinate predicates. A name in backticks selects the same row as the bare name.
- An item row is selected by its path from its Variable or axis Dimension, one bracket per breakdown level, as a readback prints it:
Revenue[West],Revenue[West][Enterprise],Employee ID[E-207]. The leading Variable may carry its reference suffix,Revenue#a1b[West], which picks one of two same-named Variables; for rows made only of items, the first item’s Dimension may lead the same way,Employee ID#c2d[E-207]. A selector that differs from exactly one saved coordinate only in whitespace or zero-width characters binds to it. - A nested item written without the items above it, such as
Revenue[Enterprise]forRevenue[West][Enterprise], selects the one saved coordinate that ends in it. When several do, the read is refused as ambiguous and names each. - A breakdown header’s reference, as a read prints it, such as
Revenue[Region]#a1b, selects the items the table shows at that level on the header’s own side: rows for a row header, columns for a column header. Unlike a selector that names an item, a header reference follows the table’s saved choice to hide empty items, so a level whose items are all hidden selects nothing.depthand pagination apply from the selected items. The same header on the other side is refused as not found, and items of the same Dimension under another row or column stay outside the selection. When the level is empty only because the table hides its empty items, the read adds one note that names the Dimension and the rule or saved filter hiding them, the same explanation a hidden item’s own selector is refused with. - A plain name that matches no saved coordinate is refused with rows selector “[name]” does not match a saved coordinate and a candidate list. When the name is a Variable shown elsewhere, the refusal adds [Variable#ref] is shown on table [Table#ref], up to three readable tables; when it is the Dimension that groups the axis, it adds [Dimension] is the dimension these rows break down by and, where predicates are accepted, the predicate that selects its items. Case and punctuation do not matter for that match; a
Name#hexreference or an ambiguous name keeps the plain refusal. - The item that holds rows with no value displays as None and is written
empty:Nonein a selector, such asRegion[empty:None]. - A text item is printed as written, even when it contains a colon. The read’s
memberfield, a receipt’smemberslist, and a row reference such asCash Step[Expected in: open invoice #483]#c00all write itExpected in: open invoice #483, and a formula matches that exact text. - A read that names rows or columns by item holds every item of the layout, zero and empty items included, whatever the saved display hides; a header reference is the exception above and selects the displayed items. A read that names none shows what the app displays.
Which targets take a write
Each rendered target’s formulas say whetherformula and clear_formula can be written there. A target whose cells a direct write would refuse, such as cells that show a source read the engine generates for a Variable with no saved formula, or cells whose origin the read cannot establish, does not offer those actions; that read-only target’s formula carries a readOnlyReason instead, so a write is not attempted where it would fail. A Variable whose saved formula reads an imported column, such as sum(<column>) at [], is writable: a cell formula saves at that cell’s address and a column formula at the column’s grain, beside the source read, which keeps supplying every other cell.
The field name differs by level: a rendered target’s formula names it readOnlyReason, while a row or column that cannot be written names its own reason read_only_reason beside writable: false. Dated Actuals and Forecast defaults keep their own writability.
Facts the read computed
Aread result also carries figures, facts about the returned numbers that no row or column states. Each key appears only when its fact holds:
Receipts from
edit_table_blocks carry no figures.
Read a table that compares Scenarios or periods
- A read of a table that compares Scenarios returns every compared Scenario’s value when
columnsnames periods: one column reference per Scenario and period, each labeled with its Scenario. - A table that compares Scenarios in rows (
layout: ROWS) returns each named row once per compared Scenario whenrowsnames rows, each labeled with its Scenario. - In such a table, a Variable, item, or period selector names the selected Scenario’s row. A Dimension-led path such as
Employee ID[RW-1024]is a selector of this kind. The result returns that row together with its copy for each compared Scenario. - A compared row’s own ref selects that row alone.
- When a compared Scenario returns no values, the result carries a
comparison_scenario_missingissue, and coverage readsincomplete. comparisondefaults to"saved", the table’s saved comparison."none"reads the selected Scenario’s own values and formulas, andformula_origins: "all"annotates such a read with the formula each cell used.- A
comparisonobject compares the selected Scenario with each Scenario it names in this one read, whatever the table saves, and leaves the saved table unchanged:{"scenarios": ["Budget"], "measures": ["VALUE", "DELTA"]}.measurestakes up to three ofVALUE,DELTA(the compared Scenario minus the selected one), andPERCENT(DELTAover the selected Scenario’s value); it defaults toVALUE. - A column or row that is not the selected Scenario’s own reads
writable: false, with aread_only_reasonthat says what it shows: another Scenario’s values, saved in that Scenario; another period’s values, saved in that period; or the difference between two Scenarios or two periods, which is calculated and has no saved value. - The comparison qualifier alone makes nothing read-only. The selected Scenario’s own column or row is as writable under either reference the read prints, with or without the qualifier, as the same cells are in a read with no comparison.
List tables and their layouts
listwithoutlimitreturns every table in the Scenario, and pages withnext.afterwhen the result ends early.- With
target, it returns each named table’s full saved layout. A table whose layout is larger than one result comes back as the summary entry a list withouttargetreturns, with alayout_problemnote that states why; areadof that table pages through its rows and columns.
Read a monthly table by quarter or year
read takes grain: "QUARTER" or "YEAR" to read a table’s Date periods at a coarser grain than the saved table’s own, without changing the table:
- Each period holds what the Model calculates at that grain: the Variable’s time rollup (its base periods summed, closed, or averaged), or a timeless formula recomputed there.
- A Variable with neither reads
#NO_ROLLUPin those cells, explained as no formula computing it at that grain, with its values in the table’s own periods. The app shows such a cell as 0, and a Scenario or time comparison read at a coarser grain also shows 0 there. - The period columns come back
writable: false, because their references name the date each period starts and would name the saved month column in a write. A read at the grain the table already shows is the table’s plain read, with writable period columns. - A finer grain, or a table with no Date axis, comes back as an
invalidresult rather than a tool error, with its reason:grain QUARTER is finer than this table's YEAR periods; a read's grain shows the periods at their own grain or rolled up to a coarser one, orgrain QUARTER sets the grain of a table's Date periods, and this table has no Date axis. - Continuation cursors carry the grain.
2027 or FY2027 selects a year column, Q3 2026 or 2026 Q3 a quarter column, and Mar 2026 a month column. 2027 never selects January of a monthly axis. The stored form, such as 2027-01, still works everywhere. On a table that shows a year, half, or quarter column beside monthly columns, a month selector such as 2027-01 or Jan 2027 names the month column rather than the coarser column that starts in that month, and 2027 names the year column. The month wins only over coarser columns of its own period: a coarser column from another period that carries the same label, such as a cohort member labeled 2027-01 under the 2026 year row, is still ambiguous with it, and that refusal’s candidates carry their grain, as 2027-01, YEAR grain and 2027-01, MONTH grain.
A plain read of a table whose only column axis is Date, with no comparison and no saved query, calculates each run of consecutive requested periods on its own and merges the runs, so 2027-01, 2027-12, and 2028-08 calculate three months, not twenty. Consecutive periods still make one calculation. A comparison read, a table with dates on rows or nested with another column axis, and a read with include_inputs, an input explanation, or a where predicate calculate the whole span as before.
When the table cannot calculate
When the calculation service cannot compute a table,read still returns the saved configuration: the rows, their default formulas and formatting, and the saved column axes. No cells come back.
- Each axis entry is marked
axis: trueand carries its Dimension, grain, and writability, such as{"ref": "Date#10b", "axis": true, "dimension": "Date", "grain": "MONTH", "writable": true}, so an emptycolumnslist never stands in for a Date axis that exists. - The result carries a
calculation_unavailableissue. When the calculation service explained the failure, the message includesThe calculation service reported <code>: <message>, such astable_config/external_column_not_mapped: external column Class L1 is not mapped in table …, so you can name the cause instead of guessing. - The issue also carries
category(capacity,model,request,dependency, orinternal), atransientflag, and a sentence stating what the category means. Retry only a transient failure: a calculation that did not finish within its time limit iscapacityand not transient, while a service that did not answer isdependencyand transient. A calculation the service had to stop for crossing its memory or time limit answerscapacity/calculation_memory_limitorcapacity/calculation_time_limitafter one attempt, with the limit it crossed indetails; the memory failure is transient only when memory left from earlier calculations filled at least half the limit, so a fresh worker could fit the same request. - A failure the calculation service did not classify carries the error as raised, clipped to 500 characters, with no
categoryortransientflag, so assume nothing about a retry. - When the read chose its own comparison, the message says which one the failed calculation used:
The failed calculation used this read's own comparison: scenarios "Main (Evidence)", "Plan+", measures VALUE., orThe failed calculation used this read's comparison none, with no compared scenario.When the table saves a comparison, it addsThe comparison field lists the table's saved comparison., because the answer’scomparisonfield shows the saved one, not the one requested.
table_problem issue names the former Scenario. An edit_scenarios delete lists the readable tables that compared against the deleted Scenario as tables_comparing_against_it.
A read can also carry a mapping_warning issue, the same one a table write’s receipt reports. Read the receipt states when it appears and quotes its sentence.
Explain one cell’s inputs
For a single cell, select one row and one column and addinclude_inputs: true:
- The result shows one level of the formula’s inputs and where each value came from: lookup coordinates, aggregate units, the selected formula, and source dates. Read an input by its own reference to go deeper.
sourceslists the imported tables whose fetched values fed the cell, or fed the cells that the cell’s formula directly reads, one whole table per entry and never a record.sources_statussays how complete that list is:available,truncatedwhen one of the engine’s bounds cut the search, ornot_retainedwhen the calculation recorded no such table within that reach, which says nothing about whether imported data feeds the cell.include_inputsneedscomparison: "none". On a time or Scenario comparison, the read answers with an invalid-input refusal that names the option, not a tool error.- The inputs come from a second calculation after the table’s own. When that calculation does not finish, the read keeps the calculated values and adds one note that opens “include_inputs: the calculated values on this page are complete. Its input rows are unavailable.” and ends with the cause. It is “The input calculation was still running at the read’s answer deadline; the read answers within 239 seconds.” when the calculation was still running at that deadline; the 239 seconds is the server’s own deadline for the read, while an MCP request ends after about 120 seconds, so an MCP caller sees its request time out before that note can arrive and should read without
include_inputsor with a smallerwindow. The note is “The input calculation stopped: ” followed by the calculation service’s reason when the service refused or stopped the calculation for capacity, such as a time or memory limit, with “The service marked this refusal as temporary.” added when the service said so. The read retries nothing. A cancellation, or a failure of any other category, stays an error.
read also reports calculation.source. When a value is in doubt, Verify the calculated values says when to read again with recalculate: true.
Read the Model at an earlier point
Useas_of_point when the user asks about the Model as it was at a previous saved change; leave it out for the current state. Read the Model at an earlier point lists the point types.
inspect_canvas_blockstakes it too, and returns each block’sdataset_layoutsat that point.inspect_table_blocksitemsreads the source run the Model used at that point.boundsreads current source state and refusesas_of_pointwithbounds reads current source state; as_of_point applies to items.