MetorialDocs

Set up Baselinker in Metorial for Claude, ChatGPT and Cursor

Share Baselinker with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 17 tools (9 read-only).

To give your team Baselinker in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Baselinker integration in a Metorial portal, and each person connects with an API token. Agents can manage BaseLinker orders, products, inventory stock and prices, courier shipments, shipping label downloads, and order returns. The integration has 17 tools, 9 read-only, 5 write and 3 destructive, plus 2 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
API TokenAPI tokentoken

API Token

To connect, a person enters:

  • token: BaseLinker API token. Generate it in the BaseLinker panel under "Account & other -> My account -> API".

Admin: share Baselinker 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 Baselinker. For how members connect, choose Each person connects so everyone enters their own API token, or Shared connection to enter one API token for everyone.

Limit the tools

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

Choose who gets it

Add the access groups that should see Baselinker. 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 Baselinker integration. Once it exists, check which groups have it:

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

Employee: connect Baselinker

In the portal

Open Baselinker in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Baselinker 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 baselinker
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 9 read-only tools, such as get_orders and get_couriers, and lose the 5 write tools, such as create_order or update_order, and the 3 destructive tools, such as manage_order_returns or manage_order_products.

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 baselinker
metorial tools <integration-id>
metorial call <integration-id> get_order_statuses -d '{}'

metorial tools lists the 17 tools, minus any you rejected. get_order_statuses takes no input. It retrieves all available order statuses and order sources configured in the BaseLinker account.

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

Tools

Read-only tools (9)

  • get_inventories: Retrieve the list of BaseLinker inventories (product catalogs), their categories, and manufacturers.
  • get_couriers: Retrieve available courier integrations and their configuration.
  • get_orders: Retrieve orders from BaseLinker.
  • get_external_storages: Retrieve external storages (connected shops and warehouses) and their products.
  • get_inventory_products: Retrieve products from a BaseLinker inventory (product catalog). Needs inventoryId and mode.
  • get_order_statuses: Retrieve all available order statuses and order sources configured in the BaseLinker account.
  • get_order_journal: Retrieve order events from the last three days, including order creation, payments, shipment changes and status changes.
  • get_order_return_options: Discover configured return statuses and return reasons with their IDs and names before creating a return.
  • download_shipping_label: Download the shipping label for a courier shipment.

Write tools (5)

  • update_inventory_stock_prices: Bulk update stock quantities and/or prices for products in a BaseLinker inventory. Needs inventoryId.
  • update_order: Update an existing order's fields in BaseLinker. Needs orderId.
  • create_order: Create a new order in BaseLinker. Needs orderStatusId, dateAdd, currency, paymentMethod, paymentMethodCod, paid and products.
  • add_order_payment: Record a payment on a BaseLinker order. Needs orderId and paymentDone.
  • create_courier_shipment: Create a courier shipment package for an order. Needs orderId and courierCode.

Destructive tools (3)

  • manage_inventory_product: Create, update, or delete a product in a BaseLinker inventory (product catalog). Needs action and inventoryId.
  • manage_order_returns: Create, update, list, or delete order returns in BaseLinker. Needs action.
  • manage_order_products: Add, update, or remove products on an existing BaseLinker order. Needs orderId and action.

Triggers

Baselinker has 2 triggers, which fire on events in Baselinker:

  • inbound_webhook
  • order_events: Polls the BaseLinker order journal for events such as order creation, status changes, removals, payments, shipments, and more.

Next steps