List memberships
list_membershipsMemberships this business sells and the customers on them: plan, price, how often it bills, the next bill date, whether the CUSTOMER turned automatic payment on, and what happened to the latest period (an open invoice, paid automatically, a bank payment on its way, declined, or not raised). Automatic payment is the customer's own consent, given on their portal — this tool cannot turn it on, bill anybody or charge a card, and nothing here moves money. needs_attention is true when the latest period was declined, was not charged, or could not be invoiced, and its invoice is still unpaid.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_memberships"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return (1-200, default 50). | |
| offset | No | Rows to skip, for paging. | |
| status | No | Only memberships in this state. | |
| entity_id | No | Another entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in. | |
| needs_attention | No | Only memberships whose latest period needs somebody to act. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why the result was truncated, when it was. | |
| count | Yes | How many rows are in `results`. | |
| results | Yes | The rows. | |
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |