MetorialDocs

Set up Square in Metorial for Claude, ChatGPT and Cursor

Share Square with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 52 tools (29 read-only).

To give your team Square in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Square integration in a Metorial portal, and each person signs in to Square with their own account. Agents can process payments, manage orders, and handle invoices for online, in-app, and in-person commerce. The integration has 52 tools, 29 read-only, 19 write and 4 destructive, plus 11 triggers.

What you'll learn

  • How an admin shares Square in a portal and how each person connects
  • The 33 OAuth scopes Square can request, and what each one allows
  • How to keep the 29 read-only tools and reject the other 23

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth (default)OAuthSigns in to Square
Personal Access TokenAPI tokentoken

The portal and metorial setup use OAuth unless someone picks another method.

OAuth

People sign in to Square and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
MERCHANT_PROFILE_READMerchant Profile ReadRead merchant profile information
PAYMENTS_READPayments ReadRead payment information
PAYMENTS_WRITEPayments WriteCreate and manage payments
ORDERS_READOrders ReadRead order information
ORDERS_WRITEOrders WriteCreate and manage orders
CUSTOMERS_READCustomers ReadRead customer profiles
CUSTOMERS_WRITECustomers WriteCreate and manage customer profiles
ITEMS_READItems ReadRead catalog items
ITEMS_WRITEItems WriteCreate and manage catalog items
INVENTORY_READInventory ReadRead inventory counts
INVENTORY_WRITEInventory WriteManage inventory counts
INVOICES_READInvoices ReadRead invoices
INVOICES_WRITEInvoices WriteCreate and manage invoices
APPOINTMENTS_READAppointments ReadRead bookings and appointments
APPOINTMENTS_WRITEAppointments WriteCreate and manage bookings
EMPLOYEES_READEmployees ReadRead team member information
EMPLOYEES_WRITEEmployees WriteManage team members
TIMECARDS_READTimecards ReadRead timecards
TIMECARDS_WRITETimecards WriteManage timecards
BANK_ACCOUNTS_READBank Accounts ReadRead bank account information
LOYALTY_READLoyalty ReadRead loyalty programs and accounts
LOYALTY_WRITELoyalty WriteManage loyalty programs and accounts
GIFTCARDS_READGift Cards ReadRead gift card information
GIFTCARDS_WRITEGift Cards WriteManage gift cards
SUBSCRIPTIONS_READSubscriptions ReadRead subscriptions
SUBSCRIPTIONS_WRITESubscriptions WriteManage subscriptions
DISPUTES_READDisputes ReadRead dispute information
DISPUTES_WRITEDisputes WriteManage disputes
DEVICE_CREDENTIAL_MANAGEMENTDevice Credential ManagementManage device credentials
PAYOUTS_READPayouts ReadRead payout information
ONLINE_STORE_SITE_READOnline Store Site ReadRead Square Online site details
ONLINE_STORE_SNIPPETS_READOnline Store Snippets ReadRead Square Online snippets
ONLINE_STORE_SNIPPETS_WRITEOnline Store Snippets WriteManage Square Online snippets

Personal Access Token

To connect, a person enters:

  • token: Personal access token from the Square Developer Console

Setup settings

Whichever method you pick, setup also asks for:

  • environment (optional): Square API environment. Use sandbox for testing. One of "production", "sandbox".

Use your own Square OAuth app

With your own OAuth app, people see your company's name on the Square consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Square and copy the Redirect URI.

Register the app with Square

Create an OAuth app or client in Square and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Square integration.

Admin: share Square 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 Square. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Square as themselves.

Limit the tools

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

Choose who gets it

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

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

Employee: connect Square

In the portal

Open Square in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A Square sign-in tab opens. Sign in and approve the permissions listed.

Confirm

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

With the CLI

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

catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with Personal Access Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Square 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 square
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 29 read-only tools, such as get_card and get_order, and lose the 19 write tools, such as pay_order or create_card, and the 4 destructive tools, such as disable_card or delete_customer.

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

metorial tools lists the 52 tools, minus any you rejected. list_locations takes no input. It lists Square business locations.

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

Tools

Read-only tools (29)

