well_get_schema
Discover available data types and fields.| Parameter | Type | Required | Description |
|---|---|---|---|
root | string | No | invoices, companies, people, documents, connectors, transactions, accounts, payment_means |
depth | number | No | 0=scalars, 1=relations (default), 2=nested |
well_query_records
Query records from Well’s database.| Parameter | Type | Required | Description |
|---|---|---|---|
root | string | Yes | Entity type |
fields | array | No* | Field paths as arrays, e.g. ["invoices", "grand_total"] |
allFields | boolean | No* | Fetch all scalar fields |
limit | number | No | Max records (default 50, max 500) |
fields or allFields: true required
well_create_company
Create a new company.| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Company name |
domain | string | No | Website domain |
tax_id | string | No | Tax ID |
well_create_person
Create a new contact.| Parameter | Type | Required | Description |
|---|---|---|---|
first_name | string | Yes | First name |
last_name | string | No | Last name |
email | string | No | Email address |
phone | string | No | Phone (E.164) |
Examples
Example 1: Query financial data
User prompt:- Server calls
well_get_schema("invoices")to discover available fields - Server calls
well_query_recordswith invoice root, filtering by status and amount - Returns matching invoices with invoice number, amount, due date, and issuer name
- AI presents results in a formatted table
Example 2: Create a new contact
User prompt:- Server calls
well_create_companyto create Acme Corp if it doesn’t exist - Server calls
well_create_personwith first_name, last_name, email, and job_title - Returns confirmation with the new person ID and company association
- Contact is immediately available in your Well workspace
Example 3: Build a financial dashboard
User prompt:- Server calls
well_query_recordsto fetch all invoices with issuer, receiver, amounts, and dates - Server calls
well_query_recordsto fetch companies data - AI analyzes the data structure and generates a complete React dashboard artifact
- Dashboard displays real financial data with interactive charts (Recharts)
- Includes filtering, sorting, and responsive dark mode design
Example 4: Query transactions
User prompt:- Server calls
well_get_schema("transactions")to discover available fields - Server calls
well_query_recordswith transactions root, filtering by date - Returns matching transactions with amounts, dates, and associated accounts
- AI presents results in a formatted table
Example 5: View connected accounts
User prompt:- Server calls
well_get_schema("accounts")to discover available fields - Server calls
well_query_recordswith accounts root - Returns all connected accounts with provider, status, and balance info
- AI presents a summary of connected financial accounts