Skip to main content
Glama

test_ad_connection

Idempotent

Verify that an ad integration's saved connection still works — runs a live connectivity/auth check against the ad channel right now. Each ad owns exactly ONE connection (never shared), so no separate handle is needed: the ad_id IS the connection. Use this when an ad looks connected but items fail, or after credentials/OAuth may have expired. Returns {integrationId, status ('ok' | 'error' | 'not_connected'), message}. 'not_connected' means the connection step was never completed; to move a connection to a different channel there is no transfer — clone the ad with clone_ad. Never returns secrets. This does not change any settings. Fixing or (re)establishing a connection (credentials / OAuth) is done by the USER in the browser / Koongo UI, NEVER via MCP: on 'error' / 'not_connected' route the user there, do not retry configure_ad_step to set credentials. ad_id is from list_ads. project_id is OPTIONAL (project_id_required otherwise — then call list_projects).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ad_idYesintegrationId of the ad (from list_ads).
project_idNo

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare idempotent and non-destructive, but the description adds valuable behavioral details: this does not change settings, never returns secrets, reports a 'not_connected' status, and clarifies that credential/OAuth fixes happen only via the user in the UI. The readOnlyHint=false annotation is not contradicted because a live auth/connectivity check may still have side effects beyond settings.

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?

The description is dense but purposeful, front-loading the core purpose before covering return shape, edge cases, and user-only repair flows. While lengthy, nearly every sentence carries operational guidance, so the length is justified rather than redundant.

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

Completeness5/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 provides a full return contract including status values and their meaning. It also covers the not_connected edge case, the no-transfer constraint, the user-only credential repair path, and optional parameter handling—leaving no required decision ambiguous for correct invocation.

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 only 50%, but the description compensates by explaining that ad_id is both the integration ID and the connection handle, sourced from list_ads. For project_id, it clarifies that it is optional, when it becomes required, and how to discover it via list_projects—though it could have described the parameter's purpose more explicitly.

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 opening sentence uses 'Verify' with a specific resource and action: checking whether an ad integration's saved connection still works via a live connectivity/auth check. It clearly ties the tool to ads specifically and explains that the ad_id is the connection, distinguishing it from related connection-testing tools for marketplaces and orders.

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?

The description explicitly states when to use the tool ('when an ad looks connected but items fail, or after credentials/OAuth may have expired') and when not to: do not retry configure_ad_step for credential fixes, route the user to the browser/UI instead, and clone the ad if a connection needs to move to another channel. It also provides fallback guidance for project_id with list_projects.

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.

TDQS

A4.2/5.0
Disambiguation4/5

Tools are organized around distinct resources (ads, marketplaces, feeds, orders, rules, sources) with clear action verbs, and descriptions explicitly disambiguate near-pairs like get_feed_status vs ad_status or set_feed_filter vs set_feed_attribute_filter. A few similarly named status/action pairs (e.g. ad_status vs get_ad, run_ad_item_action vs run_ad_operation) require careful reading, but overall the purposes are separable.

Naming Consistency4/5

The overwhelming majority follow a consistent verb_noun snake_case pattern (list_*, get_*, create_*, set_*, run_*, test_*). Minor deviations like ad_status and marketplace_status (noun-based status tools) and koongo_knowledge break the pattern slightly, but the convention is clearly recognizable and predictable.

Tool Count1/5

At 105 tools, the surface is extreme and far beyond the 50+ threshold, even for a complex e-commerce integration domain. Much of the bloat comes from systematic triplication across ads, marketplaces, and feeds (e.g. three nearly identical map_*_attribute tools, three list_*_items, three get_*_report) that a generic resource parameter could have consolidated.

Completeness4/5

The toolset covers the full lifecycle of feeds, ads, marketplaces, order connections, rules, and imports, including create/read/update/delete, status monitoring, item-level actions, validation, repair, and restore. Minor gaps exist, such as no delete for standalone order connections and limited update capabilities for some entities, but these are workable and do not create dead ends for the core workflows.

Resources