Skip to main content
Glama
README.md
# GASP Standard

**Generally Accepted SaaS Principles.** An open standard for SaaS metrics: 320 metrics across 13 departments, 123 glossary definitions, a canonical formula for every computable metric in a small tested grammar, one vocabulary of 295 fields across 56 datasets, a relationship graph of 105 nodes and 213 edges plus an MCP server that gives AI agents all of it as structured tools.

The standard is published at **https://gaspwiki.com**. This repository holds its source and the tooling that compiles it. It works with Apache Ossie (incubating): `npm run derive` writes the standard out as Ossie files, which pass the upstream validator.

## What is here

| Path | What it is | Licence |
| --- | --- | --- |
| `standard/` | The canon. Metric definitions per department (`metrics/*.md`), the glossary (`definitions.md`), the Commercial Event Ledger (`cel.md`) and Attribution Taxonomy Layer (`atl.md`), the ontology (`ontology.json`: fields, datasets, 28 entities and 7 concepts), the formulas (`formulas.json`: 308 entries, 298 computable and 10 with the reason they are not), the signal taxonomy, the adapter schema and the relationship graph (`relationships.json`) | CC BY 4.0 (`standard/LICENSE`) |
| `standard/exports/` | Generated from the canon by `npm run derive`: the Neo4j Cypher export, the adapter template and the Apache Ossie ontology, reference semantic model and mapping | CC BY 4.0 |
| `gasp-wiki-mcp/` | The MCP server, published on npm as [`gasp-standard-mcp`](https://www.npmjs.com/package/gasp-standard-mcp). The parser, formula grammar, SQL compiler, graph traversal, Ossie exporters and the test suite, which runs every compiled formula against a seeded dataset in an in-process Postgres | Apache 2.0 (`LICENSE`) |
| `docs/` | Decision documents, the Ossie spike findings, the Ossie interop spec (`docs/ossie-interop-spec.md`) and the benchmark method and results (`docs/benchmark/`) | CC BY 4.0 |
| `DECISIONS.md` | Architecture decision records, newest first | CC BY 4.0 |
| `GOVERNANCE.md` | Who maintains the standard, how changes are decided, what counts as a breaking change and what happens if the maintainer stops | |
| `CONTRIBUTING.md` | How to propose a change and what the tests require | |
| `CHANGELOG.md` | What changed in each release of the MCP package and the standard it bundles | |

## Use it

**Read the standard** at https://gaspwiki.com/v1/overview, or in the per-department files under `standard/metrics/`.

**Give it to an agent.** The MCP server has twenty-four tools: metric and glossary lookup, canonical formulas, data requirements, SQL generation from your adapter for Postgres, Snowflake, BigQuery or Databricks, mapping validation, a compiler that writes the covered metrics into your Apache Ossie semantic model, a target writer that hands them back as a Snowflake Cortex Analyst model, a Cube data model or a dbt MetricFlow project in your warehouse's SQL, a drift scorer that runs your metrics against the canonical ones on the synthetic dataset, a schema profiler that turns your warehouse schema into a minimal Ossie model, a mapping proposer and a Decide step that records the answers people give, the SQL that derives CEL revenue and credit events from your subscription, invoice or usage ledger, the readiness checks, the ranked fix plan and a readiness report that says which level you have reached, three graph traversal tools and a classifier that runs one contract through the year-or-renewal test.

```json
{ "mcpServers": { "gasp-standard": { "command": "npx", "args": ["-y", "gasp-standard-mcp"] } } }
```

[![GASP Standard MCP server](https://glama.ai/mcp/servers/GASP-Standard/standard/badges/score.svg)](https://glama.ai/mcp/servers/GASP-Standard/standard)

**Map your warehouse.** `standard/gasp-adapter-schema.json` describes the adapter file, `standard/gasp-ossie-extension-v1.json` the GASP payloads in the Ossie documents GASP writes, and `standard/exports/gasp-adapter-template.json` lists every field to fill in. `validate_mapping` (also `validate_adapter`) checks a mapping and `generate_query` compiles a metric against it.

**Load it into a semantic layer.** `standard/exports/ossie/` holds the Apache Ossie ontology, semantic model and mapping. `docs/ossie-spike.md` explains what the files contain and how the formulas were compiled into them.

**Load the graph.** `standard/exports/gasp-knowledge-graph.cypher` imports into Neo4j.

## Work on it

```bash
cd gasp-wiki-mcp
npm ci
npm run build
npm test            # parser, compiler, every formula executed on PGlite, Ossie export
npm run derive      # regenerate standard/exports and the derived parts of ontology.json after editing the canon
```

The formula grammar is documented at the top of `gasp-wiki-mcp/src/formula.ts`. Every formula in `standard/formulas.json` has to parse, resolve against the ontology and compile; the tests check each one. `CONTRIBUTING.md` lists the rest of the rules.

## About this repository

GASP is written and maintained by Gareth O'Shea. Contributions are welcome: issues for proposals and questions, pull requests for wording, examples and tooling.

This repository is a mirror of the public parts of the GASP working repository, updated on every change there, so nothing merges here directly. The website's source stays private. Pull requests opened here are reviewed here and applied upstream by the maintainer. The change appears here with the next mirror push. `MIRROR` names the source commit.

TDQS

A4.1/5.0

Scored across 24 tools

Disambiguation4/5

Most tools target clearly distinct resources and pipeline stages (profile → propose → validate → compile → score_drift → checks → readiness). There is genuine overlap: validate_mapping and validate_adapter are literally the same tool, and lookup_metric also resolves glossary terms that lookup_definition owns, but descriptions mostly guide the choice.

Naming Consistency4/5

The dominant convention is verb_noun (lookup_metric, generate_query, validate_mapping, compile_model, score_drift, propose_mapping) and it is applied widely. Deviations are minor and read naturally: the bare verb 'search' and noun-phrase tools 'readiness_report' and 'coverage_gap'.

Tool Count3/5

24 tools is at the heavy end of the acceptable range; the domain genuinely spans ontology lookup, graph analysis, query generation, mapping validation, compilation, drift scoring and a four-level readiness pipeline. The count is defensible but feels bloated, and validate_adapter is a pure duplicate that adds no capability.

Completeness5/5

The surface covers the full lifecycle: metric/glossary discovery, canonical formulas and data requirements, SQL generation, event derivation, mapping proposal and validation, semantic-layer compilation, drift scoring, readiness checks and reporting, plus graph-based driver/path/coverage analysis. No obvious dead ends for the stated purpose.

Maintenance

ActivityActive
ResponsivenessNo recent community issues