Get an app's plan and invoices
cometchat_get_planReturns an app's plan, state, trial end and invoices (invoices only for the app's owner). Plans can only be changed in the dashboard.
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": {
"app_id": "<app_id>"
},
"name": "cometchat_get_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The CometChat App ID (from cometchat_list_apps). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Plan id | |
| state | No | App state | |
| app_id | Yes | App ID | |
| invoices | Yes | ||
| plan_name | No | Plan name | |
| trial_ends_at | No | Trial end (epoch s) | |
| invoices_available | No | false when the signed-in user isn't the app's owner, who alone can see invoices |