MetorialDocs

Set up Cardly in Metorial for Claude, ChatGPT and Cursor

Share Cardly with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 30 tools (14 read-only).

To give your team Cardly in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Cardly integration in a Metorial portal, and each person connects with an API key. Agents can send personalized, handwritten greeting cards, postcards, and letters at scale via physical mail. The integration has 30 tools, 14 read-only, 11 write and 5 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares Cardly in a portal and how each person connects
  • What Cardly asks for when you connect, and where to find it
  • How to keep the 14 read-only tools and reject the other 16

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

API Key

To connect, a person enters:

  • apiKey: Cardly API key (starts with test_ or live_)

Admin: share Cardly in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Cardly. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Cardly.

Choose who gets it

Add the access groups that should see Cardly. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Cardly integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search cardly

Employee: connect Cardly

In the portal

Open Cardly in the catalog

Sign in to your portal and open Cardly. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search cardly
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Cardly connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list cardly
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 14 read-only tools, such as get_order and list_users, and lose the 11 write tools, such as place_order or edit_artwork, and the 5 destructive tools, such as remove_user or delete_artwork.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list cardly
metorial tools <integration-id>
metorial call <integration-id> get_account_balance -d '{}'

metorial tools lists the 30 tools, minus any you rejected. get_account_balance takes no input. It retrieves the current card credit balance and gift credit balance for your organisation.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (14)

  • list_templates: Retrieve available message templates configured in the Cardly business portal.
  • get_contact: Retrieve a contact by its ID within a contact list.
  • generate_preview: Generate a low-quality, watermarked preview PDF of a card and envelope before placing a live order. Needs artworkId, templateId and recipient.
  • list_users: Retrieve all users who have access to your organisation portal, including their roles and permissions.
  • list_orders: Retrieve orders placed by your organisation.
  • get_account_balance: Retrieve the current card credit balance and gift credit balance for your organisation.
  • list_invitations: List organisation invitations and their IDs, email addresses, permissions, and status before resending or revoking an invitation.
  • list_artwork: List available card artwork for your organisation.
  • list_contacts: List contacts in a specific contact list. Needs listId.
  • list_resources: Browse available design resources including media types (product sizes like greeting cards, postcards, letters), handwriting fonts, writing styles (messiness levels), and doodles (decorative images).
  • find_contact: Search for a contact within a list by email address or external ID. Needs listId.
  • list_contact_lists: Retrieve all active contact lists for your organisation, including their custom field definitions.
  • list_webhooks: Retrieve all webhooks configured for your organisation, including their target URLs, subscribed events, and enabled status.
  • get_order: Retrieve detailed information about a specific order by its ID, including line items, cost, and current status. Needs orderId.

Write tools (11)

  • edit_artwork: Update an existing artwork's name, description, or page images. Needs artworkId.
  • create_contact_list: Create a new contact list with optional custom fields. Needs name.
  • send_invitation: Invite a new user to your organisation portal with specific permissions. Needs email and permissions.
  • sync_contact: Create or update a contact using an upsert operation. Needs listId, firstName, lastName, address, city and country.
  • update_webhook: Update an existing webhook's target URL, subscribed events, enabled status, or metadata. Needs webhookId.
  • manage_invitation: Resend or revoke a pending invitation by invitation ID or email address. Needs action.
  • place_order: Place an order to send one or more personalized handwritten cards, postcards, or letters. Needs lines.
  • create_contact: Add a new contact to a contact list with their name, address, and optional custom field values. Needs listId, firstName, lastName, address, city and country.
  • create_webhook: Create a new webhook subscription. Needs url and events.
  • create_artwork: Upload new card artwork with base64-encoded page images. Needs mediaId, name and pages.
  • edit_contact: Update an existing contact's details. Needs listId and contactId.

Destructive tools (5)

  • delete_artwork: Permanently delete artwork from your organisation. Needs artworkId.
  • delete_contact_list: Permanently delete a contact list and all contacts within it. Needs listId.
  • remove_user: Remove a user's access to the organisation portal. Needs userId.
  • delete_contact: Remove a contact from a contact list. Needs listId.
  • delete_webhook: Permanently delete a webhook subscription. Needs webhookId.

Triggers

Cardly has 1 trigger, which fire on events in Cardly:

  • cardly_events: Receive near-realtime event notifications for order lifecycle, gift card redemptions, QR code scans, and delivery status changes via webhooks.

Next steps