Skip to main content
Glama

Mews MCP

by code-rabi

getAllCustomers

Retrieve customer data using specific filters such as IDs, emails, names, loyalty codes, or date ranges. At least one filter is required; defaults to active customers if none provided. Supports pagination and data extent selection.

Instructions

Get customers with filters. Note: At least one filter must be provided (CustomerIds, Emails, FirstNames, LastNames, LoyaltyCodes, CompanyIds, CreatedUtc, UpdatedUtc, or DeletedUtc). If no filters are specified, defaults to ActivityStates: ["Active"] to return all active customers. IMPORTANT LIMITATIONS: Date range filters (CreatedUtc, UpdatedUtc, DeletedUtc) have a maximum interval of 3 months and 1 day. All array filters have specific maximum item limits (typically 1000, except CompanyIds which is limited to 1).

Input Schema

NameRequiredDescriptionDefault
ActivityStatesNoWhether to return only active, only deleted or both records
ChainIdsNoUnique identifiers of the chains. Required when using Portfolio Access Tokens, ignored otherwise.
CompanyIdsNoUnique identifier of the Company the customer is associated with
CreatedUtcNoInterval in which Customer was created (max length 3 months)
CustomerIdsNoUnique identifiers of Customers. Required if no other filter is provided.
DeletedUtcNoInterval in which Customer was deleted (max length 3 months)
EmailsNoEmails of the Customers
ExtentNoExtent of data to be returned
FirstNamesNoFirst names of the Customers
LastNamesNoLast names of the Customers
LimitationNoLimitation on the quantity of data returned
LoyaltyCodesNoLoyalty codes of the Customers
UpdatedUtcNoInterval in which Customer was updated (max length 3 months)

Input Schema (JSON Schema)

{ "properties": { "ActivityStates": { "description": "Whether to return only active, only deleted or both records", "items": { "type": "string" }, "type": "array" }, "ChainIds": { "description": "Unique identifiers of the chains. Required when using Portfolio Access Tokens, ignored otherwise.", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "CompanyIds": { "description": "Unique identifier of the Company the customer is associated with", "items": { "type": "string" }, "maxItems": 1, "type": "array" }, "CreatedUtc": { "description": "Interval in which Customer 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" }, "CustomerIds": { "description": "Unique identifiers of Customers. Required if no other filter is provided.", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "DeletedUtc": { "description": "Interval in which Customer was deleted (max length 3 months)", "properties": { "EndUtc": { "description": "End of deletion date range (ISO 8601)", "type": "string" }, "StartUtc": { "description": "Start of deletion date range (ISO 8601)", "type": "string" } }, "type": "object" }, "Emails": { "description": "Emails of the Customers", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "Extent": { "description": "Extent of data to be returned", "properties": { "Addresses": { "description": "Whether the response should contain addresses of customers", "type": "boolean" }, "Customers": { "description": "Whether the response should contain information about customers", "type": "boolean" }, "Documents": { "description": "Whether the response should contain identity documents of customers (deprecated)", "type": "boolean" } }, "type": "object" }, "FirstNames": { "description": "First names of the Customers", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "LastNames": { "description": "Last names of the Customers", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "Limitation": { "description": "Limitation on the quantity of data returned", "properties": { "Count": { "description": "Maximum number of customers to return", "type": "number" }, "Cursor": { "description": "Pagination cursor for next page", "type": "string" } }, "type": "object" }, "LoyaltyCodes": { "description": "Loyalty codes of the Customers", "items": { "type": "string" }, "maxItems": 1000, "type": "array" }, "UpdatedUtc": { "description": "Interval in which Customer was 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" } }, "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