Skip to main content
Glama

build_connect_data_source

Creates a data connector to an external source the app owner controls (a database, a REST API or a warehouse). Inputs: name, kind, and the connection fields for that kind (db_type, host, port, database, username, password, ssl_mode, or base_url, endpoint, auth), plus optional table_names, config, schema_namespace, test_first, project_uuid. Returns a connector_id; schemas are not bound yet. table_names is optional for a database: discovery and bind can pick the tables. Flow: build_discover_source → build_bind_data_source → build_run_data_source (sync bindings only). Credentials go to the platform and are not echoed back; read-only database credentials or the Key Store suit production. Requires a domain- or project-admin key.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>",
      "kind": "<kind>"
    },
    "name": "build_connect_data_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
authNoapi kind: {type: none|api_key|bearer|basic|oauth2, ...}.
hostNoServer hostname (database kinds, Fabric, ClickHouse, Snowflake, Databricks). BigQuery/Redshift take their connection settings in `config`.
kindYesSource kind.
nameYesConnector name (unique within the project).
portNoServer port; omit for the dialect default (5432 PostgreSQL, 3306 MySQL, 1433 MSSQL/Fabric, 1521 Oracle, 27017 MongoDB).
configNoExtra source config (e.g. warehouse account).
pluginNoOPTIONAL, with kind='api': create a connector for this source plugin instead of the generic REST one, e.g. 'shopify' (read-only product catalog sync into catalog_item / catalog_variant), 'csv_file' or 'webhook'. Put the plugin's settings in `config`; build_list_data_sources lists each plugin's settings under plugin_sources. Secret settings (e.g. Shopify client_secret) go in `config` like a database password: sent to the platform, never echoed back. These plugins are sync-only: bind with mode='sync', then build_run_data_source (shopify has no discovery).
db_typeNodatabase/warehouse: postgresql|mysql|mssql|oracle|mongodb|snowflake|bigquery|redshift|databricks|clickhouse|fabric.
base_urlNoapi kind: API base URL.
databaseNodatabase/warehouse: database name.
endpointNoapi kind: endpoint path.
passwordNoDB password — sent to the platform, never echoed.
ssl_modeNodatabase kind: TLS mode, one of disable|allow|prefer|require|verify-ca|verify-full (or the MySQL spellings disabled|preferred|required|verify_ca|verify_identity); other values are rejected. Default 'require'. Used by PostgreSQL/MySQL/MSSQL/Fabric/MongoDB; Oracle and the HTTP warehouses (Snowflake/Databricks/ClickHouse/BigQuery/Redshift) ignore it.
usernameNodatabase/warehouse: login user (prefer a read-only one).
test_firstNoProbe connectivity before creating (default true).
table_namesNodatabase/warehouse, OPTIONAL: the source tables to sync, e.g. ["customers", "orders"]. Omit when you don't know them yet — run build_discover_source next and bind the streams it returns.
project_uuidNoProject the connector belongs to (from build_list_projects); your key must be allowed to build into it. API-key callers pass it to scope the connector to that project.
schema_namespaceNoNamespace for schemas from this source.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / plugin
      Added value: +{
      +  "description": "OPTIONAL, with kind='api': create a connector for this source plugin instead of the generic REST one, e.g. 'shopify' (read-only product catalog sync into catalog_item / catalog_variant), 'csv_file' or 'webhook'. Put the plugin's settings in `config`; build_list_data_sources lists each plugin's settings under plugin_sources. Secret settings (e.g. Shopify client_secret) go in `config` like a database password: sent to the platform, never echoed back. These plugins are sync-only: bind with mode='sync', then build_run_data_source (shopify has no discovery).",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / table_names
      Added value: +{
      +  "description": "database/warehouse, OPTIONAL: the source tables to sync, e.g. [\"customers\", \"orders\"]. Omit when you don't know them yet — run build_discover_source next and bind the streams it returns.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / project_uuid
      Added value: +{
      +  "description": "Project the connector belongs to (from build_list_projects); your key must be allowed to build into it. API-key callers pass it to scope the connector to that project.",
      +  "type": "string"
      +}
  4. Changed5 schema fields changed
    • addedInput schema / properties / database / description
      Added value: +"database/warehouse: database name."
    • addedInput schema / properties / host / description
      Added value: +"Server hostname (database kinds, Fabric, ClickHouse, Snowflake, Databricks). BigQuery/Redshift take their connection settings in `config`."
    • addedInput schema / properties / port / description
      Added value: +"Server port; omit for the dialect default (5432 PostgreSQL, 3306 MySQL, 1433 MSSQL/Fabric, 1521 Oracle, 27017 MongoDB)."
    • addedInput schema / properties / ssl_mode / description
      Added value: +"database kind: TLS mode, one of disable|allow|prefer|require|verify-ca|verify-full (or the MySQL spellings disabled|preferred|required|verify_ca|verify_identity); other values are rejected. Default 'require'. Used by PostgreSQL/MySQL/MSSQL/Fabric/MongoDB; Oracle and the HTTP warehouses (Snowflake/Databricks/ClickHouse/BigQuery/Redshift) ignore it."
    • addedInput schema / properties / username / description
      Added value: +"database/warehouse: login user (prefer a read-only one)."
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare mutation and open-world behavior, but the description adds information annotations cannot carry: credentials are sent to the platform and never echoed back, read-only DB credentials or the Key Store are recommended for production, the return value is a connector_id, and schemas remain unbound after creation. Nothing here contradicts readOnlyHint=false or openWorldHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then inputs, then return value, then flow and credential notes — a sensible order. The parameter enumeration sentence is somewhat redundant with the schema and makes the block denser than necessary, but no sentence is pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter, nested-object, no-output-schema creation tool, the description covers return value, prerequisites, credential handling and the required follow-up chain. It stops short of stating failure behavior — for example what happens when test_first probing fails or when a duplicate connector name is supplied — which is a minor gap given how much else is covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description nonetheless adds grouping value by tying field sets to each kind ('the connection fields for that kind') and highlights the optionality trade-off for table_names versus running discovery, which goes slightly beyond the per-field schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Creates a data connector to an external source the app owner controls (a database, a REST API or a warehouse).' It also states what is NOT done ('schemas are not bound yet'), which separates it from build_bind_data_source and build_discover_source without needing their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit sequencing is given: 'build_discover_source → build_bind_data_source → build_run_data_source (sync bindings only).' It also resolves the main decision an agent faces — whether to pass table_names now or defer to discovery — and states the prerequisite of a domain- or project-admin key.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.