Skip to main content
Glama

Mews MCP

by code-rabi

getAllLoyaltyMemberships

Retrieve all loyalty memberships for an enterprise with optional filters such as IDs, activity states, or creation dates. Supports pagination and portfolio access tokens for efficient data management.

Instructions

Returns all loyalty memberships of the enterprise, optionally filtered by specific loyalty membership identifiers, activity states, or other filter parameters. Note this operation uses Pagination and supports Portfolio Access Tokens.

Input Schema

NameRequiredDescriptionDefault
AccountIdsNoUnique identifiers of accounts (for example Customers or Companies) the membership is associated with.
ActivityStatesNoWhether to return only active, only deleted or both records.
ChainIdsNoUnique identifiers of the chain. If not specified, the operation returns data for all chains within scope of the Access Token.
CodesNoList of loyalty membership codes, such as identification numbers printed on loyalty cards visible to the customer.
CreatedUtcNoThe time interval during which the membership was created (max length 3 months)
LimitationYesLimitation on the quantity of data returned
LoyaltyMembershipIdsNoUnique identifiers of Loyalty memberships.
LoyaltyProgramIdsNoUnique identifiers of Loyalty programs.
MembershipStatesNoStates of the loyalty memberships.
ProviderMembershipIdsNoList of unique loyalty membership identifiers assigned and managed by the external loyalty provider's system.
UpdatedUtcNoThe time interval during which the membership was last updated (max length 3 months)

Input Schema (JSON Schema)

{ "additionalProperties": false, "properties": { "AccountIds": { "description": "Unique identifiers of accounts (for example Customers or Companies) the membership is associated with.", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "ActivityStates": { "description": "Whether to return only active, only deleted or both records.", "items": { "type": "string" }, "type": "array" }, "ChainIds": { "description": "Unique identifiers of the chain. If not specified, the operation returns data for all chains within scope of the Access Token.", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "Codes": { "description": "List of loyalty membership codes, such as identification numbers printed on loyalty cards visible to the customer.", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "CreatedUtc": { "description": "The time interval during which the membership was created (max length 3 months)", "properties": { "EndUtc": { "description": "End of creation date range (ISO 8601)", "type": "string" }, "StartUtc": { "description": "Start of creation date range (ISO 8601)", "type": "string" } }, "type": "object" }, "Limitation": { "description": "Limitation on the quantity of data returned", "properties": { "Count": { "description": "Maximum number of loyalty memberships to return", "type": "number" }, "Cursor": { "description": "Pagination cursor for next page", "type": "string" } }, "type": "object" }, "LoyaltyMembershipIds": { "description": "Unique identifiers of Loyalty memberships.", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "LoyaltyProgramIds": { "description": "Unique identifiers of Loyalty programs.", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "MembershipStates": { "description": "States of the loyalty memberships.", "items": { "type": "string" }, "type": "array" }, "ProviderMembershipIds": { "description": "List of unique loyalty membership identifiers assigned and managed by the external loyalty provider's system.", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "UpdatedUtc": { "description": "The time interval during which the membership was last updated (max length 3 months)", "properties": { "EndUtc": { "description": "End of update date range (ISO 8601)", "type": "string" }, "StartUtc": { "description": "Start of update date range (ISO 8601)", "type": "string" } }, "type": "object" } }, "required": [ "Limitation" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/code-rabi/mews-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server