Skip to main content
Glama
zackscriven

ghl-mcp-server-v2

by zackscriven

ghl_social_attach_oauth_accounts

Connect a selected social media account to your location after OAuth authentication, completing the 3-step OAuth flow for platforms like Facebook, Instagram, LinkedIn, and more.

Instructions

Connect Account (Step 3 of 3)

OAuth Connection Flow - Step 3: Connect the Account

This is the final step in the OAuth flow. After retrieving available accounts (Step 2), use this endpoint to connect the selected account to your location.

OAuth Flow Summary

  1. Start OAuth → User authenticates with platform

  2. Get Accounts → Retrieved available pages/channels

  3. Attach Account (this endpoint) → Connect the selected account

Request Body by Platform

The request body structure varies depending on the platform:

Facebook / Instagram

{
  "type": "page",
  "originId": "244405XXXXX11687",
  
Endpoint: POST /social-media-posting/oauth/{locationId}/{platform}/accounts/{accountId} (Version header: v3; source: v3/social-planner-v3.json)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesAccount details to connect. The structure varies by platform - see description above for examples.
platformYesSocial media platform (must match the platform used in Steps 1 and 2)
accountIdYesThe OAuth Account ID received from Step 1 (same as used in Step 2)
locationIdYesThe Location ID where you want to connect this social account
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false. The description does not add meaningful behavioral context beyond the OAuth flow step; it lacks details about side effects, permissions, rate limits, or error cases. The endpoint and version are mentioned but provide limited agent guidance.

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 description is front-loaded with the step number and includes a clear OAuth flow summary. However, it is somewhat verbose with truncated JSON examples and a raw endpoint string. The structure is organized but could be more concise.

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

Completeness2/5

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

There is no output schema, and the description does not explain return values, success/error conditions, or prerequisites (e.g., OAuth token from Step 1). For a mutation tool with four required parameters and platform-variant body, the description lacks completeness in guiding the agent on what to expect.

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%, so baseline is 3. The description adds platform-specific JSON examples (though truncated) and explains the 'body' parameter structure varies by platform. This adds some value, but the examples are incomplete and the schema itself is already descriptive.

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 description clearly states the tool is the final step (Step 3 of 3) to connect an OAuth account after retrieving available accounts. It uses a specific verb ('Connect Account') and resource ('account'), though it does not explicitly distinguish from sibling attach tools (e.g., ghl_social_attach_facebook_page_group).

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 provides an OAuth flow summary and indicates this tool is used after Step 2 ('Get Accounts'), but it does not give explicit when-to-use or when-not-to-use guidance. Alternatives (platform-specific attach tools) are not mentioned, leaving the agent to infer usage context from the flow summary.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zackscriven/ghl-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server