Skip to main content

Agent Studio Update Agent Version

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.agent_studio_update_agent_version
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 412f9a292bf7f79b657c94518587190c555f25c8b9ab740bfabcccbdced89379

Update a GHL AI Agent Studio agent version by version ID. GHL category: AI Agents / AI Agent Studio. This writes to or executes GHL AI Agent Studio configuration. Do not modify, publish, or execute production agents during validation unless the user explicitly provides disposable fixtures.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-agent-studio-update-agent-version-example",
"method": "tools/call",
"params": {
"name": "ghl.agent_studio_update_agent_version",
"arguments": {
"versionId": "versionId_123",
"body": {},
"query": {},
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false,
"includeFullConfig": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"versionId",
"body"
],
"properties": {
"body": {
"type": "object",
"description": "Request body for updating an Agent Studio version. Prompt/instruction/node fields are redacted from default MCP output.",
"additionalProperties": true
},
"query": {
"type": "object",
"description": "Optional GHL-supported query parameters for this official Agent Studio endpoint, such as limit, offset, isPublished, or documented filters. locationId is injected automatically for list/get endpoints that require it.",
"additionalProperties": true
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"versionId": {
"type": "string",
"description": "versionId path parameter required by /agent-studio/agent/versions/:versionId."
},
"locationId": {
"type": "string",
"description": "Optional GHL location ID for safety validation only. If provided, it must match the authenticated runtime location; it is not forwarded for this endpoint unless GHL documents locationId support."
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
},
"includeFullConfig": {
"type": "boolean",
"description": "Defaults to false. Set true only when the user explicitly needs full Agent Studio prompts, version graph data, instructions, nodes, or execution configuration."
}
},
"additionalProperties": false
}

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-agent-studio-update-agent-version-example",
"method": "tools/call",
"params": {
"name": "ghl.agent_studio_update_agent_version",
"arguments": {
"versionId": "versionId_123",
"body": {},
"query": {},
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false,
"includeFullConfig": false
}
}
}'

Example Responses

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