Skip to main content
Glama

build_bind_data_source

Destructive

Binds source streams to the app's schemas. Inputs: connector_id, bindings. mode='live_read' (default: read-only own database or warehouse), 'live_readwrite' (own database read+write, domain-admin only) or 'sync' (copy into SuperoDB). Modes by source: postgresql, supabase and mysql take all three; mssql takes sync and live_read; oracle and mongodb take sync only; a REST api takes sync and live_read; warehouses take live_read only. Live modes need discovery first, each binding's source matching a discovered stream, and the bind verifies the live mapping. A new live table states tenant_binding, which only the data owner can answer (which rows belong to which tenant). Bound live schemas are read and written through ordinary app CRUD; nothing goes in the bundle.

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": {
      "connector_id": "<connector_id>",
      "bindings": "<bindings>"
    },
    "name": "build_bind_data_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
bindingsYesOne entry per app schema to back with a source stream.
connector_idYesThe connector to bind (from build_connect_data_source).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / bindings / items / properties / confirm_tenant_binding_downgrade
      Added value: +{
      +  "description": "Set true, separately from tenant_binding, only when the data owner has agreed to move this table from mode 'column' to 'fixed', which removes its row filter. Required for that move when the gate enforces.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / bindings / items / properties / mode / description
      Previous value: -"live_read (default, read-only), live_readwrite (domain-admin key only), or sync (copy into SuperoDB)."New value: +"live_read (default, read-only), live_readwrite (domain-admin key only; postgresql, supabase and mysql only), or sync (copy into SuperoDB). oracle and mongodb are sync only."
    • changedInput schema / properties / bindings / items / properties / tenant_binding / description
      Previous value: -"How live rows map to Supero tenants. OMIT for the default {mode:'fixed', tenant:'default-tenant'} (all rows visible to the default tenant/admin — required, else live reads 403 tenant_binding_missing). For per-tenant isolation pass {mode:'column', tenant_field:'<col>', tenant_value_map:{<supero_tenant>:<source_value>}}."New value: +"How live rows map to Supero tenants. State this for every new live table: ask the data owner which of these applies, never assume. (1) Rows of several tenants, separated by a column: {mode:'column', tenant_field:'<source column>', tenant_value_map:{'<supero tenant>':'<value in that column>'}, on_unmapped_tenant:'deny'}; each caller reads only its mapped rows, and a tenant not in the map is refused, default-tenant included. (2) The whole source belongs to one named tenant: {mode:'fixed', tenant:'<that tenant>'}; only that tenant's callers can read. (3) Admin or internal data only: {mode:'fixed', tenant:'default-tenant'}; default-tenant callers read every row with no filter, and every named-tenant caller gets 403 tenant_mismatch. Last resort, only if a fixed bind is refused because a column looks like a tenant discriminator and the owner has told you that column does not separate tenants: add single_tenant_source_confirmed:true. It turns off row filtering for that source and needs the owner's answer; your API key and the time are recorded as the attestation."
  2. Changed3 schema fields changed
    • addedInput schema / properties / bindings / description
      Added value: +"One entry per app schema to back with a source stream."
    • addedInput schema / properties / bindings / items / properties / mode / description
      Added value: +"live_read (default, read-only), live_readwrite (domain-admin key only), or sync (copy into SuperoDB)."
    • addedInput schema / properties / connector_id / description
      Added value: +"The connector to bind (from build_connect_data_source)."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations flag it as destructive/write and open-world, and the description adds real behavior beyond that: live binds verify the mapping, tenant filtering semantics (column vs fixed, default-tenant sees everything, named tenants get 403 tenant_mismatch), the attestation recorded when single_tenant_source_confirmed is used, and the clarifying fact that bound live schemas are accessed through ordinary app CRUD and nothing goes in the bundle. That last point is a non-obvious side effect disclosure an agent could not infer from the schema.

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?

Purpose is front-loaded and the dense middle section is genuinely information-bearing rather than padding. There is mild duplication — the mode enum meanings are repeated in prose and again in the schema — and the long run-on sentence listing per-source modes takes effort to parse.

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 a two-parameter but behaviorally complex destructive binding operation with no output schema, the description covers prerequisites, mode legality, tenant mapping, and post-bind access path. It is thin only on what a successful bind returns or what happens on partial failure across multiple bindings.

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, but the description earns above baseline by carrying the source-to-mode compatibility matrix and the discovery prerequisite, neither of which appears in the input schema. Its mode and tenant_binding explanations largely restate the nested schema property descriptions, which keeps it from a 5.

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

Purpose4/5

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

Opens with a specific verb+resource: 'Binds source streams to the app's schemas', and the body scopes it to connector_id/bindings, so an agent knows exactly what the call mutates. It references build_connect_data_source as the source of connector_id and implies build_discover_source as a prerequisite, but never states an explicit 'use X instead' contrast, so it stops short of a 5.

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?

Unusually thorough routing guidance: it enumerates the three modes and which of postgresql, supabase, mysql, mssql, oracle, mongodb, REST and warehouses accept each, states that live modes require discovery first and that each binding must match a discovered stream. It also gives explicit escalation conditions for single_tenant_source_confirmed ('last resort, only if a fixed bind is refused...') and for confirm_tenant_binding_downgrade, which is exactly the when/when-not an agent needs.

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.