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

ghl-mcp-server-v2

by zackscriven

ghl_estimate_template_update

Idempotent

Update an existing estimate template by providing template ID and updated details such as name, currency, items, and discount.

Instructions

Update Estimate Template Update an existing estimate template Endpoint: PUT /invoices/estimate/template/{templateId} (Version header: v3; source: v3/invoices-v3.json) Requires an Agency or Sub-Account token. OAuth scopes: invoices/estimate.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": {
      "templateId": "<templateId>",
      "body": "<body>"
    },
    "name": "ghl_estimate_template_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body (schema carried verbatim from the official OpenAPI spec).
templateIdYesTemplate Id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.1.0
    • addedInput schema / properties / body / properties / attachments / items / title
      Added value: +"AttachmentsDto"
    • changedInput schema / properties / body / properties / businessDetails / properties / address / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "addressLine1": {
      -        "description": "Address Line 1",
      -        "example": "9931 Beechwood",
      -        "type": "string"
      -      },
      -      "addressLine2": {
      -        "description": "Address Line 2",
      -        "example": "Beechwood",
      -        "type": "string"
      -      },
      -      "city": {
      -        "description": "City",
      -        "example": "St. Houston",
      -        "type": "string"
      -      },
      -      "countryCode": {
      -        "description": "Country Code",
      -        "example": "US",
      -        "type": "string"
      -      },
      -      "postalCode": {
      -        "description": "Postal Code",
      -        "example": "559-6993",
      -        "type": "string"
      -      },
      -      "state": {
      -        "description": "State",
      -        "example": "TX",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "addressLine1": {
      +        "description": "Address Line 1",
      +        "example": "9931 Beechwood",
      +        "type": "string"
      +      },
      +      "addressLine2": {
      +        "description": "Address Line 2",
      +        "example": "Beechwood",
      +        "type": "string"
      +      },
      +      "city": {
      +        "description": "City",
      +        "example": "St. Houston",
      +        "type": "string"
      +      },
      +      "countryCode": {
      +        "description": "Country Code",
      +        "example": "US",
      +        "type": "string"
      +      },
      +      "postalCode": {
      +        "description": "Postal Code",
      +        "example": "559-6993",
      +        "type": "string"
      +      },
      +      "state": {
      +        "description": "State",
      +        "example": "TX",
      +        "type": "string"
      +      }
      +    },
      +    "title": "AddressDto",
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / body / properties / businessDetails / title
      Added value: +"BusinessDetailsDto"
    • addedInput schema / properties / body / properties / discount / title
      Added value: +"DiscountDto"
    • changedInput schema / properties / body / properties / miscellaneousCharges / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "charges": {
      -        "description": "charges for the processing fee",
      -        "items": {
      -          "type": "array"
      -        },
      -        "type": "array"
      -      },
      -      "collectedMiscellaneousCharges": {
      -        "description": "collected miscellaneous charges",
      -        "example": 10,
      -        "type": "number"
      -      },
      -      "paidCharges": {
      -        "description": "paid miscellaneous charges",
      -        "items": {
      -          "properties": {
      -            "_id": {
      -              "description": "id of the processing fee",
      -              "example": "673d01d7d547648a8dab6211",
      -              "type": "string"
      -            },
      -            "amount": {
      -              "description": "amount of the processing fee",
      -              "example": 10,
      -              "type": "number"
      -            },
      -            "charge": {
      -              "description": "charge for the processing fee",
      -              "example": 10,
      -              "type": "number"
      -            },
      -            "name": {
      -              "description": "name of the processing fee",
      -              "example": "Processing Fee",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "charge",
      -            "amount",
      -            "_id"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "charges"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "charges": {
      +        "description": "charges for the processing fee",
      +        "items": {
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "collectedMiscellaneousCharges": {
      +        "description": "collected miscellaneous charges",
      +        "example": 10,
      +        "type": "number"
      +      },
      +      "paidCharges": {
      +        "description": "paid miscellaneous charges",
      +        "items": {
      +          "properties": {
      +            "_id": {
      +              "description": "id of the processing fee",
      +              "example": "673d01d7d547648a8dab6211",
      +              "type": "string"
      +            },
      +            "amount": {
      +              "description": "amount of the processing fee",
      +              "example": 10,
      +              "type": "number"
      +            },
      +            "charge": {
      +              "description": "charge for the processing fee",
      +              "example": 10,
      +              "type": "number"
      +            },
      +            "name": {
      +              "description": "name of the processing fee",
      +              "example": "Processing Fee",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "charge",
      +            "amount",
      +            "_id"
      +          ],
      +          "title": "ProcessingFeePaidChargeDto",
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "charges"
      +    ],
      +    "title": "ProcessingFeeDto",
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / properties / sendEstimateDetails / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "action": {
      -        "enum": [
      -          "sms_and_email",
      -          "send_manually",
      -          "email",
      -          "sms"
      -        ],
      -        "type": "string"
      -      },
      -      "altId": {
      -        "description": "Location Id or Agency Id",
      -        "example": "6578278e879ad2646715ba9c",
      -        "type": "string"
      -      },
      -      "altType": {
      -        "enum": [
      -          "location"
      -        ],
      -        "type": "string"
      -      },
      -      "estimateName": {
      -        "description": "estimate name",
      -        "example": "Estimate",
      -        "type": "string"
      -      },
      -      "liveMode": {
      -        "description": "livemode for estimate",
      -        "example": true,
      -        "type": "boolean"
      -      },
      -      "sentFrom": {
      -        "allOf": [
      -          {
      -            "properties": {
      -              "fromEmail": {
      -                "description": "Email id to be used while sending email notification",
      -                "example": "alex@example.com",
      -                "type": "string"
      -              },
      -              "fromName": {
      -                "description": "Sender name to be used while sending email notification",
      -                "example": "Alex",
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          }
      -        ],
      -        "description": "sender details for invoice, valid only if invoice is not sent manually"
      -      },
      -      "userId": {
      -        "description": "Please ensure that the UserId corresponds to an authorized personnel, either by an employee ID or agency ID, to access this location. This account will serve as the primary channel for all future communications and updates.",
      -        "example": "6578278e879ad2646715ba9c",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "altId",
      -      "altType",
      -      "action",
      -      "liveMode",
      -      "userId"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "action": {
      +        "enum": [
      +          "sms_and_email",
      +          "send_manually",
      +          "email",
      +          "sms"
      +        ],
      +        "type": "string"
      +      },
      +      "altId": {
      +        "description": "Location Id or Agency Id",
      +        "example": "6578278e879ad2646715ba9c",
      +        "type": "string"
      +      },
      +      "altType": {
      +        "enum": [
      +          "location"
      +        ],
      +        "type": "string"
      +      },
      +      "estimateName": {
      +        "description": "estimate name",
      +        "example": "Estimate",
      +        "type": "string"
      +      },
      +      "liveMode": {
      +        "description": "livemode for estimate",
      +        "example": true,
      +        "type": "boolean"
      +      },
      +      "sentFrom": {
      +        "allOf": [
      +          {
      +            "properties": {
      +              "fromEmail": {
      +                "description": "Email id to be used while sending email notification",
      +                "example": "alex@example.com",
      +                "type": "string"
      +              },
      +              "fromName": {
      +                "description": "Sender name to be used while sending email notification",
      +                "example": "Alex",
      +                "type": "string"
      +              }
      +            },
      +            "title": "InvoiceSettingsSenderConfigurationDto",
      +            "type": "object"
      +          }
      +        ],
      +        "description": "sender details for invoice, valid only if invoice is not sent manually"
      +      },
      +      "userId": {
      +        "description": "Please ensure that the UserId corresponds to an authorized personnel, either by an employee ID or agency ID, to access this location. This account will serve as the primary channel for all future communications and updates.",
      +        "example": "6578278e879ad2646715ba9c",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "altId",
      +      "altType",
      +      "action",
      +      "liveMode",
      +      "userId"
      +    ],
      +    "title": "SendEstimateDto",
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / body / title
      Added value: +"EstimateTemplatesDto"
  2. First observedv2.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), so the description's contribution is the auth model (Agency vs Sub-Account token), the required OAuth scope, and the endpoint/version used. That is meaningful operational context beyond the annotations, though it omits what happens to fields not supplied in the body.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short lines, front-loaded with the action, then endpoint, then auth. The source-file reference is the only mildly extraneous line, and it is short enough not to detract.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema and a large nested required body, the description covers transport and auth but not the crucial behavioral question: whether the body is a full replacement (all fields marked required suggests yes) or a partial patch. That gap matters for correct invocation.

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 description coverage is 100%, so both parameters (templateId and the nested body) are fully documented in the schema. The description only implicitly ties templateId to the path template and adds nothing about body semantics, which is the baseline-3 case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Update an existing estimate template') and even names the exact HTTP endpoint and API version. It does not explicitly contrast with siblings like ghl_estimate_template_create or ghl_estimate_template_preview, but the name plus resource phrasing is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Adds real preconditions an agent needs before calling: an Agency or Sub-Account token and the invoices/estimate.write OAuth scope. However, it gives no guidance on when to choose this over related tools (create, preview, delete) or on any constraints on updating an existing template.

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