Skip to main content

Create Media Folder

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.create_media_folder
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 820f8291ef37ce8bb8c898757bc7160d0aa7a4fced960d59ee4da7590513c0e7

Create a folder in GHL Media Storage. Use parentId or folderId to create it under an existing folder; omit both to create at the media root. Location context is injected from BYOK runtime unless explicitly provided and matching. GHL category: Media Storage. This writes to GoHighLevel and may change account data.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-create-media-folder-example",
"method": "tools/call",
"params": {
"name": "ghl.create_media_folder",
"arguments": {
"name": "name_example",
"altId": "altId_123",
"altType": "location",
"folderId": "folderId_123",
"parentId": "parentId_123",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the folder to create."
},
"altId": {
"type": "string",
"description": "Location ID. Defaults to the current GHL location."
},
"altType": {
"enum": [
"location"
],
"type": "string",
"default": "location",
"description": "GHL media context type. GHL Media Storage folder writes support location context."
},
"folderId": {
"type": "string",
"description": "Alias for parentId."
},
"parentId": {
"type": "string",
"description": "Optional parent folder ID."
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"locationId": {
"type": "string",
"description": "GHL location ID. In BYOK runtime this must match the request header location."
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
}
}
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the GHL MCP operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Tool-specific GHL or local navigation result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe execution, routing, and timing metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe error details when ok is false; credential values are never returned."
}
},
"description": "Normalized GHL MCP response envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ghl-create-media-folder-example",
"method": "tools/call",
"params": {
"name": "ghl.create_media_folder",
"arguments": {
"name": "name_example",
"altId": "altId_123",
"altType": "location",
"folderId": "folderId_123",
"parentId": "parentId_123",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ghl.create_media_folder executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}