Skip to main content
Glama

TextKit

Connect integration

connect_integration
Destructive

Connect a tool so its people sync in as contacts, in a list of their own, every 6 hours: Mixpanel (projectId, username, secret = a service account; sourceId = cohort id), Amplitude (apiKey, secretKey, sourceId), HubSpot (accessToken), Shopify (shopDomain, accessToken), Salesforce, or a webhook. Takes the event or property that shows people agreed to texts (consentEvent / consentField) and the property that holds their phone (phoneField). Credentials are proved with one read, sealed, and never returned.

Input Schema

NameRequiredDescriptionDefault
modeNoMixpanel / Amplitude: pull with credentials every 6 hours (default when credentials are sent), or push: no credentials, the tool's cohort sync posts to the ingest URL.
nameNoWhat to call it (default: the tool and its source).
apiKeyNoAmplitude API key.
regionNoMixpanel / Amplitude data residency.
secretNoMixpanel service account secret.
clientIdNoSalesforce consumer key, or Shopify client id.
providerYes
sfObjectNo
sourceIdNoMixpanel or Amplitude cohort id; HubSpot list id; Salesforce campaign id; a Shopify customer search. Blank = everyone (HubSpot, Shopify, Salesforce).
usernameNoMixpanel service account username.
projectIdNoMixpanel project id.
secretKeyNoAmplitude secret key.
phoneEventNoMixpanel: an event that carries the number when profiles do not (e.g. Verification Check Success). A member with no phone on the profile gets it from their latest such event.
phoneFieldNoThe tool's property holding the mobile number, when not the usual one ($phone, phone, mobilephone).
shopDomainNoShopify store, like acme.myshopify.com.
accessTokenNoHubSpot private app token, or Shopify Admin API access token.
instanceUrlNoSalesforce My Domain URL.
clientSecretNoSalesforce consumer secret, or Shopify client secret.
consentEventNoMixpanel / Amplitude: the opt-in event the cohort is built on (e.g. SMS Opt In). Everyone in the cohort is recorded as opted in, from that event.
consentFieldNoThe tool's property that records SMS consent (e.g. sms_opt_in).
phoneEventPropertyNoMixpanel: that event's property holding the number (default phone).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Goes meaningfully beyond the annotations by disclosing the 6-hour sync cadence and, importantly, that credentials are validated with one read, sealed, and never returned — a real trust and security fact an agent cannot infer. It does not address the destructiveHint=true implications (e.g., whether reconnecting an existing provider duplicates contacts or overwrites the list), which is the main gap for a mutation tool.

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 effect and cadence, then the provider list, then consent/phone semantics, then credential handling — a logical order. The parenthetical provider credentials make the single paragraph dense but every clause carries information; slight tightening could improve scanability.

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 21-parameter, non-idempotent, destructive, open-world tool with no output schema, the description covers the essentials: what gets created, the sync cadence, consent and phone sourcing, and credential safety. Missing pieces are the failure/re-connect behavior and what the created list looks like, which matter for a destructive operation.

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?

With 90% schema coverage the baseline is 3, but the description adds genuine cross-parameter structure the flat schema cannot express: which credentials belong to Mixpanel (projectId, username, secret as service account) versus Amplitude (apiKey, secretKey) versus HubSpot (accessToken), and how consentEvent/consentField and phoneField interact with consent and phone capture. The per-provider mapping is the key value-add over the schema.

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?

Names a specific verb and resource ('connect a tool') and adds the concrete effect: people sync in as contacts, into a dedicated list, every 6 hours. It enumerates the supported providers and the credential shape per provider, which makes the tool unmistakable. It does not explicitly distinguish itself from near-siblings such as update_integration, sync_integration, or disconnect_integration, so it stops short of a 5.

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

Usage Guidelines3/5

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

The description implies when to use it (setting up a new provider connection) and the mode parameter explains pull vs. push behavior, which is helpful context. However, there is no explicit 'use this instead of X' routing to update_integration, sync_integration, or list_integrations, and no stated preconditions for an already-connected provider.

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