name: tool-lookup-tables
kind: tool
description: List registered lookup tables — named numeric tables lookup() reads — with their key axes and cell counts, never their cells.
type: reference
applies_to: mcp
When to use
CALL TO FIND WHICH LOOKUP TABLES EXIST AND THEIR KEY AXES BEFORE WRITING A LOOKUP() CALL.
Rate grids, multipliers, per-segment constants: each table answers lookup("table", k1, k2, …) with a number. This is the INPUT direction — which tables exist and which keys each accepts, in argument order.
Input
pulse_lookup_tables takes no arguments.
Output
{tables: [...]} (no envelope), in name order. Each entry:
name,description(absent when none).has_rows_data—truefor a static table,falsefor a function-driven one.cell_count— the static table’s number of cells; ABSENT on a function-driven table, whose cells cannot be counted.keys— the declared axes inlookup()argument order, each{name, values}(inline) or{name, range_table}(the range table’s labels are the values).[]when none are declared: the keys are then free-form.complete— every combination of the axes’ values has a cell.
Never a cell value. Empty array when none registered (never null). Tables come from Options.Extensions.LookupTables or $PULSE_LOOKUP_TABLES_DIR/*.json at pulse.New time.
Gotchas
- Empty registry returns an empty list, NOT an error.
- Keys are stringified and joined with
|: the number1is the axis value"1". - A combination the table lacks — an off-axis key, or a gap in a table that is not
complete— fails the request withPULSE_LOOKUP_MISS; there is no default. A literal call with an off-axis key is refused before any record. - A
range_tableaxis is fed byrange_label(table, x). pulse_range_tableslists that table’s labels.- Unrelated to the cohort point lookup (
tool-lookup).
See
lookup-formulas—lookupandrange_labelsemantics and the rate-grid pattern.tool-range-tables— the range tables arange_tableaxis names.expression-language— wherelookup()is callable.