Skip to main content
Glama

build_discover_source

Discover a connector's schema: trigger discovery, wait, and return the source streams (names, columns, primary keys), AI-inferred Supero schemas, field mappings, and a suggested namespace. Run AFTER build_connect_data_source and BEFORE build_bind_data_source (a live bind's source MUST equal a discovered stream name).

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

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, so the agent already knows this mutates external state and is not repeatable. The description adds real behavioral context the annotations don't: this triggers a job and blocks waiting on it, which is why resumption exists. It stops short of stating that a timeout leaves a job running server-side (that lives in 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.

Conciseness5/5

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

Two sentences, zero filler. The capability and its return payload come first, the ordering constraint second, and the critical `source`-must-match rule is parenthetical and easy to scan.

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 correctly carries the return contract, naming each artifact returned. It omits the timeout/resume behavior, but that is fully covered by the input schema, so the omission is minor rather than a hole.

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 timeout/cap/execution_id resume semantics are already fully documented in the schema. The description adds no parameter-level detail beyond the output contract, 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?

Specific verb and resource ('Discover a connector's schema') plus an enumeration of the outputs (streams, columns, primary keys, inferred schemas, mappings, namespace). An agent knows exactly what it gets back. It does not distinguish itself from the near-named siblings connector_discover / connector_discover_status, which is the one gap.

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: run AFTER build_connect_data_source and BEFORE build_bind_data_source, with the hard constraint that a live bind's `source` must equal a discovered stream name. That gives the agent both position in the workflow and the downstream dependency that makes the call mandatory.

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.