Skip to main content
Glama

List memberships

list_memberships
Read-onlyIdempotent

Memberships 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

NameRequiredDescriptionDefault
limitNoMaximum rows to return (1-200, default 50).
offsetNoRows to skip, for paging.
statusNoOnly memberships in this state.
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
needs_attentionNoOnly memberships whose latest period needs somebody to act.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
countYesHow many rows are in `results`.
resultsYesThe rows.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description still adds real behavioral context: automatic payment is customer-granted consent set on their own portal, the tool cannot enable it, bill anybody, or charge a card, and nothing here moves money. It also defines the computed needs_attention flag (declined, not charged, or un-invoiceable with an unpaid invoice), which an agent cannot infer elsewhere.

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?

One dense paragraph, front-loaded with the resource and its fields, then the consent and no-money-movement caveats, then the needs_attention definition. Every sentence carries information; the only mild redundancy is between the opening phrase and the subsequent field enumeration.

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?

With an output schema present, return values need no further explanation, and the field enumeration plus caveats cover what an agent must know to call it correctly. Paging defaults live in the schema, so nothing critical is missing; a note on which sibling to prefer for customer-centric data would make it fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so limit/offset/status/entity_id are already documented and the baseline would be 3. The description earns the extra point by unpacking needs_attention in business terms (latest period declined, not charged, or not invoiced) beyond the schema's terse 'needs somebody to act'.

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

Purpose4/5

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

The description names the specific resource (memberships the business sells, plus the customers on them) and enumerates exactly what each row conveys: plan, price, billing cadence, next bill date, customer autopay consent, and latest-period outcome. That is far more specific than a restated title. It stops short of explicitly distinguishing itself from sibling list tools such as list_customers, but the domain is unmistakable.

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?

Usage is implied: this is a read of recurring-billing state, and the description makes clear it is not for turning autopay on, billing, or charging. It gives no explicit when-to-use framing against alternatives (e.g. whether to reach for list_customers instead when you want contact data), and the only cross-reference is entity_id pointing at list_entities.

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.

Resources