Memberstack connects to a Nagent workspace with an API key. Once it is connected, agents can call 8 Memberstack actions, such as "Create Member", "Get Member" and "List Data Tables". Nothing is enabled on connect: each action is allowed one at a time, and an action with side effects runs or waits for a person according to the agent's level.
Every operation an agent can call against Memberstack, with input parameters and output schema.
MEMBERSTACK_CREATE_MEMBERTool to create a new member in your application. Use after gathering email, password, optional plans, custom fields, metadata, and redirect.
Input parameters
Arbitrary JSON data for the member (replaces existing JSON).
The member's unique email address
Array of free plan objects to assign to the member on creation.
Metadata for the member (replaces existing metadata).
The member's password
Custom fields for the member (replaces existing fields).
URL path to redirect to after login
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
MEMBERSTACK_DELETE_MEMBERTool to permanently delete a member from your application. Use after confirming you no longer need the member's data and have the member ID.
Input parameters
The ID of the member to delete.
Whether to delete the associated Stripe customer. Defaults to false.
Whether to cancel the associated Stripe subscriptions. Defaults to false.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
MEMBERSTACK_GET_MEMBERTool to retrieve a specific member by ID or email. Use when you need to fetch member profile details for a given identifier (ID or email). Example: "Get member mem_sb_12345".
Input parameters
The member's ID (starting with 'mem_') or email address (raw, unencoded).
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
MEMBERSTACK_LIST_DATA_TABLESTool to retrieve all data tables in your Memberstack application. Returns table metadata including keys, field definitions, and access control rules.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
MEMBERSTACK_LIST_MEMBERSTool to retrieve a paginated list of all members in your application. Use when you need to iterate through members with cursor-based pagination.
Input parameters
The endCursor after which to start listing members
Maximum number of members to return (max 200)
Sort order for members (ASC or DESC)
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
MEMBERSTACK_LIST_PLANSTool to list all available membership plans. Use when you need to retrieve plan IDs and details before assigning or comparing plans.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
MEMBERSTACK_REMOVE_FREE_PLANTool to remove a free plan from an existing member. Use after confirming the member's subscription status. Example: "Remove free plan pln_sb_67890 from member mem_sb_12345".
Input parameters
Member ID (starts with 'mem_').
Free plan ID (starts with 'pln_').
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
MEMBERSTACK_UPDATE_MEMBERTool to update an existing member's information. Use when you have a member ID and need to modify their email, customFields, metaData, JSON data, or loginRedirect.
Input parameters
Member ID (starts with 'mem_')
Arbitrary JSON object to replace existing data
New email address for the member
Object of metadata to replace existing ones
Object of custom fields to replace existing ones
URL path to redirect to after login
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
Agents can call 8 Memberstack actions on Nagent, including "Create Member", "Get Member" and "List Data Tables". Create Member: Create a new member in your application. Each action is listed on this page with its input parameters and its output.
Memberstack connects with an API key, under your workspace's own connection. Nothing is enabled on connect: each action is allowed one at a time and can be scoped to the agents that need it.
Create Member takes 2 required inputs: email and password. It also takes 5 optional inputs: json, plans, metaData, customFields and loginRedirect. It returns data, error and successful.