Skip to main content
Glama

build_discover_source

Runs discovery on a connector and returns its source streams (names, columns, primary keys), AI-inferred Supero schemas, field mappings and a suggested namespace. Inputs: connector_id, optional execution_id, timeout. Runs between build_connect_data_source and build_bind_data_source; a live bind's source has to equal a discovered stream name.

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>"
    },
    "name": "build_discover_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoMax seconds to wait IN THIS CALL (default 60, cap 90 — an MCP call must finish under the ~100s edge limit). On timeout, resume with the returned execution_id; the job keeps running server-side.
connector_idYesThe connector to discover (from build_connect_data_source).
execution_idNoRESUME polling an in-flight discovery (from a previous timeout error) instead of starting a new job.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connector_id / description
      Added value: +"The connector to discover (from build_connect_data_source)."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), the description discloses the job/resume model: a timeout returns an execution_id while 'the job keeps running server-side.' That is meaningful operational context an agent needs for retry decisions. It doesn't state cost, latency expectations, or side effects of starting a discovery job, which keeps it at 4.

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 the action and the return payload, followed by workflow placement — the ordering is right. The 'Inputs: ...' clause is redundant given fully documented schema parameters and is the one sentence that doesn't earn its place.

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?

With no output schema, the description compensates well by enumerating the returned artifacts, and it covers pipeline placement plus the long-running-job behavior. It leaves unaddressed whether repeated calls create duplicate jobs (idempotentHint=false is declared but not explained) and how it relates to the other discover-family tools.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents connector_id provenance, the execution_id resume semantics, and the timeout cap/resume behavior. The description's 'Inputs: connector_id, optional execution_id, timeout' merely restates the parameter names without adding meaning, so baseline 3 applies.

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?

The description opens with a specific verb+resource ('Runs discovery on a connector') and enumerates the concrete return payload: stream names, columns, primary keys, inferred Supero schemas, field mappings, suggested namespace. It also places itself in the pipeline relative to build_connect_data_source and build_bind_data_source. It stops short of 5 because it does not distinguish itself from the similarly-named connector_discover / connector_discover_results siblings, which an agent could plausibly confuse it with.

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

Usage Guidelines4/5

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

'Runs between build_connect_data_source and build_bind_data_source' gives explicit ordering guidance, and the note that 'a live bind's source has to equal a discovered stream name' explains a precondition for the downstream call. No explicit when-not-to-use or alternative-tool exclusion is stated, so it falls short of 5.

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.