Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

name: tool-range-tables
kind: tool
description: List registered range tables — named, reusable sets of labeled date or numeric ranges.
type: reference
applies_to: mcp

When to use

CALL TO FIND WHICH NAMED RANGE SETS EXIST BEFORE GROUPING OR FILTERING BY ONE. Fiscal quarters, campaign windows (date tables); train/holdout splits, score bands (numeric tables). This is the INPUT direction: turning a table name into the usable {label, start, end} range set an operator resolves.

Input

No arguments.

Output

{tables: [...]} (no envelope), each with name, kind (date | numeric), range_count, and the ordered {label, start, end} entries — ranges on a date table (ISO date literals), numeric_ranges on a numeric one (numbers); a bound is omitted when open. Empty array when none registered (never null). Tables are supplied programmatically via Options.Extensions.RangeTables or loaded from $PULSE_RANGE_TABLES_DIR/*.json at pulse.New time.

Gotchas

  • Empty registry returns an empty list, NOT an error.
  • Ranges are validated at pulse.New time (non-overlapping, unique labels, non-empty, parseable bounds) — a listed table is always safe to reference.
  • A table is typed by its bounds. Date bounds are inclusive; numeric bounds half-open [start, end); an empty/absent bound is open.
  • A table of the other kind is refused PULSE_RANGE_TABLE_KIND_MISMATCH: date tables feed the date-range operators, numeric tables the numeric-ranges grouper.
  • Entries are calendar days with no zone of their own: over a datetime they match the local day in the referencing slot’s resolved zone, exactly like inline ranges.
  • Reference a table by name as params.table on the grouper or filter (in place of params.ranges) — do not re-inline the ranges.
  • In an expression, range_label(table, x[, unmatched]) names the range holding x — a band to compare or a lookup key (lookup-formulas).
  • A materialize output column’s bucket.range_table names one too, writing the labels as a categorical (materialize-recode).

See