Propose a GASP mapping
propose_mappingPropose a GASP mapping for a warehouse semantic model by scoring its tables and columns against standard datasets, returning confident pairs, candidates with evidence, and unmatched fields.
Instructions
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "propose_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | '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 | No | 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 | No | With schema: per-column statistics as profile_schema accepts them; the listed values of enum columns drive the recode transforms. | |
| organization | No | The company's name, used in the mapping's name. | |
| semantic_model | No | 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. |