Skip to main content

Ghl Update Price

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.ghl_update_price
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 3a8331c3ce78b22ce8569e72c09ad3e823a1c60a06469aede27a26ec3cd095b3

Update a price for a product. GHL category: Payments / Products / Prices. This changes product catalog pricing. You may provide only the fields to change; the MCP reads the current price first and fills provider-required fields such as type, currency, and amount when available.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-ghl-update-price-example",
"method": "tools/call",
"params": {
"name": "ghl.ghl_update_price",
"arguments": {
"productId": "productId_123",
"priceId": "priceId_123",
"body": {},
"name": "name_example",
"type": "one_time",
"amount": 1,
"currency": "currency_example",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"productId",
"priceId"
],
"properties": {
"body": {
"type": "object",
"description": "Additional GHL-supported update fields from the Products price schema.",
"additionalProperties": true
},
"name": {
"type": "string",
"description": "Price name/variant name"
},
"type": {
"enum": [
"one_time",
"recurring"
],
"type": "string",
"description": "Price type"
},
"amount": {
"type": "number",
"description": "Price amount in cents"
},
"priceId": {
"type": "string",
"description": "Price ID to update"
},
"currency": {
"type": "string",
"description": "Currency code (for example, USD)"
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"productId": {
"type": "string",
"description": "Product ID that owns the price"
},
"locationId": {
"type": "string",
"description": "GHL Location ID (optional, uses default if not provided)"
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
},
"compareAtPrice": {
"type": "number",
"description": "Compare-at price in cents"
}
}
}

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-ghl-update-price-example",
"method": "tools/call",
"params": {
"name": "ghl.ghl_update_price",
"arguments": {
"productId": "productId_123",
"priceId": "priceId_123",
"body": {},
"name": "name_example",
"type": "one_time",
"amount": 1,
"currency": "currency_example",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false
}
}
}'

Example Responses

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