Skip to main content
Glama

Run data collection for a connection

trigger_connection_sync

Start an incremental refresh of one data connection

When to use: 고객이 "어제 데이터가 안 들어왔어", "지금 최신화해줘"처럼 연동 하나의 수집을 지금 다시 돌려 달라고 할 때. 웹 데이터 연동 화면의 「최신화」 버튼과 같은 동작입니다. data_connection_id 는 list_connection_dag_status 응답의 id 또는 list_tenant_dag_connections 의 malls[].data_connection_id 입니다. 이 프로젝트가 소유한 연동만 최신화할 수 있습니다. 다른 계정이 공유한 연동(공유받은 연동)은 위 목록에 보여도 이 도구로 최신화할 수 없습니다. 실제 수집을 시작하는 쓰기이므로 고객이 최신화를 요청했거나, 최신화하자는 제안에 동의했을 때만 부르세요.

When NOT to use: 수집 상태나 진행만 볼 때(list_connection_dag_status 등 수집 로그 도구를 쓰세요). 특정 날짜·기간을 다시 받아 달라는 요청 — 이 도구는 날짜를 받지 않으니 그렇게 할 수 없다고 알리세요. 인증이 끊긴 연동을 고칠 때(재연결은 웹에서 합니다). 409 를 받은 직후 같은 연동을 다시 부를 때. 고객이 요청하지 않은 자동·주기 최신화.

Limitations: 증분 최신화입니다: 소스마다 마지막으로 수집한 지점에서 provider 가 정한 일수만큼 거슬러 올라가 보통 어제까지 다시 받습니다. 다시 받는 기간은 provider 마다 다르고 이 도구로 기간을 정할 수 없으며, 특정 날짜를 골라 다시 받는 기능이 아닙니다. 다만 HUBSPOT·KLAVIYO·PLAYAUTO 연동이 다른 실행 엔진에서 돌 때는 마지막 수집 지점과 관계없이 어제 하루만 다시 받아, 그보다 오래된 누락은 이 도구로 채워지지 않습니다. 아직 한 번도 수집하지 않은 소스는 첫 수집으로 실행됩니다. 연동에서 수집이 켜진 소스 전체가 대상입니다. 호출하면 벤더 API 수집과 그 뒤 데이터 마트 갱신이 이어져 끝날 때까지 수 분~수십 분 걸립니다. 응답은 실행을 시작했다는 뜻이고 수집 완료가 아닙니다. 같은 연동에 실행 중인 수집이 있으면 409 이고 새 실행은 생기지 않습니다 — 다시 호출하지 말고 진행 상황을 확인하세요. 409 말고는 호출 간격 제한이 없으니 같은 연동을 되풀이해 부르지 마세요. 최신화를 받지 않는 연동은 404 입니다: 구글 시트 주문·광고·원가(GOOGLE_SHEETS·GOOGLE_SHEETS_AD·GOOGLE_SHEETS_COGS), IMWEB_LEGACY, GA4_API, 카페24(CAFE_24 계열), 관리자 화면 로그인으로 모으는 연동(이름이 _ADMIN 으로 끝나는 provider·COUPANG_ADS) 등 — 정기 수집을 기다리거나 웹에서 다루세요. 없는 id, 이 프로젝트의 연동이 아닌 id, 공유받은 연동도 404 입니다. 공유받은 연동이면 공유한 계정에서 최신화해야 한다고 알리고 다시 부르지 마세요. 그 외에는 지원되지 않는 연동이라고 말하기 전에 list_connection_dag_status 로 id 를 다시 확인하세요. V2 로 전환되지 않은 SABANGNET 연동은 409 입니다. 프로젝트에서 연동 최신화 권한이 없으면 403 입니다. 진행 상황은 list_connection_dag_status 에서 같은 id 연동의 state[].dag_state.run_id (끝난 뒤에는 with_last_run=true 로 last_run.run_id)를 응답 run_id 와 대조해 확인하세요. HUBSPOT·KLAVIYO·PLAYAUTO·SABANGNET 연동은 다른 실행 엔진에서 돌 수 있어 응답 run_id 와 같은 실행이 수집 로그에 바로 보이지 않을 수 있습니다.

Examples:

  • Q: 어제 광고 데이터가 안 들어왔어, 이 연동 지금 최신화해줘 params: {'body': {'data_connection_id': 123}}

  • Q: 이 연동의 데이터를 지금 최신화해줘 params: {'body': {'data_connection_id': 456}}

Output shape: {run_id_prefix, run_id} — run_id 는 시작한 실행의 ID(run_id_prefix 로 시작)이며 수집 결과는 담지 않습니다

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": {
      "data_connection_id": "<data_connection_id>"
    },
    "name": "trigger_connection_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
project-idNo
data_connection_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and the description goes well beyond them: multi-minute duration, response means 'started' not 'completed', 409 on concurrent runs, 404 for unsupported providers with an enumerated list, and 403 for missing permission. The only shortfall is that the provider-specific execution-engine caveat (HUBSPOT/KLAVIYO/PLAYAUTO) is dense and slightly redundant with the run_id caveat later.

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?

Well front-loaded: purpose, then when-to-use, when-not-to-use, limitations, examples, output shape. Some sentences earn less than their length — the shared-connection restriction is restated in both the usage section and the limitations section, and the 'no rate limit besides 409' sentence is tangential.

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?

For a write tool with no output schema, the description covers everything an agent needs: start-vs-complete semantics, how to correlate `run_id` with logs, failure-mode meanings, and unsupported-provider handling. Completeness is high relative to the tool's operational complexity.

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 0%, so the description carries the burden, and it does for `data_connection_id` by giving provenance (id from `list_connection_dag_status` or `malls[].data_connection_id` from `list_tenant_dag_connections`) plus the ownership constraint. The second parameter `project-id` is never mentioned, leaving a gap, though it is likely implicit context.

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 opens with a specific verb+resource: 'Start an incremental refresh of one data connection'. It explicitly scopes to a single connection and immediately frames the action as equivalent to the web UI's refresh button, which disambiguates it from the sibling read/log tools.

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?

There are explicit 'When to use' and 'When NOT to use' sections naming concrete user phrasings and the alternatives (`list_connection_dag_status` for status, web UI for reconnection, no auto/periodic refresh). It even states the consent condition required before calling, which is unusually strong routing guidance.

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.

Resources