Skip to main content
Glama

Connections

connections
DestructiveIdempotent

Change connections (the connect link itself comes from connections_read connect: show it to the user VERBATIM, a one-time browser step), choose the Search Console, Analytics, Ads or Business Profile property, test or disconnect, and set publishing, sitemaps, market, plan language, IndexNow and vendor keys (confirm: true where the user must say yes). Checking what is connected is connections_read. Scoped to the connected site; no domain parameter needed. Cost: FREE - reads stored status and changes settings, no AI credits. Actions that stage changes on the site (set_publish_settings, set_sitemaps, set_indexing, set_vendor_key) are not available on this workspace's plan (they need the agents:act scope); every staged change requires human approval in SEOmatic. Actions: select_property (use this property / account (property) or these listings (locations); replacing a set one needs confirm: true. gsc without a Google sign-in: after the owner added SEOmatic's user email (status orAddUserEmail) as a user on their Search Console property, call it with no property and it connects; needs source); test (test the site connection with its stored credentials); shopify_recheck (Shopify's Check again: after the owner approved the permissions on Shopify (needsYou step shopify_permission), re-read them; held fixes are released when every one is there); disconnect (remove a source: cms deletes the site connection, a Google source revokes the user's own grant (confirm: true after the user's yes); needs source); set_market (set the search market (locationCode + languageCode from market); needs locationCode, languageCode); set_plan_language (choose the language the plan is read in (a code from plan_language, or "auto"); needs planLanguage).

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": {
      "action": "<action>"
    },
    "name": "connections"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesWhich operation to run. Each action, and the parameters it needs, is listed in the tool description.
apiKeyNoset_vendor_key: the key the user gave in this conversation (optional for indexnow: one is generated).
intentNoOptional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.
sourceNoproperty_choices / select_property / disconnect: gsc (Search Console), ga4 (Analytics), google_ads (Ads), gbp (Business Profile); cms (the website connection) for disconnect only.
confirmNoselect_property (replacing a set one) / disconnect / set_indexing: true only after the user explicitly said yes to this exact change.
enabledNoset_indexing: true turns instant indexing on, false off.
propertyNoselect_property: gsc the property siteUrl (omit it to connect the property the owner added SEOmatic's user email to), ga4 the propertyId, google_ads the customerId (from property_choices).
providerNoset_vendor_key: whose key this is.
locationsNoselect_property, gbp only: the listing location names to use (empty = none).
integrationNocheck only: the one source to check.
keyLocationNoset_vendor_key, indexnow only: a custom key-file URL.
sitemapUrlsNoset_sitemaps: the FULL list of http(s) sitemap URLs to keep (max 20; empty clears).
collectionIdNoset_publish_settings: the CMS collection or table id.
connectionIdNotest / disconnect (cms) / publish_settings / set_publish_settings: the connection id; omit for this workspace's site connection.
fieldMappingNoset_publish_settings: CMS field ids for title, content, slug, excerpt, featuredImage (required in it) and metaTitle, metaDescription (optional).
integrationsNoconnect only: the sources to offer - cms (website/CMS), gsc (Google Search Console), ga4 (Google Analytics), google_ads (Google Ads), gbp (Google Business Profile). Only the ones the question needs.
languageCodeNoset_market: the market language code, e.g. "en".
locationCodeNoset_market: the market location code (from market).
planLanguageNoset_plan_language: a language code from plan_language (e.g. "pl"), or "auto" to detect it from the site.
collectionNameNoset_publish_settings: its display name.
confirmDestructiveNoThe same attestation as confirm, as the elicitation retry carries it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "select_property",
      -  "test",
      -  "disconnect",
      -  "set_market",
      -  "set_plan_language"
      -]New value: +[
      +  "select_property",
      +  "test",
      +  "shopify_recheck",
      +  "disconnect",
      +  "set_market",
      +  "set_plan_language"
      +]
    • addedInput schema / properties / apiKey
      Added value: +{
      +  "description": "set_vendor_key: the key the user gave in this conversation (optional for indexnow: one is generated).",
      +  "type": "string"
      +}
    • addedInput schema / properties / collectionId
      Added value: +{
      +  "description": "set_publish_settings: the CMS collection or table id.",
      +  "type": "string"
      +}
    • addedInput schema / properties / collectionName
      Added value: +{
      +  "description": "set_publish_settings: its display name.",
      +  "type": "string"
      +}
    • addedInput schema / properties / enabled
      Added value: +{
      +  "description": "set_indexing: true turns instant indexing on, false off.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / fieldMapping
      Added value: +{
      +  "description": "set_publish_settings: CMS field ids for title, content, slug, excerpt, featuredImage (required in it) and metaTitle, metaDescription (optional).",
      +  "properties": {
      +    "content": {
      +      "type": "string"
      +    },
      +    "excerpt": {
      +      "type": "string"
      +    },
      +    "featuredImage": {
      +      "type": "string"
      +    },
      +    "metaDescription": {
      +      "type": "string"
      +    },
      +    "metaTitle": {
      +      "type": "string"
      +    },
      +    "slug": {
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / integration
      Added value: +{
      +  "description": "check only: the one source to check.",
      +  "enum": [
      +    "cms",
      +    "gsc",
      +    "ga4",
      +    "google_ads",
      +    "gbp"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / integrations
      Added value: +{
      +  "description": "connect only: the sources to offer - cms (website/CMS), gsc (Google Search Console), ga4 (Google Analytics), google_ads (Google Ads), gbp (Google Business Profile). Only the ones the question needs.",
      +  "items": {
      +    "enum": [
      +      "cms",
      +      "gsc",
      +      "ga4",
      +      "google_ads",
      +      "gbp"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / keyLocation
      Added value: +{
      +  "description": "set_vendor_key, indexnow only: a custom key-file URL.",
      +  "type": "string"
      +}
    • addedInput schema / properties / provider
      Added value: +{
      +  "description": "set_vendor_key: whose key this is.",
      +  "enum": [
      +    "ahrefs",
      +    "semrush",
      +    "indexmenow",
      +    "indexnow"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / sitemapUrls
      Added value: +{
      +  "description": "set_sitemaps: the FULL list of http(s) sitemap URLs to keep (max 20; empty clears).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed14 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"Which operation to run. status (every source with connected true/false, plus connect links for the missing ones); connect (the connect link (or button) for each listed source the user has not linked); check (one source: connected yet? (poll after the user connected))."New value: +"Which operation to run. Each action, and the parameters it needs, is listed in the tool description."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "status",
      -  "connect",
      -  "check"
      -]New value: +[
      +  "select_property",
      +  "test",
      +  "disconnect",
      +  "set_market",
      +  "set_plan_language"
      +]
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "select_property (replacing a set one) / disconnect / set_indexing: true only after the user explicitly said yes to this exact change.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / confirmDestructive
      Added value: +{
      +  "description": "The same attestation as confirm, as the elicitation retry carries it.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / connectionId
      Added value: +{
      +  "description": "test / disconnect (cms) / publish_settings / set_publish_settings: the connection id; omit for this workspace's site connection.",
      +  "type": "string"
      +}
    • removedInput schema / properties / integration
      Removed value: -{
      -  "description": "check only: the one source to check.",
      -  "enum": [
      -    "cms",
      -    "gsc",
      -    "ga4",
      -    "google_ads",
      -    "gbp"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / integrations
      Removed value: -{
      -  "description": "connect only: the sources to offer - cms (website/CMS), gsc (Google Search Console), ga4 (Google Analytics), google_ads (Google Ads), gbp (Google Business Profile). Only the ones the question needs.",
      -  "items": {
      -    "enum": [
      -      "cms",
      -      "gsc",
      -      "ga4",
      -      "google_ads",
      -      "gbp"
      -    ],
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Optional, not needed to answer: in a few words, what the user is trying to achieve, kept to improve SEOmatic. No personal details.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / languageCode
      Added value: +{
      +  "description": "set_market: the market language code, e.g. \"en\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / locationCode
      Added value: +{
      +  "description": "set_market: the market location code (from market).",
      +  "type": "integer"
      +}
    • addedInput schema / properties / locations
      Added value: +{
      +  "description": "select_property, gbp only: the listing location names to use (empty = none).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / planLanguage
      Added value: +{
      +  "description": "set_plan_language: a language code from plan_language (e.g. \"pl\"), or \"auto\" to detect it from the site.",
      +  "type": "string"
      +}
    • addedInput schema / properties / property
      Added value: +{
      +  "description": "select_property: gsc the property siteUrl (omit it to connect the property the owner added SEOmatic's user email to), ga4 the propertyId, google_ads the customerId (from property_choices).",
      +  "type": "string"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "property_choices / select_property / disconnect: gsc (Search Console), ga4 (Analytics), google_ads (Ads), gbp (Business Profile); cms (the website connection) for disconnect only.",
      +  "enum": [
      +    "cms",
      +    "gsc",
      +    "ga4",
      +    "google_ads",
      +    "gbp"
      +  ],
      +  "type": "string"
      +}
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses a lot: the operation is FREE with no AI credits, staged changes require human approval in SEOmatic, certain actions need the agents:act scope and are unavailable on this plan, and disconnect has differentiated semantics (cms deletes the site connection, Google sources revoke the user's own grant). It does not describe return shapes or what state is left behind on partial failure, which keeps it off a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The purpose is front-loaded in the first sentence, but the body is one dense run-on of semicolon-separated clauses with nested parentheses, which is hard to scan for a 6-action tool. Significant space is spent enumerating actions that cannot be invoked on this plan, which does not earn its place for the caller.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be explained, and the description covers confirmations, cost, and plan restrictions well. However, it advertises actions and parameters (connect, check, set_vendor_key, set_sitemaps, publish settings) that the action enum cannot reach, so an agent cannot tell from this definition whether those capabilities are usable here.

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% and the schema already documents action-to-parameter mappings (including the 'omit property to connect via owner-added user email' case), so the description mostly restates it. The added value is limited to the confirm attestation ritual and the approval workflow; no new syntax or format meaning is introduced for the 21 parameters.

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?

The opening sentence names the resource (connections) and enumerates concrete operations (choose property, test/disconnect, set market/plan language, vendor keys), and it explicitly marks out the sibling boundary: 'Checking what is connected is connections_read.' The purpose is unmistakable, but the enumeration includes actions (set_publish_settings, set_sitemaps, set_indexing, set_vendor_key, connect) that are not selectable in the action enum, which blurs what the tool actually does.

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

Usage Guidelines4/5

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

Guidance is embedded per action and is genuinely actionable: 'confirm: true where the user must say yes', 'show it to the user VERBATIM', and the explicit handoff to connections_read for read-only checking. It stops short of 5 because there is no consolidated statement of when to prefer one action over another, and several described actions are not callable on this workspace's plan, leaving the agent to reconcile that itself.

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.