Skip to main content
Glama
zackscriven

ghl-mcp-server-v2

by zackscriven

ghl_social_get_oauth_accounts

Read-onlyIdempotent

Retrieves available social media pages or channels after OAuth authentication, enabling selection for connection. Supports filtering by name.

Instructions

Get Available Accounts (Step 2 of 3)

OAuth Connection Flow - Step 2: Get Available Accounts

After completing OAuth authentication (Step 1), use this endpoint to retrieve the list of available pages, channels, or locations that can be connected.

OAuth Flow Position

  1. Start OAuth → User authenticates, returns accountId

  2. Get Accounts (this endpoint) → Lists available pages/channels to connect

  3. Attach Account → Connect the selected account

What This Returns

The response varies by platform:

Platform

Returns

facebook

List of Facebook Pages the user manages

**in

Endpoint: GET /social-media-posting/oauth/{locationId}/{platform}/accounts/{accountId} (Version header: v3; source: v3/social-planner-v3.json)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoSearch term to filter accounts/pages by name. Useful when the user has many pages to choose from.
platformYesSocial media platform
accountIdYesThe OAuth Account ID received from Step 1 (Start OAuth) via the window message event
locationIdYesAccount Location Id
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds behavior details: it's a GET endpoint, returns platform-specific listings, and includes the URL path. No contradictions; the description enriches understanding beyond annotations.

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 well-structured with headings, a table, and flow steps. Each part adds value, though it is slightly verbose. The endpoint line and OAuth flow details are concise and informative.

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?

No output schema is provided, but the description compensates with a table explaining return values per platform and the endpoint path. It covers the OAuth flow context and accountId dependency. Adequate for a read-only list tool.

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 coverage is 100% with clear parameter descriptions. The description mentions accountId is from Step 1 but does not add significant new semantic value beyond the schema. Baseline 3 is appropriate as schema fully documents parameters.

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 clearly states 'Get Available Accounts (Step 2 of 3)' and explicitly describes the tool as retrieving a list of available pages, channels, or locations for connection after OAuth. It distinguishes itself within the OAuth flow and per-platform return tables, leaving no ambiguity about its purpose.

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?

The description provides explicit usage guidance by positioning the tool as Step 2 of a three-step OAuth flow, instructing the agent to use it after Step 1 authentication. It does not explicitly list alternative tools, but the step-based context makes when-to-use clear.

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