Read site membership
subscriptions_readReads how the site owner manages the access of site members in the Subscriptions module of the site: membership plans (access levels tied to user groups), the access periods of members, access checks and the payment records of the site. Does not change anything.
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": {
"action": "<action>"
},
"name": "subscriptions_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p | No | List page, the earlier name of page; page wins when both are set. | |
| id | No | Legacy membership plan id. | |
| page | No | List page, from 1. | |
| query | No | Search query for the lists of members and payment records. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| detail | No | Record form of a paged list. brief (default): id, status, plan, user id and email, dates (UTC, ISO 8601); payments also the amount. Titles and excerpts are plain text; names, logins, paths, URLs and other identifiers are as the source gives them. full: complete records. A list reply is at most 30 KB and holds every record of its page: a record that does not fit in full comes in brief form, marked detail brief, the reply counts such records in brief_records, and get by id returns the complete record; brief records shorten their excerpts, then keep only their ids and titles. Only a page that does not fit even so is cut: truncated is true and next names the offset to go on from. | |
| offset | No | Records to skip from the start of a list; overrides page. A list reply cut at its size limit names the offset that follows in next. | |
| status | No | Status filter (comma-separated). | |
| date_to | No | Payment date upper bound (unix). | |
| plan_id | No | Membership plan id. | |
| site_id | No | Site to read: site_id from list_sites. Without it the call reads the site chosen with select_site; pass it when several sites or chats are in use. | |
| user_id | No | Site member (user) id. | |
| per_page | No | Records per page: 1-50, 20 by default, larger values count as 50. | |
| date_from | No | Payment date lower bound (unix). | |
| payment_id | No | Payment record id. | |
| expires_before | No | Unix timestamp filter. | |
| subscription_id | No | Id of an access period (subscription) of a site member. |