A2X MCP by usefulapi
v1.2.1Read accounts, SKU costs, products and subledger queries, and create data exports in A2X.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
a2xaccounting_list_organizations List organizations
List the A2X organizations this token's user can access. Use the organization id in the product, subledger and sku tools. Paginated: pass nextCursor as cursor. A2X: GET /api/v1/organizations.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from the previous page's nextCursor. Omit for the first page. |
limit | integer | Items per page (1-5000, default 2500). |
a2xaccounting_list_accounts List accounts
List the A2X accounts (sales channel connections such as Amazon, Shopify, PayPal) this token's user can access. Closed accounts are not included. Paginated. A2X: GET /api/v1/accounts.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from the previous page's nextCursor. Omit for the first page. |
limit | integer | Items per page (1-5000, default 2500). |
a2xaccounting_list_products List products
List the products in an organization's product catalog, optionally from one product import. Paginated. A2X: GET /api/v1/products.
| Parameter | Type | Description |
|---|---|---|
organizationId * | string | Organization id (UUID), from a2xaccounting_list_organizations. |
cursor | string | Cursor from the previous page's nextCursor. Omit for the first page. |
importId | string | Filter by product import (UUID). |
limit | integer | Items per page (1-5000, default 2500). |
a2xaccounting_list_product_imports List product imports
List product catalog imports for an organization. Paginated. A2X: GET /api/v1/product-imports.
| Parameter | Type | Description |
|---|---|---|
organizationId * | string | Organization id (UUID), from a2xaccounting_list_organizations. |
cursor | string | Cursor from the previous page's nextCursor. Omit for the first page. |
importId | string | Filter by product import (UUID). |
limit | integer | Items per page (1-5000, default 2500). |
a2xaccounting_list_sku_cost_files List latest SKU cost files
List the latest SKU cost files for an account (the costs used for COGS). Paginated. A2X: GET /api/v1/latest-sku-cost-files.
| Parameter | Type | Description |
|---|---|---|
accountId * | integer | Account id (integer), from a2xaccounting_list_accounts. |
cursor | string | Cursor from the previous page's nextCursor. Omit for the first page. |
limit | integer | Items per page (1-5000, default 2500). |
skuCostFileId | integer | Filter by SKU cost file id. |
a2xaccounting_list_sku_costs List SKU costs
List the SKU costs for an account, optionally from one SKU cost file. Paginated. A2X: GET /api/v1/sku-costs.
| Parameter | Type | Description |
|---|---|---|
accountId * | integer | Account id (integer), from a2xaccounting_list_accounts. |
cursor | string | Cursor from the previous page's nextCursor. Omit for the first page. |
limit | integer | Items per page (1-5000, default 2500). |
skuCostFileId | integer | Filter by SKU cost file id. |
a2xaccounting_list_data_exports List data exports
List the data exports the token's user created (kept 15 days). Paginated. A2X: GET /api/v1/data-exports.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Cursor from the previous page's nextCursor. Omit for the first page. |
dataExportId | string | Filter by data export (UUID). |
limit | integer | Items per page (1-5000, default 2500). |
a2xaccounting_list_data_export_rows List data export rows
List the rows of one data export for an account. Paginated. A2X: GET /api/v1/data-exports/rows.
| Parameter | Type | Description |
|---|---|---|
accountId * | integer | Account id (integer), from a2xaccounting_list_accounts. |
dataExportId * | string | Data export id (UUID), from a2xaccounting_list_data_exports. |
cursor | string | Cursor from the previous page's nextCursor. Omit for the first page. |
limit | integer | Items per page (1-5000, default 2500). |
a2xaccounting_create_data_export Create a data export
WRITE: generate a CSV export (SKUS_BY_QUANTITY, SALES_BY_GL_AND_TYPE or SALES_BY_GL_TYPE_AND_DESC) for one account and calendar month. It stores the file for 15 days and counts against the 15-per-day quota. Not available for SKUS_BY_QUANTITY on PayPal. A2X: POST /api/v1/data-exports.
| Parameter | Type | Description |
|---|---|---|
accountId * | integer | Account id (integer), from a2xaccounting_list_accounts. |
month * | string | Calendar month, YYYY-MM. |
reportType * | string | |
includeMarketplace | boolean | Add the marketplace column (default false). |
includeTaxRatesAndCountries | boolean | Break down by tax rate and country (default false). |
a2xaccounting_list_subledger_topics List subledger topics
List the subledger topics (queryable data sets) for an organization. Needs an A2X Clarity or Subledger subscription and the subledger API enabled; otherwise HTTP 403. A2X: GET /api/v1/subledger/topics.
| Parameter | Type | Description |
|---|---|---|
organizationId * | string | Organization id (UUID), from a2xaccounting_list_organizations. |
a2xaccounting_get_subledger_topic Get a subledger topic
Get one subledger topic: its fields, query rules, default filters and sample queries. Needs the Clarity or Subledger subscription. A2X: GET /api/v1/subledger/topics/{topic}.
| Parameter | Type | Description |
|---|---|---|
organizationId * | string | Organization id (UUID), from a2xaccounting_list_organizations. |
topic * | string | Topic name from a2xaccounting_list_subledger_topics. |
a2xaccounting_estimate_subledger_query Estimate a subledger query
Check a subledger query and return how much data it would scan, without running it. Free; refuses the same queries the run tool refuses. Use it before a large query. Needs the Clarity or Subledger subscription. A2X: POST /api/v1/subledger/query/estimate.
| Parameter | Type | Description |
|---|---|---|
organizationId * | string | Organization id (UUID), from a2xaccounting_list_organizations. |
topic * | string | Topic to query, from a2xaccounting_list_subledger_topics (e.g. order). |
dimensions | array | Fields to group by, view.field. Add [timeframe] to a date field to group by time grain. |
filters | array | Filters, all must match. The topic's default filters apply to fields not filtered here. |
limit | integer | Rows to return (1-5000, default 1000). |
measures | array | Fields to aggregate, view.field. |
offset | integer | Rows to skip (default 0). |
sort | array |
a2xaccounting_run_subledger_query Run a subledger query
Run a read-only query on one subledger topic and return its rows (at most 5000 per call; use offset to page). Scan limit 50 GB, 60 s. Limited per organization across all tokens. Needs the Clarity or Subledger subscription. A2X: POST /api/v1/subledger/query.
| Parameter | Type | Description |
|---|---|---|
organizationId * | string | Organization id (UUID), from a2xaccounting_list_organizations. |
topic * | string | Topic to query, from a2xaccounting_list_subledger_topics (e.g. order). |
dimensions | array | Fields to group by, view.field. Add [timeframe] to a date field to group by time grain. |
filters | array | Filters, all must match. The topic's default filters apply to fields not filtered here. |
limit | integer | Rows to return (1-5000, default 1000). |
measures | array | Fields to aggregate, view.field. |
offset | integer | Rows to skip (default 0). |
sort | array |