{
  "info": {
    "name": "Databricks — mcp.ai",
    "description": "REST API for the Databricks MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/databricks",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "databricks_cancel_statement",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/cancel/statement",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "cancel",
            "statement"
          ]
        },
        "description": "Cancela um ou mais statements em execução por id. Aceita lista (`statement_ids`).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"statement_ids\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_current_user",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/current/user",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "current",
            "user"
          ]
        },
        "description": "Identifica o usuário do PAT no workspace (whoami via SCIM Me). Útil pra confirmar qual conta/host está conectado e validar o token.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_get_statement",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/statement",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "statement"
          ]
        },
        "description": "Status + resultado de um ou mais statements por id (polling de queries longas que voltaram PENDING/RUNNING do run_sql). Aceita lista (`statement_ids`).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"statement_ids\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_get_table",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/table",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "table"
          ]
        },
        "description": "Detalha uma ou mais tabelas (colunas, tipos) por nome completo `catalog.schema.table`. Aceita lista (`full_names`).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"full_names\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_get_warehouse",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/warehouse",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "warehouse"
          ]
        },
        "description": "Detalha um ou mais SQL warehouses por id. Aceita lista (`ids`).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"ids\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_list_accounts",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/accounts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "accounts"
          ]
        },
        "description": "Lista os workspaces Databricks conectados a este install — host, label.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_list_catalogs",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/catalogs",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "catalogs"
          ]
        },
        "description": "Lista os catálogos do Unity Catalog visíveis ao PAT (name, comment, owner).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_list_schemas",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/schemas",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "schemas"
          ]
        },
        "description": "Lista os schemas (databases) de um catálogo Unity. Informe `catalog_name`.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"catalog_name\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_list_tables",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/tables",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "tables"
          ]
        },
        "description": "Lista as tabelas de um schema Unity (name, table_type, data_source_format). Informe `catalog_name` e `schema_name`.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"catalog_name\": \"\",\n  \"schema_name\": \"\",\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_list_warehouses",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/warehouses",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "warehouses"
          ]
        },
        "description": "Lista os SQL warehouses do workspace (id, name, state, cluster_size, warehouse_type). Use o `id` em databricks_run_sql (ou deixe o run_sql escolher um RUNNING automaticamente).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"account\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "databricks_run_sql",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/run/sql",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "run",
            "sql"
          ]
        },
        "description": "Executa uma instrução SQL num SQL warehouse (Statement Execution API). Retorna colunas + linhas quando termina dentro do wait_timeout; senão devolve statement_id + state pra polling via databricks_get",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"statement\": \"\",\n  \"warehouse_id\": \"\",\n  \"catalog\": \"\",\n  \"schema\": \"\",\n  \"parameters\": \"\",\n  \"row_limit\": 0,\n  \"wait_timeout\": \"\",\n  \"on_wait_timeout\": \"\",\n  \"account\": \"\",\n  \"warehouse_ids\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}