Show all 29 read-only tools
  • get_catalog_object: Retrieve a specific catalog object by its ID. Needs catalogObjectId.
  • get_inventory: Retrieve current inventory counts, optionally filtered by item variations, locations, tracked states, or update time. Needs catalogObjectIds.
  • get_invoice: Get an invoice by ID, including its current version, payment schedule, recipient, status, and customer payment URL when published. Needs invoiceId.
  • search_catalog: Search Square catalog items by text or category, or search catalog objects by type and advanced query.
  • list_payments: List payments with documented date, location, card, amount, and offline filters.
  • search_orders: Search for orders across one or more locations. Needs locationIds.
  • get_customer: Retrieve full details of a specific customer profile by ID. Needs customerId.
  • list_invoices: List invoices at one location with status, version, recipient, payment requests, and public URL when available. Needs locationId.
  • list_customers: Retrieve a list of customer profiles.
  • get_payment: Get a payment by ID, including current status, version token, refund IDs, card or cash details, and receipt URL. Needs paymentId.
  • list_locations: List Square business locations.
  • get_order: Retrieve full details of a specific order by its ID. Needs orderId.
  • get_location: Retrieve a Square business location and its currency, status, and capabilities. Needs locationId.
  • get_refund: Retrieve full details for a Square payment refund by refund ID. Needs refundId.
  • list_refunds: Retrieve Square payment refunds with pagination and filters for created time, updated time, location, status, and source type.
  • get_merchant: Retrieve the authenticated Square merchant profile or a specific merchant by ID.
  • search_customers: Search Square customer profiles using common filters or an advanced Square customer query object.
  • search_invoices: Search invoices at exactly one location and optionally one customer.
  • list_cards: List saved cards, optionally filtered by customer or reference ID.
  • list_payment_links: List Square-hosted payment links and their checkout URLs, with cursor pagination.
  • get_payment_link: Retrieve a Square-hosted payment link, its order ID, version, and checkout URL.
  • get_card: Retrieve a saved card by ID, including customer association and enabled state.
  • list_payouts: List payouts and their settlement amounts, status, destination, and reconciliation identifiers.
  • list_payout_entries: List the transactions and adjustments that make up a batch payout.
  • get_subscription: Retrieve the current subscription, billing dates, card, invoices, and optional scheduled actions.
  • get_payout: Retrieve one payout and its settlement status, amount, destination, and reconciliation ID.
  • get_dispute: Retrieve the state, disputed payment, amount, reason, and response deadline for one dispute.
  • search_subscriptions: Search subscriptions by location or customer, including their billing and cancellation state.
  • list_disputes: List payment disputes, including the disputed payment, amount, state, and response deadline.

Write tools (19)

  • upsert_catalog_object: Create or fully replace a catalog object (item, variation, category, tax, discount, modifier list, etc.). Needs object.
  • update_customer: Update an existing customer profile. Needs customerId.
  • create_payment: Charge a token or saved card, or record cash or an external payment. Needs sourceId and amountMoney.
  • create_order: Create an OPEN or DRAFT order at a Square location. Needs locationId.
  • create_invoice: Create a draft invoice for an existing order. Needs locationId and orderId.
  • adjust_inventory: Apply physical counts or inventory adjustments to item variations. Needs changes.
  • refund_payment: Issue a full or partial refund of a completed Square payment. Needs paymentId and amountMoney.
  • manage_invoice: Publish a draft invoice, cancel a published invoice, or delete a draft. Needs invoiceId and action.
  • manage_payment: Capture or void an approved payment, update its amount or tip, or void an uncertain create request using its idempotency key. Needs paymentId and action.
  • create_customer: Create a new customer profile.
  • update_invoice: Update sparse invoice fields using the current version. Needs invoiceId and version.
  • pay_order: Mark a Square order as paid using approved delayed-capture payment IDs, or settle a zero-total order with an empty paymentIds array. Needs orderId.
  • update_order: Update an OPEN or DRAFT order using sparse fields and its current version, or set state to CANCELED to cancel an uninvoiced order. Needs orderId and version.
  • update_payment_link: Update a payment link using its current version.
  • create_card: Save a tokenized card for a Square customer.
  • create_payment_link: Create a single-use Square-hosted checkout link for a quick-pay item or a new itemized order.
  • create_subscription: Enroll a customer in a catalog subscription plan variation.
  • cancel_subscription: Schedule cancellation at the end of the active billing period.
  • update_subscription: Update selected subscription fields.

Destructive tools (4)

  • delete_customer: Permanently delete a customer profile from the Square account. Needs customerId.
  • delete_catalog_object: Delete a catalog object by its ID. Needs catalogObjectId.
  • delete_payment_link: Delete a payment link and cancel its unpaid checkout order.
  • disable_card: Disable a saved card, preventing future charges.

Triggers

Square has 11 triggers, which fire on events in Square:

  • order_events: An order is created, updated, or its fulfillment changes.
  • inventory_events: One or more inventory counts change.
  • booking_events: A booking is created, updated, or canceled.
  • refund_events: A payment refund is created or updated.
  • payment_events: A payment is created or its status changes.
  • invoice_events: An invoice is created, changed, published, canceled, deleted, paid, refunded, or has a failed scheduled charge.
  • customer_events: A customer profile is created, updated, or deleted.
  • dispute_events: A dispute is created, its state changes, or evidence is added or removed.
  • subscription_events: A subscription is created or its status changes.
  • catalog_events: The catalog version changes.
  • loyalty_events: A loyalty account, event, program, or promotion changes.

Next steps