Skip to main content
Glama

Read site membership

subscriptions_read
Read-onlyIdempotent

Reads 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

NameRequiredDescriptionDefault
pNoList page, the earlier name of page; page wins when both are set.
idNoLegacy membership plan id.
pageNoList page, from 1.
queryNoSearch query for the lists of members and payment records.
actionYesOperation to run. Each oneOf entry describes one action and lists its parameters.
detailNoRecord 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.
offsetNoRecords 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.
statusNoStatus filter (comma-separated).
date_toNoPayment date upper bound (unix).
plan_idNoMembership plan id.
site_idNoSite 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_idNoSite member (user) id.
per_pageNoRecords per page: 1-50, 20 by default, larger values count as 50.
date_fromNoPayment date lower bound (unix).
payment_idNoPayment record id.
expires_beforeNoUnix timestamp filter.
subscription_idNoId of an access period (subscription) of a site member.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / site_id
      Added value: +{
      +  "description": "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.",
      +  "type": "integer"
      +}
  2. Changed7 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plans_list",
      -    "description": "Lists tariff plans. Optional: offset."
      -  },
      -  {
      -    "const": "plan_get",
      -    "description": "Returns one tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_stats",
      -    "description": "Returns statistics of a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_users",
      -    "description": "Lists the users of a tariff plan a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: plan_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      -  },
      -  {
      -    "const": "legacy_items_list",
      -    "description": "Lists legacy tariffs. Optional: offset."
      -  },
      -  {
      -    "const": "legacy_item_get",
      -    "description": "Returns one legacy tariff (id in id or plan_id). Required: id or plan_id."
      -  },
      -  {
      -    "const": "user_subscriptions",
      -    "description": "Lists the subscriptions of a user a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: user_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      -  },
      -  {
      -    "const": "subscription_get",
      -    "description": "Returns one subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "access_check",
      -    "description": "Checks whether a user has access through a plan. Required: user_id, plan_id."
      -  },
      -  {
      -    "const": "subscribers_list",
      -    "description": "Lists subscribers, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, plan_id, status, expires_before."
      -  },
      -  {
      -    "const": "payments_list",
      -    "description": "Lists payments, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, user_id, subscription_id, plan_id, status, date_from, date_to."
      -  },
      -  {
      -    "const": "payment_get",
      -    "description": "Returns one payment. Required: payment_id."
      -  }
      -]New value: +[
      +  {
      +    "const": "plans_list",
      +    "description": "Lists the membership plans of the site: the access levels the site owner sets up for site members. Optional: offset."
      +  },
      +  {
      +    "const": "plan_get",
      +    "description": "Returns one membership plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_stats",
      +    "description": "Returns statistics of a membership plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_users",
      +    "description": "Lists the members of a membership plan a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: plan_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      +  },
      +  {
      +    "const": "legacy_items_list",
      +    "description": "Lists legacy membership plans. Optional: offset."
      +  },
      +  {
      +    "const": "legacy_item_get",
      +    "description": "Returns one legacy membership plan (id in id or plan_id). Required: id or plan_id."
      +  },
      +  {
      +    "const": "user_subscriptions",
      +    "description": "Lists the access periods (subscriptions) of a site member a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: user_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      +  },
      +  {
      +    "const": "subscription_get",
      +    "description": "Returns one access period (subscription) of a site member. Required: subscription_id."
      +  },
      +  {
      +    "const": "access_check",
      +    "description": "Checks whether a site member has access through a plan. Required: user_id, plan_id."
      +  },
      +  {
      +    "const": "subscribers_list",
      +    "description": "Lists the site members with access periods, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, plan_id, status, expires_before."
      +  },
      +  {
      +    "const": "payments_list",
      +    "description": "Lists the payment records of the site, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, user_id, subscription_id, plan_id, status, date_from, date_to."
      +  },
      +  {
      +    "const": "payment_get",
      +    "description": "Returns one payment record. Required: payment_id."
      +  }
      +]
    • changedInput schema / properties / id / description
      Previous value: -"Legacy tariff id."New value: +"Legacy membership plan id."
    • changedInput schema / properties / payment_id / description
      Previous value: -"Payment id."New value: +"Payment record id."
    • changedInput schema / properties / plan_id / description
      Previous value: -"Tariff plan id."New value: +"Membership plan id."
    • changedInput schema / properties / query / description
      Previous value: -"Search query for subscribers/payments lists."New value: +"Search query for the lists of members and payment records."
    • changedInput schema / properties / subscription_id / description
      Previous value: -"Subscription id."New value: +"Id of an access period (subscription) of a site member."
    • changedInput schema / properties / user_id / description
      Previous value: -"User id."New value: +"Site member (user) id."
  3. Changed1 schema field changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plans_list",
      -    "description": "Lists tariff plans. Optional: offset."
      -  },
      -  {
      -    "const": "plan_get",
      -    "description": "Returns one tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_stats",
      -    "description": "Returns statistics of a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_users",
      -    "description": "Lists the users of a tariff plan a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: plan_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      -  },
      -  {
      -    "const": "legacy_items_list",
      -    "description": "Lists legacy tariffs. Optional: offset."
      -  },
      -  {
      -    "const": "legacy_item_get",
      -    "description": "Returns one legacy tariff (id in id or plan_id). Optional: id, plan_id."
      -  },
      -  {
      -    "const": "user_subscriptions",
      -    "description": "Lists the subscriptions of a user a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: user_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      -  },
      -  {
      -    "const": "subscription_get",
      -    "description": "Returns one subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "access_check",
      -    "description": "Checks whether a user has access through a plan. Optional: user_id, plan_id."
      -  },
      -  {
      -    "const": "subscribers_list",
      -    "description": "Lists subscribers, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, plan_id, status, expires_before."
      -  },
      -  {
      -    "const": "payments_list",
      -    "description": "Lists payments, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, user_id, subscription_id, plan_id, status, date_from, date_to."
      -  },
      -  {
      -    "const": "payment_get",
      -    "description": "Returns one payment. Required: payment_id."
      -  }
      -]New value: +[
      +  {
      +    "const": "plans_list",
      +    "description": "Lists tariff plans. Optional: offset."
      +  },
      +  {
      +    "const": "plan_get",
      +    "description": "Returns one tariff plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_stats",
      +    "description": "Returns statistics of a tariff plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_users",
      +    "description": "Lists the users of a tariff plan a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: plan_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      +  },
      +  {
      +    "const": "legacy_items_list",
      +    "description": "Lists legacy tariffs. Optional: offset."
      +  },
      +  {
      +    "const": "legacy_item_get",
      +    "description": "Returns one legacy tariff (id in id or plan_id). Required: id or plan_id."
      +  },
      +  {
      +    "const": "user_subscriptions",
      +    "description": "Lists the subscriptions of a user a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: user_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      +  },
      +  {
      +    "const": "subscription_get",
      +    "description": "Returns one subscription. Required: subscription_id."
      +  },
      +  {
      +    "const": "access_check",
      +    "description": "Checks whether a user has access through a plan. Required: user_id, plan_id."
      +  },
      +  {
      +    "const": "subscribers_list",
      +    "description": "Lists subscribers, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, plan_id, status, expires_before."
      +  },
      +  {
      +    "const": "payments_list",
      +    "description": "Lists payments, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, user_id, subscription_id, plan_id, status, date_from, date_to."
      +  },
      +  {
      +    "const": "payment_get",
      +    "description": "Returns one payment. Required: payment_id."
      +  }
      +]
  4. Changed6 schema fields changed
    • changedInput schema / properties / action / oneOf
      Previous value: -[
      -  {
      -    "const": "plans_list",
      -    "description": "Lists tariff plans."
      -  },
      -  {
      -    "const": "plan_get",
      -    "description": "Returns one tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_stats",
      -    "description": "Returns statistics of a tariff plan. Required: plan_id."
      -  },
      -  {
      -    "const": "plan_users",
      -    "description": "Lists the users of a tariff plan. Required: plan_id. Optional: p, page, status, expires_before."
      -  },
      -  {
      -    "const": "legacy_items_list",
      -    "description": "Lists legacy tariffs."
      -  },
      -  {
      -    "const": "legacy_item_get",
      -    "description": "Returns one legacy tariff (id in id or plan_id). Optional: id, plan_id."
      -  },
      -  {
      -    "const": "user_subscriptions",
      -    "description": "Lists the subscriptions of a user. Required: user_id. Optional: p, page, status, expires_before."
      -  },
      -  {
      -    "const": "subscription_get",
      -    "description": "Returns one subscription. Required: subscription_id."
      -  },
      -  {
      -    "const": "access_check",
      -    "description": "Checks whether a user has access through a plan. Optional: user_id, plan_id."
      -  },
      -  {
      -    "const": "subscribers_list",
      -    "description": "Lists subscribers, optionally filtered. Optional: p, page, query, plan_id, status, expires_before."
      -  },
      -  {
      -    "const": "payments_list",
      -    "description": "Lists payments, optionally filtered. Optional: p, page, query, user_id, subscription_id, plan_id, status, date_from, date_to."
      -  },
      -  {
      -    "const": "payment_get",
      -    "description": "Returns one payment. Required: payment_id."
      -  }
      -]New value: +[
      +  {
      +    "const": "plans_list",
      +    "description": "Lists tariff plans. Optional: offset."
      +  },
      +  {
      +    "const": "plan_get",
      +    "description": "Returns one tariff plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_stats",
      +    "description": "Returns statistics of a tariff plan. Required: plan_id."
      +  },
      +  {
      +    "const": "plan_users",
      +    "description": "Lists the users of a tariff plan a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: plan_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      +  },
      +  {
      +    "const": "legacy_items_list",
      +    "description": "Lists legacy tariffs. Optional: offset."
      +  },
      +  {
      +    "const": "legacy_item_get",
      +    "description": "Returns one legacy tariff (id in id or plan_id). Optional: id, plan_id."
      +  },
      +  {
      +    "const": "user_subscriptions",
      +    "description": "Lists the subscriptions of a user a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Required: user_id. Optional: page, p, per_page, offset, detail, status, expires_before."
      +  },
      +  {
      +    "const": "subscription_get",
      +    "description": "Returns one subscription. Required: subscription_id."
      +  },
      +  {
      +    "const": "access_check",
      +    "description": "Checks whether a user has access through a plan. Optional: user_id, plan_id."
      +  },
      +  {
      +    "const": "subscribers_list",
      +    "description": "Lists subscribers, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, plan_id, status, expires_before."
      +  },
      +  {
      +    "const": "payments_list",
      +    "description": "Lists payments, optionally filtered, a page at a time. Brief records by default; detail=full gives complete records. The reply has page, per_page, total, has_more, truncated and next. Optional: page, p, per_page, offset, detail, query, user_id, subscription_id, plan_id, status, date_from, date_to."
      +  },
      +  {
      +    "const": "payment_get",
      +    "description": "Returns one payment. Required: payment_id."
      +  }
      +]
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "brief",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "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.",
      +  "type": "number"
      +}
    • changedInput schema / properties / p / description
      Previous value: -"Page number."New value: +"List page, the earlier name of page; page wins when both are set."
    • changedInput schema / properties / page / description
      Previous value: -"Synonym for p on list actions."New value: +"List page, from 1."
    • addedInput schema / properties / per_page
      Added value: +{
      +  "description": "Records per page: 1-50, 20 by default, larger values count as 50.",
      +  "type": "number"
      +}
  5. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so 'Does not change anything' restates structured data rather than adding to it. The description adds the domain scope (what kinds of records are visible) but says nothing about pagination limits, the 30 KB reply cap, or the brief/full record behavior — those live only in the schema.

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?

A single front-loaded sentence states the resource, the covered domains, and the key constraint (read-only) with no filler. It is dense but appropriately sized for a 12-action tool whose operation-level detail is delegated to the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter, 12-action tool the description does not need to re-explain returns or per-action requirements, since every action's parameters and reply shape are documented in the oneOf entries and no output schema is needed. The gaps are minor: nothing about multi-site selection (site_id) or how the actions relate to one another, both of which the schema does cover.

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%, including per-action oneOf entries listing required and optional parameters, so the schema already carries parameter meaning. The description only names the entity types being read and adds no syntax, filtering, or scoping detail beyond that; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — reads how the site owner manages member access in the Subscriptions module — and enumerates the four domains covered (membership plans, access periods, access checks, payment records). The closing 'Does not change anything' cleanly separates it from the subscriptions_write and subscriptions_delete siblings without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The read-only framing implies when to use this instead of the write/delete siblings, but the guidance is only implied. There is no explicit 'use this when...' or 'use subscriptions_write for...' routing, and no mention of prerequisites such as needing a site context before calling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.