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-label-tables
kind: tool
description: List registered label tables — ID→display-name dictionaries for categorical fields.
type: reference
applies_to: mcp

When to use

CALL TO FIND WHICH CATEGORICAL FIELDS CAN BE RESOLVED BY DISPLAY NAME. Run it before pulse_label_resolve. Output surfaces already render these labels automatically — this tool and pulse_label_resolve are for the INPUT direction: turning a user-supplied name into the raw categorical key a filter / grouper needs.

Input

No arguments.

Output

descriptor.Envelope wrapping []LabelTableInfo: name, row_count, enumerable (bool — whether reverse-searchable). Empty array when no tables registered (never null). Tables are loaded from $PULSE_LABEL_TABLES_DIR/*.json at pulse.New time, or supplied programmatically via Options.LabelTables.

Gotchas

  • enumerable=false tables are forward-only (key→label); pulse_label_resolve rejects them with a clear error.
  • Labels are OUTPUT-only — filter / group / sort keys still operate on the raw categorical value. The reverse resolution is for translating user-supplied names into keys.
  • Table names are the JSON filename stem (e.g. brand.json → "brand").

See