Square automation

From Zidong-LLC/BIBLIOTECA · View interactive version

Square automation is an AI agent skill from the GitHub repository Zidong-LLC/BIBLIOTECA. Automate Square tasks via Rube MCP (Composio): payments, orders, invoices, locations. Always search tools first for current schemas.

How to use this skill

Skill file

Square Automation via Rube MCP

Automate Square payment processing, order management, and invoicing through Composio's Square toolkit via Rube MCP.

Prerequisites

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit square
  3. If connection is not ACTIVE, follow the returned auth link to complete Square OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. List and Monitor Payments

When to use: User wants to view payment history or check payment status

Tool sequence:

  1. SQUARE_LIST_PAYMENTS - Retrieve payments with optional filters [Required]
  2. SQUARE_CANCEL_PAYMENT - Cancel a pending payment if needed [Optional]

Key parameters:

Pitfalls:

2. Search and Manage Orders

When to use: User wants to find orders by criteria or update order details

Tool sequence:

  1. SQUARE_LIST_LOCATIONS - Get location IDs for filtering [Prerequisite]
  2. SQUARE_SEARCH_ORDERS - Search orders with filters [Required]
  3. SQUARE_RETRIEVE_ORDER - Get full details of a specific order [Optional]
  4. SQUARE_UPDATE_ORDER - Modify order state or details [Optional]

Key parameters:

Pitfalls:

3. Manage Locations

When to use: User wants to view business locations or get location details

Tool sequence:

  1. SQUARE_LIST_LOCATIONS - List all business locations [Required]

Key parameters:

Pitfalls:

4. Invoice Management

When to use: User wants to list, view, or cancel invoices

Tool sequence:

  1. SQUARE_LIST_LOCATIONS - Get location ID for filtering [Prerequisite]
  2. SQUARE_LIST_INVOICES - List invoices for a location [Required]
  3. SQUARE_GET_INVOICE - Get detailed invoice information [Optional]
  4. SQUARE_CANCEL_INVOICE - Cancel a scheduled or unpaid invoice [Optional]

Key parameters:

Pitfalls:

Common Patterns

ID Resolution

Location name -> Location ID:

1. Call SQUARE_LIST_LOCATIONS
2. Find location by name in response
3. Extract id field (e.g., 'L1234ABCD')

Order lookup:

1. Call SQUARE_SEARCH_ORDERS with location_ids and query filters
2. Extract order_id from results
3. Use order_id for RETRIEVE_ORDER or UPDATE_ORDER

Pagination

Date Range Filtering

Known Pitfalls

ID Formats:

Versioning:

Rate Limits:

Response Parsing:

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| List payments | SQUARE_LIST_PAYMENTS | begin_time, end_time, location_id, cursor |

| Cancel payment | SQUARE_CANCEL_PAYMENT | payment_id |

| Search orders | SQUARE_SEARCH_ORDERS | location_ids, query, cursor |

| Get order | SQUARE_RETRIEVE_ORDER | order_id |

| Update order | SQUARE_UPDATE_ORDER | order_id, version |

| List locations | SQUARE_LIST_LOCATIONS | (none) |

| List invoices | SQUARE_LIST_INVOICES | location_id, cursor |

| Get invoice | SQUARE_GET_INVOICE | invoice_id |

| Cancel invoice | SQUARE_CANCEL_INVOICE | invoice_id, version |

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.