GASP Standard
v1.27.0MCP server for the GASP Standard: SaaS metric definitions, formulas, benchmarks, the entity and metric graph, access governance, query generation and the Ossie…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lookup_metric Look up a GASP metric
The full record of one GASP Standard metric: department, category, signal type, page URL, definition, the formulas as written, the canonical GASP grammar formula (unit, forms, variants, breakdowns, fields and datasets), benchmarks, validation rules, common mistakes, sources, aliases, the entities it measures, operating and market forms, any adjusted variant and the recommended sensitivity tier and access scope. The name must match exactly, ignoring case: formula id, graph node id, full name, name without its abbreviation, abbreviation, graph label, alias or slug. A name several departments use…
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact metric name, abbreviation, alias, slug or formula id, case-insensitive (e.g. 'MRR', 'Net Revenue Retention', 'CAC Payback', 'product_activation_rate'). Prefix the department to pick between metr… |
list_metrics List GASP metrics
List GASP Standard metric names grouped by department and category, with the total, optionally filtered by department, signal type or both. Names only: use lookup_metric or get_formula for a metric's details. A metric cross-referenced from another department is listed under both (NRR under Core and Customer Success). The Core tier is the 'Core' department. An unknown department returns close names and the department list.
| Parameter | Type | Description |
|---|---|---|
department | string | Department name, case-insensitive, with spaces or hyphens (e.g. 'Sales', 'customer success', 'customer-success', 'Core'). Omit to list every department. |
signalType | string | outcome, leading, efficiency or operational. Matches a metric's primary or secondary signal type. |
get_formula Get a canonical formula
The canonical formula of one GASP Standard metric in the GASP grammar, with its unit, operating (O) and market (M) forms, named variants, breakdowns (one row per value of a field or bucket; total() reads the whole population), notes, the metrics it reads with role and polarity, the fields and datasets the formula and each form read, the enum filters each form applies (so forms reading the same fields show where they differ) and the formula as written in the standard. A metric that cannot be computed as one formula gives the reason. Names resolve as in lookup_metric. Use get_data_requirements f…
| Parameter | Type | Description |
|---|---|---|
metric * | string | Exact metric name, abbreviation, alias or formula id (e.g. 'NRR', 'LTV', 'CAC Payback', 'aging_buckets'). A name several departments use returns the candidates to choose from. |
get_relationships Get a metric's relationships
One node of the GASP relationship graph (a metric, entity or concept) with its description, category and level and its direct edges, each neighbour with its edge type and description: upstream (edges into it), the metrics that measure it, downstream (edges out of it) and, for a metric, the entities it measures. For an entity it also lists every metric whose formula reads the entity's datasets, with department and URL. Edge types: drives, reduces, predicts, component and measures (metric signal); owns, grants, parent_of and priced_by (structural); converts_to (lifecycle); submits and engages_vi…
| Parameter | Type | Description |
|---|---|---|
metric * | string | Metric name, abbreviation or graph id (e.g. 'NRR', 'arr'), entity (e.g. 'customer', 'subscription') or concept (e.g. 'revenue', 'bookings'). Entity and concept names win over a metric with the same na… |
get_data_requirements Get a metric's data requirements
What a warehouse needs to compute GASP Standard metrics: per metric, a row for each field and dataset pair the canonical formula reads with its type, whether it is staged (a cohort or prior-period comparison), source system, grain, frequency, page URL and example SQL compiled from the formula. Pass metric for one metric (resolved as in lookup_metric), department for every metric in it, both to pick between metrics that share a name and neither for every metric with a formula. breakdown names a breakdown the metric declares (get_formula lists them, e.g. 'by_plan' on MRR): the fields then includ…
| Parameter | Type | Description |
|---|---|---|
breakdown | string | Name of a breakdown the metric declares (e.g. 'by_plan' or 'by_segment' on MRR); needs metric. The requirement then covers the breakdown's query, one row per value. An unknown name lists the declared… |
department | string | Department name, case-insensitive (e.g. 'Sales', 'Engineering', 'customer success'). Alone it returns every requirement in the department; with metric it picks between metrics that share a name. |
dialect | string | Dialect of the example SQL: postgres (default, also Redshift), snowflake, bigquery or databricks. Any but postgres needs metric. |
metric | string | Exact metric name, abbreviation, alias or formula id (e.g. 'ARR', 'Pipeline Coverage Ratio', 'CSAT') |
search Search the GASP Standard
Find GASP Standard metrics and glossary terms when you do not know the exact name. The query matches as a phrase of whole words, the last word allowing a plural or verb ending ('churn' finds 'churned'), against metric names, aliases, definitions, formulas, the fields each formula reads, categories and departments, plus glossary terms, definitions and sections. Returns up to 10 results, one per metric or term, each with its type, department, what matched, a snippet and its URL. Names, aliases and terms rank first, then words within them, then definitions, then formulas and fields. When nothing…
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to find (e.g. 'churn', 'retention', 'pipeline coverage', 'opportunity_stage') |
generate_query Generate SQL for a metric
SQL for one GASP Standard metric against your warehouse, compiled from its canonical formula and filled from your adapter: one scalar subquery per aggregate, each reading the table mapped to its GASP dataset, with :period_start and :period_end date parameters (both inclusive). Pairs you have not mapped stay as {{field@dataset}} placeholders, where the tag names the GASP dataset the column must come from; the output lists them with any dataset that has no table and any mapping conflict, plus the URL, dialect, datasets, grain and the mapping it used. breakdown names a breakdown the metric declar…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | Your mapping as text: a GASP adapter (JSON; schema: https://gaspwiki.com/schemas/gasp-adapter-v1.json) or an Ossie mapping document (YAML or JSON). Check it with validate_mapping first. |
metric * | string | Exact metric name, abbreviation, alias or formula id (e.g. 'NRR', 'CAC', 'Pipeline Value', 'ARR'), resolved as in lookup_metric |
breakdown | string | Name of a breakdown the metric declares (e.g. 'by_plan' on MRR). The query returns one row per value of the breakdown's field or bucket. An unknown name lists the declared ones. |
dialect | string | SQL dialect: postgres (also Redshift), snowflake, bigquery or databricks. Omit to use the adapter's warehouse when it names one of them (postgresql and redshift read as postgres), else postgres. |
semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON), so table names and field expressions resolve. Ignored for a GASP adapter. |
validate_mapping Validate a mapping
Check a warehouse mapping against the GASP Standard and score its coverage. Accepts either format: a GASP adapter (JSON; schema https://gaspwiki.com/schemas/gasp-adapter-v1.json, versions 1.0 and 1.1) or an Apache Ossie mapping document (YAML or JSON) over your semantic model, which you can pass as semantic_model. A GASP adapter is converted on load into an Ossie mapping over a model synthesised from its tables and columns. Layers, each reported in its own section: the schema (the adapter JSON Schema with each violation's JSON path; the Ossie mapping schema for the Ossie form), GASP's cross-do…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | The mapping as text: a GASP adapter (JSON; template: https://gaspwiki.com/downloads/gasp-adapter-template.json) or an Ossie mapping document (YAML or JSON; reference: https://gaspwiki.com/downloads/os… |
semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON), so its datasets, fields, keys and sources are checked. Without it, names are taken from the mapping's expressions. |
validate_adapter Validate an adapter
Same as validate_mapping, under the tool's original name. Check a warehouse mapping against the GASP Standard and score its coverage. Accepts either format: a GASP adapter (JSON; schema https://gaspwiki.com/schemas/gasp-adapter-v1.json, versions 1.0 and 1.1) or an Apache Ossie mapping document (YAML or JSON) over your semantic model, which you can pass as semantic_model. A GASP adapter is converted on load into an Ossie mapping over a model synthesised from its tables and columns. Layers, each reported in its own section: the schema (the adapter JSON Schema with each violation's JSON path; the…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | The mapping as text: a GASP adapter (JSON; template: https://gaspwiki.com/downloads/gasp-adapter-template.json) or an Ossie mapping document (YAML or JSON; reference: https://gaspwiki.com/downloads/os… |
semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON), so its datasets, fields, keys and sources are checked. Without it, names are taken from the mapping's expressions. |
compile_model Compile GASP metrics into an Ossie model
Compile the GASP Standard metrics your mapping covers into your Apache Ossie semantic model. Takes the same input as validate_mapping (a GASP adapter, or an Ossie mapping with your semantic_model) and returns your model with a gasp_ metric for every formula entry whose fields are all mapped (main formula, O and M forms, variants and named breakdowns): a direct OSSIE_SQL_2026 expression over your datasets and fields where the expression language can state it, else staged through a dataset whose source is the compiled SQL over your tables in your warehouse dialect (a gasp_staged_ dataset with on…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | Your mapping as text: a GASP adapter (JSON; schema: https://gaspwiki.com/schemas/gasp-adapter-v1.json) or an Ossie mapping document (YAML or JSON). Check it with validate_mapping first. |
department | string | Compile every metric of one department (e.g. 'Core'); combines with metrics. |
dialect | string | SQL dialect of the staged sources: postgres (also Redshift), snowflake, bigquery or databricks. Omit to use the adapter's warehouse when it names one of them, else postgres. |
metrics | string | Comma-separated metric names, abbreviations, aliases or formula ids to compile (each resolved as in lookup_metric), with their forms, variants and breakdowns. Omit for every metric. |
output | string | 'model' (default) returns the coverage report with the compiled model as YAML; 'report' returns the coverage alone. |
period_spine | string | The table of (period_start, period_end) rows the staged sources read, as it is named in your warehouse. Default gasp.period_spine. |
semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON). The metrics compile into it, reading its sources and field expressions. Without it, dataset names stand for tables and every field i… |
compile_target Compile GASP metrics into your engine's own format
Compile the GASP Standard metrics your mapping covers into the files of your semantic-layer engine. Takes the same input as compile_model (a GASP adapter, or an Ossie mapping with your semantic_model), compiles the metrics the same way and writes them in the engine's own format and your warehouse's SQL: target 'snowflake' gives a Cortex Analyst semantic model YAML (tables with database.schema.table base tables, time dimensions, dimensions, facts, relationships and the gasp_ metrics; loadable as a semantic view) plus staged_views.sql, the views the staged metrics read and the period spine table…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | Your mapping as text: a GASP adapter (JSON; schema: https://gaspwiki.com/schemas/gasp-adapter-v1.json) or an Ossie mapping document (YAML or JSON). Check it with validate_mapping first. |
target * | string | The engine: 'snowflake' (Cortex Analyst semantic model YAML plus staged views SQL), 'cube' (Cube data-model directory) or 'dbt' (dbt MetricFlow models, semantic models and metrics). |
database | string | Snowflake: the database prepended to schema.table sources, since a Cortex Analyst base table is database.schema.table. Cube does not need it. |
department | string | Write every metric of one department (e.g. 'Core'); combines with metrics. |
dialect | string | Cube and dbt: the SQL dialect of the measures, models and staged queries (postgres, snowflake, bigquery or databricks). Omit to use the adapter's warehouse, else postgres. The snowflake target always… |
metrics | string | Comma-separated metric names, abbreviations, aliases or formula ids to write (each resolved as in lookup_metric). Omit for every metric. |
output | string | 'full' (default): the report followed by every file in a fenced block; 'files': the files alone, each under a ### <path> heading; 'report': the coverage and notes alone. |
period_spine | string | The table of (period_start, period_end) rows the staged queries read, as named in your warehouse. Default gasp.period_spine. |
semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON), whose sources and field expressions the files read. |
staged_schema | string | Snowflake: the schema the staged views are created in. Default: the schema of the first mapped table. |
score_drift Score drift from the canonical metrics
Score how far your own metrics drift from the GASP Standard's canonical definitions, by result. Takes your mapping (a GASP adapter or an Ossie mapping, as validate_mapping does) and your semantic_model holding your metrics. Each metric is matched to a GASP metric by exact name, by the synonyms in its ai_context or by a pair you pass in matches; a name or synonym ending in -O or -M (NRR-O, cac_m) matches that declared form; near names are listed for review and never scored on a guess. For every match the canonical metric is compiled into your dataset and field names (as compile_model does) and…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | Your mapping as text: a GASP adapter (JSON) or an Ossie mapping document (YAML or JSON). Check it with validate_mapping first. |
semantic_model * | string | Your metrics: your Ossie semantic model document (YAML or JSON); with a GASP adapter as the mapping, any document with a metrics list will do. Each metric with a name and an OSSIE_SQL_2026 expression… |
matches | string | Explicit pairs for metrics the names do not settle, comma separated: "acme_nrr=NRR, lost_mrr=Churned MRR". The GASP side is a name, abbreviation, alias or formula id as lookup_metric resolves it, with… |
metrics | string | Comma-separated names of your metrics to score. Omit for every metric in the document. |
output | string | 'report' (default) is the markdown report; 'json' returns the matches, the per-period values and the causes as data. |
profile_schema Profile a warehouse schema
Profile a warehouse schema into a minimal Apache Ossie semantic model, the first step towards a GASP mapping (readiness level 1). Pass the schema as the rows of information_schema.columns (JSON or CSV with table, column and type), an object with a tables list, or CREATE TABLE statements, read through your own warehouse MCP or from a dump. Optionally pass statistics per column (rows, nulls, distinct, min, max, values); output: statistics returns the query that gathers them. For every table the profile infers the key, the time field and the kind (snapshot, event, fact or reference), each with it…
| Parameter | Type | Description |
|---|---|---|
schema * | string | The schema: information_schema.columns rows as JSON (array of objects with table_name, column_name, data_type, optionally table_schema and is_nullable) or CSV with those headers; or { tables: [{ name,… |
dialect | string | With output: statistics, the warehouse the query is written for (the string type of its min and max columns); postgres by default. |
organization | string | The company's name, used in the model's name. |
output | string | 'report' (default): the profile with evidence, questions and the model as YAML; 'model': the YAML alone; 'json': the profile and the model as data; 'statistics': the SQL that gathers the statistics fo… |
statistics | string | Per-column statistics as JSON rows or CSV: table, column, rows (or row_count), nulls (or null_count or null_rate), distinct (or distinct_count), min, max, values (a JSON array or a | separated list fo… |
propose_mapping Propose a GASP mapping
Propose a GASP mapping for a warehouse from its profiled semantic model (readiness level 2). Pass semantic_model (the model profile_schema returned, or your own Ossie model) or schema (profiled on the way in, with optional statistics). Every table is scored against every GASP dataset on its columns, its profiled kind, key and time field and its name; every column of a proposed table against the dataset's fields by name, structural role (the table's time field is the dataset's date), a short synonym list, word order and near names, each checked against the warehouse type and, for an enum field,…
| Parameter | Type | Description |
|---|---|---|
organization | string | The company's name, used in the mapping's name. |
output | string | 'report' (default): the proposal with evidence, candidates and the mapping as YAML; 'mapping': the Ossie mapping alone; 'model': the model with any calculated fields the transforms added; 'adapter': t… |
schema | string | Instead of semantic_model: the warehouse schema as profile_schema accepts it (information_schema rows, a tables list or CREATE TABLE statements), profiled on the way in. |
semantic_model | string | The Ossie semantic model to map, as YAML or JSON: the one profile_schema returned (its profile and listed values are read) or the company's own. |
statistics | string | With schema: per-column statistics as profile_schema accepts them; the listed values of enum columns drive the recode transforms. |
record_decision Record mapping decisions
Record the decisions people make on a profiled and proposed warehouse, the Decide step of readiness level 2. Pass semantic_model and mapping (the ones propose_mapping returned) and decisions: a YAML or JSON list where each entry names what it is about, the subject by content and its owner. about: key, time, kind or type answers a profiler question and is written into the model (dataset, answer: the key columns or "none", the time column or "none", snapshot|event|fact|reference or an Ossie datatype with column); about: table accepts (or with accept: false rejects) a table as a GASP dataset (dat…
| Parameter | Type | Description |
|---|---|---|
mapping * | string | The Ossie mapping propose_mapping returned, as YAML or JSON; its candidates and the decisions already on file are read from the GASP extension; the decisions are written back into it. |
semantic_model * | string | The Ossie semantic model the mapping reads, as YAML or JSON: the one propose_mapping returned (its profile questions are read from the GASP extension). |
decisions | string | The decisions as a YAML or JSON list: [{about: key, dataset: usage_daily, answer: [account_id, workspace_id, day], owner: Data platform}, {about: table, dataset: plan_prices, to: plan, accept: false,… |
output | string | 'report' (default): what was applied, what is open and the updated documents as YAML; 'mapping': the mapping alone; 'model': the model alone; 'json': everything as data. |
derive_cel Derive revenue and credit events
SQL that derives CEL Revenue_Events from your billing data, or Credit_Events from your usage records, by the rules in the standard (cel.md, 'Deriving Revenue Events from a Subscription Ledger', 'Deriving Revenue Events from an Invoice Ledger' and 'Deriving Credit Events'). Most billing systems hold subscriptions or invoices, not events. source: subscription (default) turns the subscription dataset your mapping covers (subscription_id, customer_id, snapshot_date, mrr, subscription_status, segment, as snapshots at any cadence or a version history) into one revenue_event row per movement: a step…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | Your mapping as text: a GASP adapter (JSON; schema: https://gaspwiki.com/schemas/gasp-adapter-v1.json) or an Ossie mapping document (YAML or JSON). It must cover the subscription dataset (the invoice… |
currency * | string | ISO 4217 code of the ledger's currency (USD, EUR, GBP ...), written on every derived event. |
dialect | string | SQL dialect: postgres (also Redshift), snowflake, bigquery or databricks. Omit to use the adapter's warehouse when it names one of them, else postgres. |
first_snapshot | string | What the rows on the ledger's first date are. 'opening' (default): opening balances that seed each customer's MRR and produce no event, for a ledger that starts after the oldest subscription. 'steps':… |
output | string | 'report' (default): the SQL with the mapping it used, the unmapped fields and what the source can and cannot say; 'sql': the query alone. |
semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON), so table names and field expressions resolve. Ignored for a GASP adapter. |
source | string | The ledger to read: 'subscription' (default), the subscription dataset as snapshots or a version history; 'invoice', the invoice dataset read as one row per service period (recurring_amount over the m… |
target | string | What to derive: 'revenue_event' (default), the revenue events from the ledger; 'credit_event', one consumption event with basis overage per usage_record period over its commitment, for a company with… |
generate_checks Generate readiness checks
The readiness checks the GASP Standard states, as SQL over the datasets your mapping covers (readiness level 3, the Check step). From cel.md, atl.md and the MRR definition: CEL row identity (prior_mrr + mrr_change = new_mrr on every revenue event), MRR continuity (a subscription's mrr_start equals its mrr on the previous snapshot), the year-or-renewal test (no subscription row and no contract ACV for a contract under 12 months with no renewal), unique event_id per event dataset, the ATL tags (one lifecycle_attribution per event, an expansion_classification on every expansion, contraction and r…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | Your mapping as text: a GASP adapter (JSON; schema: https://gaspwiki.com/schemas/gasp-adapter-v1.json) or an Ossie mapping document (YAML or JSON). Check it with validate_mapping first. |
as_of | string | The date freshness is measured from, as YYYY-MM-DD. Default: the warehouse's current date. |
dialect | string | SQL dialect: postgres (also Redshift), snowflake, bigquery or databricks. Omit to use the adapter's warehouse when it names one of them, else postgres. |
output | string | 'report' (default): the checks, what each protects and the SQL to run (or, with results, pass and fail per check and per metric); 'sql': the statement alone; 'json': the report as data; 'bundle': the… |
period_spine | string | The table of (period_start, period_end) rows the range checks evaluate each metric over, as it is named in your warehouse; the same table compile_model reads. Default gasp.period_spine. |
results | string | The rows the checks statement returned, as JSON (objects with check_id and violations, [check_id, violations] pairs, or an object keyed by check id) or CSV. With results the report gives pass or fail… |
semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON), so table names and field expressions resolve. Ignored for a GASP adapter. |
window | integer | Freshness window in days (default 2): the latest date in each dataset must be within this many days of as_of. |
plan_fixes Plan readiness fixes
The ranked fix list for a mapping (readiness level 3, the Plan step): every GASP field a partly covered metric still needs and every readiness check that failed, ordered by the Core metrics each fix unlocks, then all metrics unlocked, then metrics it helps, with an effort class (small for a mapping, medium for a tag backfill or a pipeline fix, large for cross-system identity work) shown and used only as a tiebreak. A fix unlocks a metric when it is the last thing between that metric and covered-and-passing; a metric with two blockers counts as helped by each. Pass the results generate_checks p…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | Your mapping as text: a GASP adapter (JSON) or an Ossie mapping document (YAML or JSON). |
dialect | string | SQL dialect used to decide which checks are runnable; omit to use the warehouse's, else postgres. |
limit | integer | How many fixes to show (default 25). |
output | string | 'report' (default) or 'json' (every fix as data). |
period_spine | string | The period spine table the range checks read, as passed to generate_checks. Default gasp.period_spine. |
results | string | The rows the generate_checks statement returned, as JSON or CSV with check_id and violations. |
semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON). Ignored for a GASP adapter. |
readiness_report Report readiness level
Which readiness level a company has reached on the GASP pipeline and what stands between it and the next, read from the documents the other tools produced. L1 Profiled: a semantic model exists (profiled by profile_schema, your own, or synthesised from a GASP adapter). L2 Mapped: at least one metric is fully covered, no profiler question or proposer candidate is open (the line record_decision draws) and, with a schema snapshot, every mapped pair still reads columns that exist. L3 Clean core: the CEL revenue events are mapped, the checks have been run and every Core metric the mapping covers pas…
| Parameter | Type | Description |
|---|---|---|
adapter * | string | Your mapping as text: a GASP adapter (JSON; schema: https://gaspwiki.com/schemas/gasp-adapter-v1.json) or an Ossie mapping document (YAML or JSON), with the candidates and decisions in its GASP extens… |
as_of | string | The date freshness was measured from, as YYYY-MM-DD, as passed to generate_checks. |
dialect | string | SQL dialect used to decide which checks are runnable; omit to use the warehouse's, else postgres. |
matches | string | Explicit pairs for your own metrics the names do not settle, as score_drift takes them: "acme_nrr=NRR, lost_mrr=Churned MRR". |
output | string | 'report' (default): the level, a table of the four levels with their blockers, the detail per level and the next action; 'json': the same as data. |
period_spine | string | The period spine table, as passed to generate_checks and compile_model. Default gasp.period_spine. |
previous_schema | string | The previous run's snapshot, in the same shapes, for the columns added, dropped and retyped since. Needs schema. |
results | string | The rows the generate_checks statement returned, as JSON or CSV with check_id and violations. Without them level 3 cannot be assessed. |
schema | string | The warehouse's current columns: the rows of the schema snapshot query (generate_checks output: bundle), or any shape profile_schema reads. Each mapped pair is checked against it. |
semantic_model | string | The Ossie semantic model (YAML or JSON): with an Ossie mapping, the model it reads (its profile questions, compiled gasp_ metrics and your own metrics are read); with a GASP adapter, the model compile… |
window | integer | Freshness window in days (default 2), as passed to generate_checks. |
infer_drivers Infer a metric's drivers
Rank the upstream metrics that could explain an observed movement in a metric. Walks the GASP relationship graph backwards from the metric up to maxDepth edges and returns up to 25 candidates, each with the direction it would have moved, a score and its path to the metric. Direction flips across a reduces edge and across an input with negative polarity (a denominator or subtracted term), marked ↓ in the path. A baseline input (read at period start, as NRR reads MRR) is listed as a candidate but not walked through, since its own drivers cannot move the metric within the period. Scores are pro…
| Parameter | Type | Description |
|---|---|---|
direction * | string | Observed movement of the metric: up or down |
metric * | string | Metric name, abbreviation or graph id (e.g. 'ARR', 'Net Revenue Retention', 'nrr'), resolved as in lookup_metric. It must be a metric in the relationship graph. |
maxDepth | integer | Maximum number of edges to walk back, 1 to 8 (default 6) |
explain_path Explain the path between two metrics
How a movement in one graph node reaches another: up to 5 chains of edges followed forward from `from` to `to`, shortest first, then by highest score. Each step gives the edge type, its classification (metric_signal, structural, lifecycle, behavioral, assignment or generative), its attenuation and whether it inverts direction; each path gives its score and the direction the target moves when the source rises. A baseline edge (MRR into NRR) can only start a path. Names resolve as in get_relationships, so entities and concepts work too. No path means no forward chain within maxDepth: try the rev…
| Parameter | Type | Description |
|---|---|---|
from * | string | Starting node: a metric name, abbreviation or graph id, or an entity or concept (e.g. 'Health Score', 'customer') |
to * | string | Target node, in the same forms as from (e.g. 'NRR') |
maxDepth | integer | Maximum chain length in edges, 1 to 8 (default 6) |
coverage_gap Find the coverage gap for a metric
Audit a set of tracked metrics against the GASP relationship graph. Returns three lists: upstream missing (metrics with a direct edge into the set that the set leaves out), downstream missing (metrics with a direct edge from the set that it leaves out) and disconnected (graph metrics with no path of any length, in either direction and through any node, to the set; the first 25 shown). Names resolve as in lookup_metric; an input that is ambiguous, outside the graph, not a metric or unknown is listed as unresolved with the reason. Use it before instrumenting a dashboard, then infer_drivers or ex…
| Parameter | Type | Description |
|---|---|---|
metrics * | array | The metrics you track, as names, abbreviations or graph ids (e.g. ['ARR', 'NRR', 'CAC']) |
lookup_definition Look up a GASP definition
Look up a GASP Standard glossary term (e.g. 'Signal Type', 'Sensitivity Tier', 'Access Scope', 'Metric Owner', 'CEL'): the full definition and body, its section, the canonical or reference link, where it is used and the page URL. The term must match exactly, ignoring case: the term, its slug, either part of 'Term (Abbreviation)' or a name on its 'Also called' line, so 'CEL' finds 'CEL (Commercial Event Ledger)' and 'Annualised Run Rate' finds 'Run-Rate Revenue'. A metric name points you to lookup_metric and a miss returns close names. Some metrics also have a short glossary entry (Logo Churn R…
| Parameter | Type | Description |
|---|---|---|
term * | string | Exact term, abbreviation, slug or other name the glossary lists, case-insensitive (e.g. 'Signal Type', 'CEL', 'metric-owner', 'Revenue Run Rate') |
classify_revenue Classify a contract as recurring or not
Apply the GASP year-or-renewal test to a contract or a charge and name every metric it reaches. It answers three questions; pass `kind`, `lines` or `change`. (1) One contract (`kind`): does it count in MRR and ARR, where is it reported if it does not (Fixed-Term Revenue, Services Revenue, Consumption Revenue), can it churn and what are its first and last day reported as (New, Expansion, Reactivation, Churned or Contraction MRR, or nothing). A subscription counts when its contract runs 12 months or more or when a shorter plan renews; product access under 12 months with neither is fixed-term rev…
| Parameter | Type | Description |
|---|---|---|
afterTrial | boolean | The contract starts on the day a free trial converts. Read for a new customer buying a contract that counts, with `kind` and with `lines` |
bundleMonthly | number | One price per month for every line, shared out the same way. Needs every line priced by the month |
bundleValue | number | One price for every line over the whole contract. Each line's own amount is then its standalone price and the bundle price is shared out in proportion. Needs an amount and an end date on every line |
change | string | A change to a subscription the customer holds, in place of `kind`: upgrade (more of the same product), new_module, price_increase, downgrade (seats removed or a lower tier), price_cut (a price cut or… |
changeMonthly | number | The size of the change per month as a positive amount, read with `change`. A decrease as large as the MRR before it is a cancellation: ask about the contract's end with `kind` |
contractValue | number | The contract's value over its whole term, read with termMonths, or the amount charged for a kind sold once (professional_services, one_time_fee, perpetual_licence, hardware, credit_pack, on_demand_usa… |
followsEarlierTerm | boolean | The contract follows an earlier term with no break in access, which makes it a renewal |
kind | string | One contract or charge. What is sold: subscription (product access on a plan or contract), term_licence (software licensed for a term, on-premises software included), perpetual_licence (a perpetual li… |
lines | array | A contract with several lines, such as a subscription, an implementation fee and a credit pack. Each line is answered by its own kind and term. Pass it in place of `kind` |
monthlyValue | number | The price per month, for a contract priced by the month, one with no end date or recurring_credits. Pass one of the two amounts: where both are given, a kind priced by the month is answered from month… |
otherMrr | boolean | The customer holds MRR apart from this contract. It decides New against Expansion MRR at the start and Churned against Contraction MRR at the end. An add-on always sits beside a subscription. Read wit… |
renews | boolean | The contract carries a renewal provision: it continues unless cancelled or the customer holds an option to renew |
returning | boolean | The customer churned earlier and is coming back: a contract that counts starts as Reactivation MRR and the customer stays out of New Customers. Read for a customer with no other MRR, with `kind` and w… |
termMonths | integer | The contract's term in months. Omit it for a contract with no end date, which runs until the customer cancels. Read for subscription, term_licence, add_on, pilot, support and committed_usage |