Skip to main content
Glama
ghl-mcp-server-v2

ghl-mcp-server-v2

by zackscriven

ghl_product_price_update

Idempotent

Update a specific product price by product ID and price ID, including amount, currency, billing type, and recurring details.

Instructions

Update Price by ID for a Product The "Update Price by ID for a Product" API allows modifying information for a specific price associated with a particular product using its unique identifier. Use this endpoint to update details for a single price based on the provided price ID and product ID. Endpoint: PUT /products/{productId}/price/{priceId} (Version header: v3; source: v3/products-v3.json) Requires an Agency or Sub-Account token. OAuth scopes: products/prices.write

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "productId": "<productId>",
      "priceId": "<priceId>",
      "body": "<body>"
    },
    "name": "ghl_product_price_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body (schema carried verbatim from the official OpenAPI spec).
priceIdYesID of the price that needs to be returned
productIdYesID of the product that needs to be used

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.1.0
    • addedInput schema / properties / body / properties / membershipOffers / items / title
      Added value: +"MembershipOfferDto"
    • changedInput schema / properties / body / properties / meta / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "internalSource": {
      -        "description": "The internal source of the price.",
      -        "enum": [
      -          "agency_plan",
      -          "funnel",
      -          "membership",
      -          "communities",
      -          "gokollab",
      -          "calendar"
      -        ],
      -        "example": "agency_plan",
      -        "type": "string"
      -      },
      -      "source": {
      -        "description": "The source of the price.",
      -        "enum": [
      -          "stripe",
      -          "woocommerce",
      -          "shopify"
      -        ],
      -        "example": "stripe",
      -        "type": "string"
      -      },
      -      "sourceId": {
      -        "description": "The id of the source of the price from where it is imported",
      -        "example": "123",
      -        "type": "string"
      -      },
      -      "stripePriceId": {
      -        "description": "The Stripe price ID associated with the price.",
      -        "example": "price_123",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "source",
      -      "stripePriceId",
      -      "internalSource"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "internalSource": {
      +        "description": "The internal source of the price.",
      +        "enum": [
      +          "agency_plan",
      +          "funnel",
      +          "membership",
      +          "communities",
      +          "gokollab",
      +          "calendar"
      +        ],
      +        "example": "agency_plan",
      +        "type": "string"
      +      },
      +      "source": {
      +        "description": "The source of the price.",
      +        "enum": [
      +          "stripe",
      +          "woocommerce",
      +          "shopify"
      +        ],
      +        "example": "stripe",
      +        "type": "string"
      +      },
      +      "sourceId": {
      +        "description": "The id of the source of the price from where it is imported",
      +        "example": "123",
      +        "type": "string"
      +      },
      +      "stripePriceId": {
      +        "description": "The Stripe price ID associated with the price.",
      +        "example": "price_123",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "source",
      +      "stripePriceId",
      +      "internalSource"
      +    ],
      +    "title": "PriceMetaDto",
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / properties / recurring / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "interval": {
      -        "description": "The interval at which the recurring event occurs.",
      -        "enum": [
      -          "day",
      -          "month",
      -          "week",
      -          "year"
      -        ],
      -        "example": "day",
      -        "type": "string"
      -      },
      -      "intervalCount": {
      -        "description": "The number of intervals between each occurrence of the event.",
      -        "example": 1,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "interval",
      -      "intervalCount"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "interval": {
      +        "description": "The interval at which the recurring event occurs.",
      +        "enum": [
      +          "day",
      +          "month",
      +          "week",
      +          "year"
      +        ],
      +        "example": "day",
      +        "type": "string"
      +      },
      +      "intervalCount": {
      +        "description": "The number of intervals between each occurrence of the event.",
      +        "example": 1,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "interval",
      +      "intervalCount"
      +    ],
      +    "title": "RecurringDto",
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / properties / shippingOptions / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "dimensions": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "height": {
      -                "description": "Height of the price",
      -                "example": 10,
      -                "type": "number"
      -              },
      -              "length": {
      -                "description": "Length of the price",
      -                "example": 10,
      -                "type": "number"
      -              },
      -              "unit": {
      -                "description": "Unit of the price dimensions",
      -                "enum": [
      -                  "cm",
      -                  "in",
      -                  "m"
      -                ],
      -                "example": "cm",
      -                "type": "string"
      -              },
      -              "width": {
      -                "description": "Width of the price",
      -                "example": 10,
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "height",
      -              "width",
      -              "length",
      -              "unit"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "Dimensions of the product"
      -      },
      -      "weight": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "unit": {
      -                "description": "Weight unit of the product",
      -                "enum": [
      -                  "kg",
      -                  "lb",
      -                  "g",
      -                  "oz"
      -                ],
      -                "example": "kg",
      -                "type": "string"
      -              },
      -              "value": {
      -                "description": "Actual weight of the product",
      -                "example": 10,
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "value",
      -              "unit"
      -            ],
      -            "type": "object"
      -          }
      -        ],
      -        "description": "Weight options of the product"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "dimensions": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "height": {
      +                "description": "Height of the price",
      +                "example": 10,
      +                "type": "number"
      +              },
      +              "length": {
      +                "description": "Length of the price",
      +                "example": 10,
      +                "type": "number"
      +              },
      +              "unit": {
      +                "description": "Unit of the price dimensions",
      +                "enum": [
      +                  "cm",
      +                  "in",
      +                  "m"
      +                ],
      +                "example": "cm",
      +                "type": "string"
      +              },
      +              "width": {
      +                "description": "Width of the price",
      +                "example": 10,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "height",
      +              "width",
      +              "length",
      +              "unit"
      +            ],
      +            "title": "PriceDimensionsDto",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "Dimensions of the product"
      +      },
      +      "weight": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "unit": {
      +                "description": "Weight unit of the product",
      +                "enum": [
      +                  "kg",
      +                  "lb",
      +                  "g",
      +                  "oz"
      +                ],
      +                "example": "kg",
      +                "type": "string"
      +              },
      +              "value": {
      +                "description": "Actual weight of the product",
      +                "example": 10,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "value",
      +              "unit"
      +            ],
      +            "title": "WeightOptionsDto",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "Weight options of the product"
      +      }
      +    },
      +    "title": "ShippingOptionsDto",
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / body / title
      Added value: +"UpdatePriceDto"
  2. First observedv2.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already disclose that this is a non-readonly, idempotent, non-destructive operation. The description adds meaningful operational context beyond annotations: HTTP PUT endpoint, required Agency/Sub-Account token, and OAuth scope products/prices.write. It does not explain response behavior or partial-vs-full update semantics, but the safety profile is already covered.

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 front-loaded and appropriately sized, with endpoint, auth, and scope details grouped efficiently. It has minor repetition of the tool title in the opening sentence but no significant waste.

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?

For a mutating tool with a nested body and no output schema, the description includes useful context: endpoint, version header, token requirements, and OAuth scope. It does not describe the response shape or whether the body replaces all fields, but the schema carries the parameter details and annotations carry the safety profile.

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%, so the schema already documents all parameters, including the large nested request body. The description only mentions price ID and product ID at a high level and adds no field-level semantics beyond the schema, so the baseline of 3 applies.

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 states a specific verb and resource: updating a single product price by price ID. It clearly distinguishes this from sibling operations such as create, list, get, and delete by emphasizing modification of an existing price identified by price ID and product ID.

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?

It gives clear usage context: use this endpoint to update details for a single price using its price ID and product ID. It does not explicitly name alternatives or exclusion cases, but the update-specific framing makes the intended use clear.

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

Deploy Server

Other Tools