This record as markdown: /tools/aiwerk-mcp-server-ghl/marketplace-charge.md
What marketplace_charge does on Ghl
AI agents use marketplace_charge to commit financial operations through Ghl, usually the final step of a payment, billing, or trading workflow. A call moves real money.
| Parameter | Type | Required | Description |
|---|---|---|---|
appId | string | Yes | App ID of the App |
price | number | — | Price per unit to charge |
units | number | Yes | Number of units to charge |
userId | string | — | User ID |
eventId | string | Yes | Event ID / Transaction ID on your server's side. This will help you maintain the reference of the event/transaction on your end that you charged the customer fo |
meterId | string | Yes | Billing Meter ID (you can find this on your app's pricing page) |
companyId | string | Yes | ID of the Agency the Sub-account belongs to |
eventTime | string | — | The timestamp when the event/transaction was performed. If blank, the billing timestamp will be set as the event time. ISO8601 Format. |
locationId | string | — | ID of the Sub-Account to be charged Defaults to GHL_LOCATION_ID when omitted. |
description | string | Yes | Description of the charge |
Parameters from the server's own tool schema.
Why marketplace_charge is rated Critical
marketplace_charge moves real money, and an autonomous agent will call it with the same confidence it calls a search tool. A misread instruction or an injected prompt is all it takes to drain an account or blow a budget.
Risk signalsHigh parameter count (10 properties)
Attacks that exploit this kind of access
The rule that runs marketplace_charge safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Ghl, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For marketplace_charge, this is the rule to start with:
Any call to marketplace_charge is blocked until a human approves it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect Ghl, apply this rule, and every marketplace_charge call is checked against it from then on.
Questions about marketplace_charge
Create a new wallet charge. It is categorised as a Financial tool in the Ghl MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
marketplace_charge accepts 10 parameters: appId, price, units, userId, eventId, meterId, companyId, eventTime, locationId, description. Required: appId, units, eventId, meterId, companyId, description. The full parameter table on this page comes from the server's own tool schema.
Register the Ghl MCP server in PolicyLayer and add a rule for marketplace_charge: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Ghl. Nothing to install.
marketplace_charge is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the marketplace_charge rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for marketplace_charge. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
marketplace_charge is provided by the Ghl MCP server (@aiwerk/mcp-server-ghl). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Ghl, and thousands of servers like it.
Across the catalogue