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

TableJSON 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_idYes
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. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare non-readOnly, non-idempotent, non-destructive. The description adds value by explaining the trigger-and-wait behavior, the timeout cap with resume via execution_id, and that the job continues server-side on timeout. It does not contradict annotations.

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, front-loaded with the core action and outputs, then the sequencing constraint. Every sentence earns its place with zero waste.

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 tool with no output schema, the description explains what it returns and the sequencing. It covers the trigger-wait-resume pattern and the bind constraint. Missing error handling details, but sufficient for an agent to call it correctly given the complexity.

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 67% (timeout and execution_id have descriptions, connector_id does not). The description does not add any parameter-specific guidance beyond what the schema already provides, and it fails to compensate for the undocumented connector_id. Adequate but not value-adding.

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?

The description states a specific action (Discover a connector's schema), names the resource, and lists exact outputs (streams, columns, primary keys, AI-inferred Supero schemas, field mappings, namespace). It differentiates from sibling connector_discover* tools by framing it as a combined trigger-and-wait operation with sequencing hints.

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?

Explicitly states to run AFTER build_connect_data_source and BEFORE build_bind_data_source, and explains a hard constraint (live bind's source must equal a discovered stream name). This provides clear when-to-use and when-not-to-use context, and distinguishes from the separate connector_discover steps.

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.