HigherData

HigherData / Tool

enrich.map_columns

Propose a column mapping from header names and at most 5 sample values per column. The file itself is not sent to the model.

Scopes: data:read

This tool reads. It does not write.

REST: POST /api/v1/tools/enrich.map_columns?execute=false. The same call is POST /api/v1/enrich/map_columns?execute=false.

MCP tool name: enrich_map_columns. It is in the default MCP catalog when your scopes allow it.

Input

enrich.map_columns input
FieldTypeRequiredDescription
columnsarrayyesColumns to map onto HigherData fields. 1 to 128 items.
columns[].headerstringyesColumn header from the file. 1 to 128 characters.
columns[].samplesarrayyesSample values from this column. At most 10000 items. Each item: At most 100000 characters.

Output

enrich.map_columns output
FieldTypeRequiredDescription
mappingobjectyes

Request

curl -sS -X POST "https://higherdata.io/api/v1/tools/enrich.map_columns?execute=false" \
  -H "Authorization: Bearer hd_example_replace_me" \
  -H "Content-Type: application/json" \
  -d '{
  "columns": [
    {
      "header": "Email",
      "samples": [
        "dmitri@acme.example"
      ]
    }
  ]
}'

SDK

import { HigherData } from "higherdata-sdk";

const higherdata = new HigherData({
  apiKey: "hd_example_replace_me",
  apiUrl: "https://higherdata.io",
});

const result = await higherdata.call("enrich.map_columns", {
  "columns": [
    {
      "header": "Email",
      "samples": [
        "dmitri@acme.example"
      ]
    }
  ]
}, { execute: false });

Example

{
  "input": {
    "columns": [
      {
        "header": "Email",
        "samples": [
          "dmitri@acme.example"
        ]
      }
    ]
  },
  "output": {
    "mapping": {
      "email": "Email"
    }
  }
}