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

ghl-mcp-server-v2

by zackscriven

ghl_invoice_send

Sends an existing invoice by ID via SMS, email, or manual delivery and applies sender and auto-payment settings for customer notifications.

Instructions

Send invoice API to send invoice by invoice id Endpoint: POST /invoices/{invoiceId}/send (Version header: v3; source: v3/invoices-v3.json) Requires an Agency or Sub-Account token. OAuth scopes: invoices.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": {
      "invoiceId": "<invoiceId>",
      "body": "<body>"
    },
    "name": "ghl_invoice_send"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • changedInput schema / properties / body / properties / autoPayment / allOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "bacsDirectDebit": {
      -        "properties": {
      -          "last4": {
      -            "type": "string"
      -          },
      -          "sort_code": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "sort_code",
      -          "last4"
      -        ],
      -        "type": "object"
      -      },
      -      "becsDirectDebit": {
      -        "properties": {
      -          "bsb_number": {
      -            "type": "string"
      -          },
      -          "last4": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "bsb_number",
      -          "last4"
      -        ],
      -        "type": "object"
      -      },
      -      "card": {
      -        "properties": {
      -          "brand": {
      -            "type": "string"
      -          },
      -          "last4": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "brand",
      -          "last4"
      -        ],
      -        "type": "object"
      -      },
      -      "cardId": {
      -        "type": "string"
      -      },
      -      "customerId": {
      -        "type": "string"
      -      },
      -      "enable": {
      -        "type": "boolean"
      -      },
      -      "paymentMethodId": {
      -        "type": "string"
      -      },
      -      "provider": {
      -        "type": "object"
      -      },
      -      "sepaDirectDebit": {
      -        "properties": {
      -          "bank_code": {
      -            "type": "string"
      -          },
      -          "branch_code": {
      -            "type": "string"
      -          },
      -          "last4": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "bank_code",
      -          "last4",
      -          "branch_code"
      -        ],
      -        "type": "object"
      -      },
      -      "type": {
      -        "type": "string"
      -      },
      -      "usBankAccount": {
      -        "properties": {
      -          "bank_name": {
      -            "type": "string"
      -          },
      -          "last4": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "bank_name",
      -          "last4"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "enable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "bacsDirectDebit": {
      +        "properties": {
      +          "last4": {
      +            "type": "string"
      +          },
      +          "sort_code": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "sort_code",
      +          "last4"
      +        ],
      +        "title": "BacsDirectDebitDTO",
      +        "type": "object"
      +      },
      +      "becsDirectDebit": {
      +        "properties": {
      +          "bsb_number": {
      +            "type": "string"
      +          },
      +          "last4": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "bsb_number",
      +          "last4"
      +        ],
      +        "title": "BecsDirectDebitDTO",
      +        "type": "object"
      +      },
      +      "card": {
      +        "properties": {
      +          "brand": {
      +            "type": "string"
      +          },
      +          "last4": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "brand",
      +          "last4"
      +        ],
      +        "title": "CardDto",
      +        "type": "object"
      +      },
      +      "cardId": {
      +        "type": "string"
      +      },
      +      "customerId": {
      +        "type": "string"
      +      },
      +      "enable": {
      +        "type": "boolean"
      +      },
      +      "paymentMethodId": {
      +        "type": "string"
      +      },
      +      "provider": {
      +        "type": "object"
      +      },
      +      "sepaDirectDebit": {
      +        "properties": {
      +          "bank_code": {
      +            "type": "string"
      +          },
      +          "branch_code": {
      +            "type": "string"
      +          },
      +          "last4": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "bank_code",
      +          "last4",
      +          "branch_code"
      +        ],
      +        "title": "SepaDirectDebitDTO",
      +        "type": "object"
      +      },
      +      "type": {
      +        "type": "string"
      +      },
      +      "usBankAccount": {
      +        "properties": {
      +          "bank_name": {
      +            "type": "string"
      +          },
      +          "last4": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "bank_name",
      +          "last4"
      +        ],
      +        "title": "USBankAccountDto",
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "enable"
      +    ],
      +    "title": "AutoPaymentDetailsDto",
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / body / properties / sentFrom / allOf
      Previous value: -[
      -  {
      -    "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"
      -  }
      -]New value: +[
      +  {
      +    "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"
      +  }
      +]
    • addedInput schema / properties / body / title
      Added value: +"SendInvoiceDto"
  2. First observedv2.0.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare it is a non-idempotent, non-destructive write, and the description adds genuinely useful context beyond them: the required Agency/Sub-Account token and the invoices.write OAuth scope. It stops short of saying what the call actually does (delivers email/SMS, marks invoice as sent), which would be the last piece.

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?

Front-loaded with the verb and resource, then endpoint and auth details. Slight redundancy between 'Send invoice' and 'API to send invoice by invoice id', but nothing bloated.

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 write tool with a large nested body (action enum, sender config, auto-payment) and no output schema, the definition covers auth but not effect: it never says what a successful send produces or that action=sms_and_email actually dispatches messages. Adequate but with a real gap on post-call behavior.

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% and the nested SendInvoiceDto documents altId/altType/userId/action, so the schema carries the load. The description adds only the invoiceId path binding, which is already implied by the endpoint string – a baseline 3.

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 ('Send invoice') plus the endpoint and identifier, so an agent can distinguish it from create/get/update invoice tools. It doesn't explicitly differentiate from near-neighbors like ghl_invoice_schedule_create or ghl_invoice_text2pay, but the action 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 Guidelines2/5

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

There's no guidance on when to use this versus scheduling a send, generating a payment link, or text2pay, nor any note that the invoice must exist and be in a sendable state. The reader must infer the use case from the name alone.

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