SaaS metric definitions, formulas, benchmarks and relationships from the GASP Standard
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
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 revenue. `returning` asks about a customer who churned and comes back and `afterTrial` about a free trial that converts. (2) A contract with several lines (`lines`): each line answered by its own kind and term, what they add up to and, with `bundleValue` or `bundleMonthly`, one bundle price shared across the lines by standalone price. (3) A change to a subscription the customer holds (`change`): an upgrade, a new module, a price increase, a downgrade, a price cut, a discount with an end date, a move to annual billing, a one-off credit, notice of a cancellation, a late payment or a customer who stops paying inside a committed term, with the movement and the tags its Revenue_Event carries. Every answer lists the metrics reached with a yes, a part or a no and the reason: MRR, ARR, Contracted ARR, Bookings, Billings, Annual Contract Value, Net and Gross Revenue Retention with their adjusted variants, Total, New and Churned Customers, Consumption Revenue, Usage Run-Rate and Prepaid Credit Balance. Pass amounts as the customer pays them, after any discount. Use it to settle whether a deal belongs in ARR, whether an expiry is churn, how a discount moves retention or how a pilot, an add-on, a term or perpetual licence, hardware, a credit pack or a services engagement is reported. The answer links the metric pages and the calculator at gaspwiki.com/research/does-it-count opened on the same question.
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 licence fee, charged once), hardware (hardware sold outright), add_on, pilot (a paid pilot or proof of concept), support (support, maintenance or a managed service on subscription terms), committed_usage (a contracted minimum), usage_above_commitment, on_demand_usage, credit_pack (credits bought once, automatic top-ups included), recurring_credits (credits billed every period), professional_services (delivered work), one_time_fee, free_trial
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`
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 a discount with no end date), temporary_discount (a discount with an end date), annual_billing_discount (a move to annual billing at a lower price), annual_billing_same_price, credit_or_refund (a one-off credit or refund), notice (notice to cancel on a later date, or a right to cancel the customer has not used), late_payment (a payment is late and the subscription stays open), unpaid_in_term (the customer stops paying inside a committed term and the contract stays in force)
The contract carries a renewal provision: it continues unless cancelled or the customer holds an option to renew
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 with `kind` and with `lines`
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 with `lines`
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`
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
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
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 monthlyValue and a kind sold once from contractValue. With `change` it is the customer's MRR before the change
One price per month for every line, shared out the same way. Needs every line priced by the month
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`
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_usage). A contract with no end date and recurring_credits take monthlyValue
The contract follows an earlier term with no break in access, which makes it a renewal
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http gasp-standard-mcp https://mcp.gaspwiki.com/mcp
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 revenue. `returning` asks about a customer who churned and comes back and `afterTrial` about a free trial that converts. (2) A contract with several lines (`lines`): each line answered by its own kind and term, what they add up to and, with `bundleValue` or `bundleMonthly`, one bundle price shared across the lines by standalone price. (3) A change to a subscription the customer holds (`change`): an upgrade, a new module, a price increase, a downgrade, a price cut, a discount with an end date, a move to annual billing, a one-off credit, notice of a cancellation, a late payment or a customer who stops paying inside a committed term, with the movement and the tags its Revenue_Event carries. Every answer lists the metrics reached with a yes, a part or a no and the reason: MRR, ARR, Contracted ARR, Bookings, Billings, Annual Contract Value, Net and Gross Revenue Retention with their adjusted variants, Total, New and Churned Customers, Consumption Revenue, Usage Run-Rate and Prepaid Credit Balance. Pass amounts as the customer pays them, after any discount. Use it to settle whether a deal belongs in ARR, whether an expiry is churn, how a discount moves retention or how a pilot, an add-on, a term or perpetual licence, hardware, a credit pack or a services engagement is reported. The answer links the metric pages and the calculator at gaspwiki.com/research/does-it-count opened on the same question.
| Argument | Type | Description |
|---|---|---|
| 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 licence fee, charged once), hardware (hardware sold outright), add_on, pilot (a paid pilot or proof of concept), support (support, maintenance or a managed service on subscription terms), committed_usage (a contracted minimum), usage_above_commitment, on_demand_usage, credit_pack (credits bought once, automatic top-ups included), recurring_credits (credits billed every period), professional_services (delivered work), one_time_fee, free_trial |
| 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` |
| 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 a discount with no end date), temporary_discount (a discount with an end date), annual_billing_discount (a move to annual billing at a lower price), annual_billing_same_price, credit_or_refund (a one-off credit or refund), notice (notice to cancel on a later date, or a right to cancel the customer has not used), late_payment (a payment is late and the subscription stays open), unpaid_in_term (the customer stops paying inside a committed term and the contract stays in force) |
| renews | boolean | The contract carries a renewal provision: it continues unless cancelled or the customer holds an option to renew |
| 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 with `kind` and with `lines` |
| 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 with `lines` |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"kind": {
"enum": [
"subscription",
"add_on",
"pilot",
"support",
"term_licence",
"perpetual_licence",
"hardware",
"committed_usage",
"usage_above_commitment",
"on_demand_usage",
"credit_pack",
"recurring_credits",
"professional_services",
"one_time_fee",
"free_trial"
],
"type": "string",
"description": "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 licence fee, charged once), hardware (hardware sold outright), add_on, pilot (a paid pilot or proof of concept), support (support, maintenance or a managed service on subscription terms), committed_usage (a contracted minimum), usage_above_commitment, on_demand_usage, credit_pack (credits bought once, automatic top-ups included), recurring_credits (credits billed every period), professional_services (delivered work), one_time_fee, free_trial"
},
"lines": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"enum": [
"subscription",
"add_on",
"pilot",
"support",
"term_licence",
"perpetual_licence",
"hardware",
"committed_usage",
"usage_above_commitment",
"on_demand_usage",
"credit_pack",
"recurring_credits",
"professional_services",
"one_time_fee",
"free_trial"
],
"type": "string",
"description": "What this line sells: subscription (product access on a plan or contract), term_licence (software licensed for a term, on-premises software included), perpetual_licence (a perpetual licence fee, charged once), hardware (hardware sold outright), add_on, pilot (a paid pilot or proof of concept), support (support, maintenance or a managed service on subscription terms), committed_usage (a contracted minimum), usage_above_commitment, on_demand_usage, credit_pack (credits bought once, automatic top-ups included), recurring_credits (credits billed every period), professional_services (delivered work), one_time_fee, free_trial"
},
"renews": {
"$ref": "#/properties/renews"
},
"termMonths": {
"$ref": "#/properties/termMonths"
},
"monthlyValue": {
"type": "number",
"maximum": 1000000000000,
"description": "The line's price per month. Under a bundle price, its standalone price per month",
"exclusiveMinimum": 0
},
"contractValue": {
"type": "number",
"maximum": 1000000000000,
"description": "The line's value over its whole term or the amount charged for a kind sold once. Under a bundle price, its standalone price",
"exclusiveMinimum": 0
},
"followsEarlierTerm": {
"$ref": "#/properties/followsEarlierTerm"
}
},
"additionalProperties": false
},
"maxItems": 6,
"minItems": 1,
"description": "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`"
},
"change": {
"enum": [
"upgrade",
"new_module",
"price_increase",
"downgrade",
"price_cut",
"temporary_discount",
"annual_billing_discount",
"annual_billing_same_price",
"credit_or_refund",
"notice",
"late_payment",
"unpaid_in_term"
],
"type": "string",
"description": "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 a discount with no end date), temporary_discount (a discount with an end date), annual_billing_discount (a move to annual billing at a lower price), annual_billing_same_price, credit_or_refund (a one-off credit or refund), notice (notice to cancel on a later date, or a right to cancel the customer has not used), late_payment (a payment is late and the subscription stays open), unpaid_in_term (the customer stops paying inside a committed term and the contract stays in force)"
},
"renews": {
"type": "boolean",
"description": "The contract carries a renewal provision: it continues unless cancelled or the customer holds an option to renew"
},
"otherMrr": {
"type": "boolean",
"description": "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 with `kind` and with `lines`"
},
"returning": {
"type": "boolean",
"description": "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 with `lines`"
},
"afterTrial": {
"type": "boolean",
"description": "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`"
},
"termMonths": {
"type": "integer",
"maximum": 120,
"minimum": 1,
"description": "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"
},
"bundleValue": {
"type": "number",
"maximum": 1000000000000,
"description": "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",
"exclusiveMinimum": 0
},
"monthlyValue": {
"type": "number",
"maximum": 1000000000000,
"description": "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 monthlyValue and a kind sold once from contractValue. With `change` it is the customer's MRR before the change",
"exclusiveMinimum": 0
},
"bundleMonthly": {
"type": "number",
"maximum": 1000000000000,
"description": "One price per month for every line, shared out the same way. Needs every line priced by the month",
"exclusiveMinimum": 0
},
"changeMonthly": {
"type": "number",
"maximum": 1000000000000,
"description": "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`",
"exclusiveMinimum": 0
},
"contractValue": {
"type": "number",
"maximum": 1000000000000,
"description": "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_usage). A contract with no end date and recurring_credits take monthlyValue",
"exclusiveMinimum": 0
},
"followsEarlierTerm": {
"type": "boolean",
"description": "The contract follows an earlier term with no break in access, which makes it a renewal"
}
},
"additionalProperties": false
}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 one row per period, or for Net and Gross Revenue Retention the table gasp_account_cohorts, one row per customer per period, which their expressions sum), reading a period spine table you provide (one row per reporting period; gasp.period_spine unless you pass period_spine). Entries with unmapped pairs are left out and listed with the pairs they need; recompiling replaces every gasp_ metric and staged dataset and leaves the rest of the model as it was. The compiled metrics are checked against the bundled Ossie model schema and GASP's reference checks. A GASP adapter compiles into the model synthesised from its tables and columns, which validate_mapping shows. Pass metrics or department to compile a subset, output 'report' to get the coverage without the document.
| Argument | Type | Description |
|---|---|---|
| output | string | 'model' (default) returns the coverage report with the compiled model as YAML; 'report' returns the coverage alone. |
| 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. |
| dialect | string |
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, to run first; target 'cube' gives a Cube data model, one cube per table with its joins, a dimension per field and the metrics as measures, plus one view joining the cubes from revenue_event; target 'dbt' gives a dbt project fragment for the MetricFlow semantic layer under models/gasp/, a model per table (with gasp_surrogate_key, the key columns as text joined with '_', where a snapshot is keyed by entity and date, since MetricFlow keys on one column), the sources, a semantic model per table with its entities, dimensions and measures, plus the metrics as simple, ratio or derived over those measures. A filtered aggregate is written as a CASE inside the aggregate, which every warehouse runs. Each staged table's query is the compiled source in the target dialect. Entries with unmapped pairs or no computable formula are listed and left out. Pass metrics or department for a subset.
| Argument | Type | Description |
|---|---|---|
| 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. |
| 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). |
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 explain_path on the candidates.
| Argument | Type | Description |
|---|---|---|
| metrics* | array | The metrics you track, as names, abbreviations or graph ids (e.g. ['ARR', 'NRR', 'CAC']) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metrics"
],
"properties": {
"metrics": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "The metrics you track, as names, abbreviations or graph ids (e.g. ['ARR', 'NRR', 'CAC'])"
}
},
"additionalProperties": false
}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 is a change in a subscription's active MRR, the ledger's first date is the opening balance, prior_mrr and new_mrr are the customer's MRR chained so prior_mrr + mrr_change = new_mrr holds on every row and the event type (new, expansion, contraction, churn, reactivation) is read from the customer's MRR around the step, with the ATL lifecycle tag, change_nature permanent and an empty expansion_classification (the ledger cannot know it). source: invoice reads the invoice dataset instead (invoice_id, subscription_id, customer_id, snapshot_date, service_period_start, service_period_end, recurring_amount): each invoice is one service period whose MRR is the recurring amount over the months it covers. The same rules apply. Usage above a commitment is Consumption Revenue and no Revenue_Event, so neither source reads the usage records. target: credit_event writes it as credit_event rows instead, from the usage_record dataset (subscription_id, customer_id, period_end, committed_amount, usage_amount): one consumption event with basis overage per usage period over its commitment, dated the period's end, for the overage the period bills, with empty balances (usage within a ratable commitment is no event; a prepaid balance and its expiries come from the billing system's credit ledger). Takes the same mapping as generate_query (a GASP adapter or an Ossie mapping with its semantic_model) and the ledger's currency; the dialect is the one asked for, else the adapter's warehouse, else postgres. Unmapped fields stay as {{field@dataset}} placeholders and are listed. Run the result to build the revenue_event table and map it; the MRR movement metrics compile over it.
| Argument | Type | Description |
|---|
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 reverse. Use it on a candidate from infer_drivers.
| Argument | Type | Description |
|---|---|---|
| to* | string | Target node, in the same forms as from (e.g. 'NRR') |
| from* | string | Starting node: a metric name, abbreviation or graph id, or an entity or concept (e.g. 'Health Score', 'customer') |
| maxDepth | integer | Maximum chain length in edges, 1 to 8 (default 6) |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string",
"description": "Target node, in the same forms as from (e.g. 'NRR')"
},
"from": {
"type": "string",
"description": "Starting node: a metric name, abbreviation or graph id, or an entity or concept (e.g. 'Health Score', 'customer')"
},
"maxDepth": {
"type": "integer",
"maximum": 8,
"minimum": 1,
"description": "Maximum chain length in edges, 1 to 8 (default 6)"
}
},
"additionalProperties": false
}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 reactivation revenue event and every amendment, a cost_function on every cost event), customer identity both ways (every revenue event's customer is a known customer, every customer active on the latest snapshot has a revenue event), the credit ledger's balance identity (credit_balance_before + credit_amount = credit_balance_after on purchase, expiry, adjustment and committed consumption rows; equal balances on overage and on-demand rows), freshness (the latest date per dataset within a window) and, for every fully mapped metric with a hard range rule in the ontology (NRR at least 0, GRR at most 100%, Gross Margin, ARR and others), its value in every reporting period of your period spine (the table compile_model reads; period_spine names another). One statement, one row per check with its violation count; output: bundle adds a schema snapshot query for a scheduled re-check. GASP has no warehouse access: run it, then pass the rows back as results to get pass or fail per check and per metric; each check names the metrics whose formulas read what it covers. Checks whose fields the mapping lacks are listed with what they need. Takes the mapping generate_query takes; the dialect is the one asked for, else the warehouse's, else postgres. Follow with plan_fixes for the ranked list.
| Argument | Type | Description |
|---|---|---|
| as_of | string | The date freshness is measured from, as YYYY-MM-DD. Default: the warehouse's current date. |
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 declares (get_formula lists them, e.g. 'by_plan' on MRR) and returns one row per value. The dialect (postgres, snowflake, bigquery or databricks; postgres also covers Redshift) is the dialect argument, else the adapter's warehouse when it names one of them, else postgres. Check the mapping with validate_mapping first.
| Argument | Type | Description |
|---|---|---|
| metric* | string | Exact metric name, abbreviation, alias or formula id (e.g. 'NRR', 'CAC', 'Pipeline Value', 'ARR'), resolved as in lookup_metric |
| 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. |
| 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. |
| 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. |
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 include the dimension and the SQL returns one row per value. dialect (postgres, snowflake, bigquery or databricks; postgres is the default and also covers Redshift) sets the example SQL's syntax. A metric with no formula gives the reason. Use generate_query to fill the SQL from your adapter.
| Argument | Type | Description |
|---|---|---|
| metric | string | Exact metric name, abbreviation, alias or formula id (e.g. 'ARR', 'Pipeline Coverage Ratio', 'CSAT') |
| dialect | string | Dialect of the example SQL: postgres (default, also Redshift), snowflake, bigquery or databricks. Any but postgres needs metric. |
| 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 ones. |
| 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. |
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 for field types and example SQL and generate_query for SQL against your own tables.
| Argument | 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. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metric"
],
"properties": {
"metric": {
"type": "string",
"description": "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."
}
},
"additionalProperties": false
}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_via (behavioral); manages, sources, serves and represented_by (assignment); generates, produces, contributes_to, incurs and belongs_to (generative). Metric names resolve as in lookup_metric; a metric outside the graph says so and a miss lists every node. Use infer_drivers or explain_path to walk more than one hop.
| Argument | 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 name. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metric"
],
"properties": {
"metric": {
"type": "string",
"description": "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 name."
}
},
"additionalProperties": false
}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 products of edge attenuations: they rank structural links and say nothing about magnitude. Works on metric nodes only. Follow up with explain_path for the chain behind a candidate or coverage_gap to check you track it; for 'what if' simulation use the TWIN Modifier at https://gaspwiki.com/v1/twin-modifier.
| Argument | Type | Description |
|---|---|---|
| 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) |
| direction* | string | Observed movement of the metric: up or down |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metric",
"direction"
],
"properties": {
"metric": {
"type": "string",
"description": "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": {
"type": "integer",
"maximum": 8,
"minimum": 1,
"description": "Maximum number of edges to walk back, 1 to 8 (default 6)"
},
"direction": {
"enum": [
"up",
"down"
],
"type": "string",
"description": "Observed movement of the metric: up or down"
}
},
"additionalProperties": false
}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.
| Argument | 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. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"department": {
"type": "string",
"description": "Department name, case-insensitive, with spaces or hyphens (e.g. 'Sales', 'customer success', 'customer-success', 'Core'). Omit to list every department."
},
"signalType": {
"enum": [
"outcome",
"leading",
"efficiency",
"operational"
],
"type": "string",
"description": "outcome, leading, efficiency or operational. Matches a metric's primary or secondary signal type."
}
},
"additionalProperties": false
}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 Rate, Win Rate); lookup_metric gives their formula and benchmarks.
| Argument | 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') |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"term"
],
"properties": {
"term": {
"type": "string",
"description": "Exact term, abbreviation, slug or other name the glossary lists, case-insensitive (e.g. 'Signal Type', 'CEL', 'metric-owner', 'Revenue Run Rate')"
}
},
"additionalProperties": false
}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 (e.g. 'Activation Rate') returns each candidate with department, formula id and URL; prefix the department ('Product Activation Rate') or pass the formula id. A glossary term (e.g. 'Signal Type') returns its definition and a miss returns close names to retry with. Use get_formula for the formula alone and search when you do not know the name.
| Argument | 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 metrics that share a name. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "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 metrics that share a name."
}
},
"additionalProperties": false
}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 produced to rank data fixes beside mapping gaps; without them the plan covers mapping gaps alone. Takes the mapping generate_query takes.
| Argument | Type | Description |
|---|---|---|
| limit | integer | How many fixes to show (default 25). |
| output | string | 'report' (default) or 'json' (every fix as data). |
| 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. |
| results | string | The rows the generate_checks statement returned, as JSON or CSV with check_id and violations. |
| period_spine | string |
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 its evidence and confidence, plus the relationships the columns imply; a low-confidence inference is left out of the model and listed as a question for the Decide step rather than guessed. The report ends with the model as YAML, to pass to propose_mapping as semantic_model; the questions go to record_decision.
| Argument | Type | Description |
|---|---|---|
| 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 for this schema. |
| 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, schema?, columns: [{ name, type }] }] }; or CREATE TABLE statements (PRIMARY KEY and REFERENCES clauses are read). |
| dialect | string | With output: statistics, the warehouse the query is written for (the string type of its min and max columns); postgres by default. |
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, the listed values. A column in cents gets a divide-by-100 transform and enum values the standard does not use a CASE recode when one is known. Only high-confidence pairs enter the mapping; medium ones are listed as candidates with their evidence and what would settle them; the rest are unmatched. Returns the report and the Ossie mapping over the model (a transform becomes a calculated field): the candidates go to record_decision with both documents, then the mapping to validate_mapping, compile_model and score_drift; output: adapter gives the same pairs as a GASP adapter.
| Argument | Type | Description |
|---|---|---|
| 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': the pairs as a GASP adapter (JSON); 'json': everything as data. |
| 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. |
| statistics | string | With schema: per-column statistics as profile_schema accepts them; the listed values of enum columns drive the recode transforms. |
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 passes every check that protects it. L4 LLM-ready: the canonical metrics are compiled into the model (compile_model) and none of your own metrics differs from its canonical counterpart (score_drift, run here on the synthetic dataset when the model carries metrics of your own). Levels are cumulative. Pass the mapping (either format), the semantic_model it reads (with an adapter, the model compile_model returned, so the compiled metrics and your own are seen) and the results of the generate_checks statement; without results level 3 is blocked and the report says what to run. Each blocker names the tool that clears it; the Next line is the one action to take. Pass a schema snapshot (the rows of the query generate_checks writes with output: bundle) and the report also names every mapped pair that reads a table or column the warehouse no longer has and the metrics that lose coverage; with the previous snapshot the columns added, dropped and retyped. Nothing runs against your warehouse.
| Argument | Type | Description |
|---|---|---|
| as_of | string | The date freshness was measured from, as YYYY-MM-DD, as passed to generate_checks. |
| 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. |
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 (dataset, to: the GASP dataset) and maps its columns as the proposer would; about: field accepts or rejects a column as a GASP field of the dataset its table is mapped to (dataset, column, to: the GASP field, optional transform over {{value}}, which becomes a calculated field); about: owner names the team that owns a metric (metric, owner, optional contact), the slot validate_mapping reads; about: topic records a judgement call GASP cannot apply, such as which system owns customer identity, the reporting currency or what date marks churn (topic, answer). Every decision carries owner, an optional date (today when omitted) and note. It lands in the mapping's GASP extension; a later decision on the same subject replaces the earlier one. With no decisions it lists what is open: the questions no decision or model state has settled, the candidates no decision has settled and the covered metrics without an owner. Level 2 is reached when no question and no candidate is open. Returns the report with the updated mapping and, when it changed, the model, to pass on to validate_mapping, compile_model and score_drift.
| Argument | Type | Description |
|---|---|---|
| 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. |
| mapping* |
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 both run on the GASP synthetic SaaS dataset, six monthly periods, in an in-process Postgres (PGlite). Where the numbers differ the report gives both values per period, the largest difference and the likely cause read from the canonical formula: a null on one side (a sum over no rows that is NULL in your SQL and 0 in GASP's, or a canonical average or ratio with nothing to read), a construct one expression cannot state (a cohort, an opening value at period start, a period bound to a business date), a filter one side applies and the other does not, a dataset one side reads or an aggregate whose value has no equal on the other side. Metrics that read fields your mapping lacks are reported as not runnable with the field named. Your values are also checked against the standard's range for the metric (NRR at least 0, GRR at most 100%) per period. Where both the O and M forms of a dual-lens metric are matched the report scores the bridge between them (the Durability Gap for ARR, the Expansion Integrity Gap for NRR, the Activation Delta for CAC, the Contribution Leakage for LTV, the Services Drag for Gross Margin): your M minus O beside the canonical gap, per period.
| Argument | Type | Description |
|---|---|---|
| output | string | 'report' (default) is the markdown report; 'json' returns the matches, the per-period values and the causes as data. |
| adapter* |
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 matches (e.g. a misspelling) it returns up to 6 close names labelled 'Did you mean'. Pass a result's name to lookup_metric or lookup_definition.
| Argument | Type | Description |
|---|---|---|
| query* | string | Words to find (e.g. 'churn', 'retention', 'pipeline coverage', 'opportunity_stage') |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Words to find (e.g. 'churn', 'retention', 'pipeline coverage', 'opportunity_stage')"
}
},
"additionalProperties": false
}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 Ossie mapping schema for the Ossie form), GASP's cross-document checks (every concept, relationship and field reference resolves against the GASP ontology and the model), then coverage: unknown fields and datasets, fields mapped to a dataset that does not carry them, bare column names on fields that live on several datasets, datasets whose fields point at different tables, pairs mapped twice, the field and dataset pairs mapped, every metric with a formula scored against the pairs its compiled SQL reads (fully covered, partially covered with the missing pairs, not covered), enum fields mapped without a transform, covered metrics with no declared owner, owners naming unknown metrics and up to 15 unmapped pairs ranked by how many partially covered metrics need them. Run it before generate_query.
| Argument | 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/ossie/gasp.mapping.yaml). |
| 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. |
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-document checks (every concept, relationship and field reference resolves against the GASP ontology and the model), then coverage: unknown fields and datasets, fields mapped to a dataset that does not carry them, bare column names on fields that live on several datasets, datasets whose fields point at different tables, pairs mapped twice, the field and dataset pairs mapped, every metric with a formula scored against the pairs its compiled SQL reads (fully covered, partially covered with the missing pairs, not covered), enum fields mapped without a transform, covered metrics with no declared owner, owners naming unknown metrics and up to 15 unmapped pairs ranked by how many partially covered metrics need them. Run it before generate_query.
| Argument | 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/ossie/gasp.mapping.yaml). |
| 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. |
We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 2, 2026.
| 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` |
| 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 |
| 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 |
| 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 monthlyValue and a kind sold once from contractValue. With `change` it is the customer's MRR before the change |
| bundleMonthly | number | One price per month for every line, shared out the same way. Needs every line priced by the month |
| 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_usage). A contract with no end date and recurring_credits take monthlyValue |
| followsEarlierTerm | boolean | The contract follows an earlier term with no break in access, which makes it a renewal |
| 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. |
| department | string | Compile every metric of one department (e.g. 'Core'); combines with metrics. |
| 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 is its bare column. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter"
],
"properties": {
"output": {
"enum": [
"model",
"report"
],
"type": "string",
"description": "'model' (default) returns the coverage report with the compiled model as YAML; 'report' returns the coverage alone."
},
"adapter": {
"type": "string",
"description": "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."
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "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": {
"type": "string",
"description": "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."
},
"department": {
"type": "string",
"description": "Compile every metric of one department (e.g. 'Core'); combines with metrics."
},
"period_spine": {
"type": "string",
"description": "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": {
"type": "string",
"description": "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 is its bare column."
}
},
"additionalProperties": false
}| 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. |
| 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 writes Snowflake SQL. |
| metrics | string | Comma-separated metric names, abbreviations, aliases or formula ids to write (each resolved as in lookup_metric). Omit for every metric. |
| 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. |
| period_spine | string | The table of (period_start, period_end) rows the staged queries read, as named in your warehouse. Default gasp.period_spine. |
| staged_schema | string | Snowflake: the schema the staged views are created in. Default: the schema of the first mapped table. |
| semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON), whose sources and field expressions the files read. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter",
"target"
],
"properties": {
"output": {
"enum": [
"full",
"files",
"report"
],
"type": "string",
"description": "'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."
},
"target": {
"enum": [
"snowflake",
"cube",
"dbt"
],
"type": "string",
"description": "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)."
},
"adapter": {
"type": "string",
"description": "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."
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "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 writes Snowflake SQL."
},
"metrics": {
"type": "string",
"description": "Comma-separated metric names, abbreviations, aliases or formula ids to write (each resolved as in lookup_metric). Omit for every metric."
},
"database": {
"type": "string",
"description": "Snowflake: the database prepended to schema.table sources, since a Cortex Analyst base table is database.schema.table. Cube does not need it."
},
"department": {
"type": "string",
"description": "Write every metric of one department (e.g. 'Core'); combines with metrics."
},
"period_spine": {
"type": "string",
"description": "The table of (period_start, period_end) rows the staged queries read, as named in your warehouse. Default gasp.period_spine."
},
"staged_schema": {
"type": "string",
"description": "Snowflake: the schema the staged views are created in. Default: the schema of the first mapped table."
},
"semantic_model": {
"type": "string",
"description": "With an Ossie mapping: your semantic model document (YAML or JSON), whose sources and field expressions the files read."
}
},
"additionalProperties": false
}| 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. |
| 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 months between service_period_start and service_period_end). Use invoice when the billing system keeps no subscription history. |
| 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 usage records and no credit ledger (source and first_snapshot are ignored). |
| 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 dataset with source: invoice; the usage_record dataset with target: credit_event). Check it with validate_mapping first. |
| 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. |
| currency* | string | ISO 4217 code of the ledger's currency (USD, EUR, GBP ...), written on every derived event. |
| 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': steps from 0, for a ledger that starts with the business. |
| 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. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter",
"currency"
],
"properties": {
"output": {
"enum": [
"report",
"sql"
],
"type": "string",
"description": "'report' (default): the SQL with the mapping it used, the unmapped fields and what the source can and cannot say; 'sql': the query alone."
},
"source": {
"enum": [
"subscription",
"invoice"
],
"type": "string",
"description": "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 months between service_period_start and service_period_end). Use invoice when the billing system keeps no subscription history."
},
"target": {
"enum": [
"revenue_event",
"credit_event"
],
"type": "string",
"description": "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 usage records and no credit ledger (source and first_snapshot are ignored)."
},
"adapter": {
"type": "string",
"description": "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 dataset with source: invoice; the usage_record dataset with target: credit_event). Check it with validate_mapping first."
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "SQL dialect: postgres (also Redshift), snowflake, bigquery or databricks. Omit to use the adapter's warehouse when it names one of them, else postgres."
},
"currency": {
"type": "string",
"description": "ISO 4217 code of the ledger's currency (USD, EUR, GBP ...), written on every derived event."
},
"first_snapshot": {
"enum": [
"opening",
"steps"
],
"type": "string",
"description": "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': steps from 0, for a ledger that starts with the business."
},
"semantic_model": {
"type": "string",
"description": "With an Ossie mapping: your semantic model document (YAML or JSON), so table names and field expressions resolve. Ignored for a GASP adapter."
}
},
"additionalProperties": false
}| 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 scheduled re-check, the checks statement and a schema snapshot query over the mapped tables as two files to run in your own orchestrator, with how to pass the rows back to readiness_report. |
| window | integer | Freshness window in days (default 2): the latest date in each dataset must be within this many days of as_of. |
| 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. |
| 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. |
| 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 per check and per metric. |
| 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. |
| 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. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter"
],
"properties": {
"as_of": {
"type": "string",
"description": "The date freshness is measured from, as YYYY-MM-DD. Default: the warehouse's current date."
},
"output": {
"enum": [
"report",
"sql",
"json",
"bundle"
],
"type": "string",
"description": "'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 scheduled re-check, the checks statement and a schema snapshot query over the mapped tables as two files to run in your own orchestrator, with how to pass the rows back to readiness_report."
},
"window": {
"type": "integer",
"minimum": 0,
"description": "Freshness window in days (default 2): the latest date in each dataset must be within this many days of as_of."
},
"adapter": {
"type": "string",
"description": "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."
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "SQL dialect: postgres (also Redshift), snowflake, bigquery or databricks. Omit to use the adapter's warehouse when it names one of them, else postgres."
},
"results": {
"type": "string",
"description": "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 per check and per metric."
},
"period_spine": {
"type": "string",
"description": "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."
},
"semantic_model": {
"type": "string",
"description": "With an Ossie mapping: your semantic model document (YAML or JSON), so table names and field expressions resolve. Ignored for a GASP adapter."
}
},
"additionalProperties": false
}| 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. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metric",
"adapter"
],
"properties": {
"metric": {
"type": "string",
"description": "Exact metric name, abbreviation, alias or formula id (e.g. 'NRR', 'CAC', 'Pipeline Value', 'ARR'), resolved as in lookup_metric"
},
"adapter": {
"type": "string",
"description": "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."
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "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."
},
"breakdown": {
"type": "string",
"description": "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."
},
"semantic_model": {
"type": "string",
"description": "With an Ossie mapping: your semantic model document (YAML or JSON), so table names and field expressions resolve. Ignored for a GASP adapter."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"metric": {
"type": "string",
"description": "Exact metric name, abbreviation, alias or formula id (e.g. 'ARR', 'Pipeline Coverage Ratio', 'CSAT')"
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "Dialect of the example SQL: postgres (default, also Redshift), snowflake, bigquery or databricks. Any but postgres needs metric."
},
"breakdown": {
"type": "string",
"description": "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 ones."
},
"department": {
"type": "string",
"description": "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."
}
},
"additionalProperties": false
}| The period spine table the range checks read, as passed to generate_checks. Default gasp.period_spine. |
| semantic_model | string | With an Ossie mapping: your semantic model document (YAML or JSON). Ignored for a GASP adapter. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter"
],
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"description": "How many fixes to show (default 25)."
},
"output": {
"enum": [
"report",
"json"
],
"type": "string",
"description": "'report' (default) or 'json' (every fix as data)."
},
"adapter": {
"type": "string",
"description": "Your mapping as text: a GASP adapter (JSON) or an Ossie mapping document (YAML or JSON)."
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "SQL dialect used to decide which checks are runnable; omit to use the warehouse's, else postgres."
},
"results": {
"type": "string",
"description": "The rows the generate_checks statement returned, as JSON or CSV with check_id and violations."
},
"period_spine": {
"type": "string",
"description": "The period spine table the range checks read, as passed to generate_checks. Default gasp.period_spine."
},
"semantic_model": {
"type": "string",
"description": "With an Ossie mapping: your semantic model document (YAML or JSON). Ignored for a GASP adapter."
}
},
"additionalProperties": false
}| 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 for a short list of values). Optional; the profile says what they would settle. |
| organization | string | The company's name, used in the model's name. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"schema"
],
"properties": {
"output": {
"enum": [
"report",
"model",
"json",
"statistics"
],
"type": "string",
"description": "'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 for this schema."
},
"schema": {
"type": "string",
"description": "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, schema?, columns: [{ name, type }] }] }; or CREATE TABLE statements (PRIMARY KEY and REFERENCES clauses are read)."
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "With output: statistics, the warehouse the query is written for (the string type of its min and max columns); postgres by default."
},
"statistics": {
"type": "string",
"description": "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 for a short list of values). Optional; the profile says what they would settle."
},
"organization": {
"type": "string",
"description": "The company's name, used in the model's name."
}
},
"additionalProperties": false
}| organization | string | The company's name, used in the mapping's name. |
| 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. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"output": {
"enum": [
"report",
"mapping",
"model",
"adapter",
"json"
],
"type": "string",
"description": "'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': the pairs as a GASP adapter (JSON); 'json': everything as data."
},
"schema": {
"type": "string",
"description": "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."
},
"statistics": {
"type": "string",
"description": "With schema: per-column statistics as profile_schema accepts them; the listed values of enum columns drive the recode transforms."
},
"organization": {
"type": "string",
"description": "The company's name, used in the mapping's name."
},
"semantic_model": {
"type": "string",
"description": "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."
}
},
"additionalProperties": false
}| 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. |
| window | integer | Freshness window in days (default 2), as passed to generate_checks. |
| 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 extension when propose_mapping and record_decision wrote them. |
| 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". |
| 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. |
| period_spine | string | The period spine table, as passed to generate_checks and compile_model. Default gasp.period_spine. |
| 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_model returned, if you have one. |
| previous_schema | string | The previous run's snapshot, in the same shapes, for the columns added, dropped and retyped since. Needs schema. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter"
],
"properties": {
"as_of": {
"type": "string",
"description": "The date freshness was measured from, as YYYY-MM-DD, as passed to generate_checks."
},
"output": {
"enum": [
"report",
"json"
],
"type": "string",
"description": "'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."
},
"schema": {
"type": "string",
"description": "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."
},
"window": {
"type": "integer",
"minimum": 0,
"description": "Freshness window in days (default 2), as passed to generate_checks."
},
"adapter": {
"type": "string",
"description": "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 extension when propose_mapping and record_decision wrote them."
},
"dialect": {
"enum": [
"postgres",
"snowflake",
"bigquery",
"databricks"
],
"type": "string",
"description": "SQL dialect used to decide which checks are runnable; omit to use the warehouse's, else postgres."
},
"matches": {
"type": "string",
"description": "Explicit pairs for your own metrics the names do not settle, as score_drift takes them: \"acme_nrr=NRR, lost_mrr=Churned MRR\"."
},
"results": {
"type": "string",
"description": "The rows the generate_checks statement returned, as JSON or CSV with check_id and violations. Without them level 3 cannot be assessed."
},
"period_spine": {
"type": "string",
"description": "The period spine table, as passed to generate_checks and compile_model. Default gasp.period_spine."
},
"semantic_model": {
"type": "string",
"description": "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_model returned, if you have one."
},
"previous_schema": {
"type": "string",
"description": "The previous run's snapshot, in the same shapes, for the columns added, dropped and retyped since. Needs schema."
}
},
"additionalProperties": false
}| 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. |
| 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, owner: Billing}, {about: field, dataset: subscriptions, column: plan_code, to: plan_id, owner: Billing}, {about: owner, metric: Net Revenue Retention, owner: Finance, contact: fp&[email protected]}, {about: topic, topic: reporting currency, answer: USD, owner: Finance, note: ...}]. Omit it to list what is open. |
| 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). |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"semantic_model",
"mapping"
],
"properties": {
"output": {
"enum": [
"report",
"mapping",
"model",
"json"
],
"type": "string",
"description": "'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."
},
"mapping": {
"type": "string",
"description": "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."
},
"decisions": {
"type": "string",
"description": "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, owner: Billing}, {about: field, dataset: subscriptions, column: plan_code, to: plan_id, owner: Billing}, {about: owner, metric: Net Revenue Retention, owner: Finance, contact: fp&[email protected]}, {about: topic, topic: reporting currency, answer: USD, owner: Finance, note: ...}]. Omit it to list what is open."
},
"semantic_model": {
"type": "string",
"description": "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)."
}
},
"additionalProperties": false
}| string |
| Your mapping as text: a GASP adapter (JSON) or an Ossie mapping document (YAML or JSON). Check it with validate_mapping first. |
| 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 an optional :O, :M or :variant. |
| metrics | string | Comma-separated names of your metrics to score. Omit for every metric in the document. |
| 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 over your datasets and fields. With a GASP adapter, write them over the dataset names and columns of the model validate_mapping synthesises (the GASP dataset ids and your column names). |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter",
"semantic_model"
],
"properties": {
"output": {
"enum": [
"report",
"json"
],
"type": "string",
"description": "'report' (default) is the markdown report; 'json' returns the matches, the per-period values and the causes as data."
},
"adapter": {
"type": "string",
"description": "Your mapping as text: a GASP adapter (JSON) or an Ossie mapping document (YAML or JSON). Check it with validate_mapping first."
},
"matches": {
"type": "string",
"description": "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 an optional :O, :M or :variant."
},
"metrics": {
"type": "string",
"description": "Comma-separated names of your metrics to score. Omit for every metric in the document."
},
"semantic_model": {
"type": "string",
"description": "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 over your datasets and fields. With a GASP adapter, write them over the dataset names and columns of the model validate_mapping synthesises (the GASP dataset ids and your column names)."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter"
],
"properties": {
"adapter": {
"type": "string",
"description": "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/ossie/gasp.mapping.yaml)."
},
"semantic_model": {
"type": "string",
"description": "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."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"adapter"
],
"properties": {
"adapter": {
"type": "string",
"description": "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/ossie/gasp.mapping.yaml)."
},
"semantic_model": {
"type": "string",
"description": "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."
}
},
"additionalProperties": false
}