Skip to main content
Glama

CiviCRM MCP by usefulapi

List memberships

civicrm_list_memberships
Read-only

Memberships with contact, membership type, status (New, Current, Grace, Expired, ...), join, start and end date. Filter by contact, status, type, or those ending before a date (renewal follow-up). Test memberships are left out. APIv4 Membership.get.

Input Schema

NameRequiredDescriptionDefault
limitNoRecords per call, 1-100 (default 25).
offsetNoHow many records to skip (default 0). Pass the previous reply's next_offset.
statusNoOnly this status by name, e.g. Current, Grace, Expired, Cancelled.
contact_idNoOnly this contact's memberships.
ends_afterNoOnly memberships that end on or after this date.
ends_beforeNoOnly memberships that end on or before this date.
membership_typeNoOnly this membership type by name, e.g. General.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description still adds real behavioral facts: test memberships are silently excluded and the underlying APIv4 Membership.get semantics apply. It omits pagination defaults and result shape, but the schema covers limit/offset.

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?

Two compact sentences with the returned fields first and filters second; no filler. The opening is a noun phrase rather than a sentence, which costs a little immediate clarity.

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 no output schema, the description compensates by enumerating returned fields, and it flags the hidden test-membership exclusion. Pagination and limits are left entirely to the schema, which is acceptable given 100% schema coverage.

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%, so each of the seven parameters is already documented with examples and formats. The description restates the filter set (contact, status, type, end-date) but adds no syntax or edge-case meaning, and notably omits ends_after while mentioning only 'ending before a date'.

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?

States the resource (memberships) and enumerates what each record carries (contact, type, status, join/start/end dates), plus the backing API call (APIv4 Membership.get). It is clearly a read/list tool and distinguishable from civicrm_create_membership, though it never explicitly names a sibling.

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?

Gives one concrete use case ('those ending before a date (renewal follow-up)') and a default-scope rule ('Test memberships are left out'), which is genuinely helpful. It does not say when to prefer civicrm_query or other list tools, nor any exclusion conditions.

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.