A2X MCP by usefulapi

v1.2.1
io.usefulapi/a2x-accounting Checked 4 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
cursorstringCursor from the previous page's nextCursor. Omit for the first page.
limitintegerItems 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.

ParameterTypeDescription
cursorstringCursor from the previous page's nextCursor. Omit for the first page.
limitintegerItems 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.

ParameterTypeDescription
organizationId *stringOrganization id (UUID), from a2xaccounting_list_organizations.
cursorstringCursor from the previous page's nextCursor. Omit for the first page.
importIdstringFilter by product import (UUID).
limitintegerItems 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.

ParameterTypeDescription
organizationId *stringOrganization id (UUID), from a2xaccounting_list_organizations.
cursorstringCursor from the previous page's nextCursor. Omit for the first page.
importIdstringFilter by product import (UUID).
limitintegerItems 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.

ParameterTypeDescription
accountId *integerAccount id (integer), from a2xaccounting_list_accounts.
cursorstringCursor from the previous page's nextCursor. Omit for the first page.
limitintegerItems per page (1-5000, default 2500).
skuCostFileIdintegerFilter 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.

ParameterTypeDescription
accountId *integerAccount id (integer), from a2xaccounting_list_accounts.
cursorstringCursor from the previous page's nextCursor. Omit for the first page.
limitintegerItems per page (1-5000, default 2500).
skuCostFileIdintegerFilter 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.

ParameterTypeDescription
cursorstringCursor from the previous page's nextCursor. Omit for the first page.
dataExportIdstringFilter by data export (UUID).
limitintegerItems 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.

ParameterTypeDescription
accountId *integerAccount id (integer), from a2xaccounting_list_accounts.
dataExportId *stringData export id (UUID), from a2xaccounting_list_data_exports.
cursorstringCursor from the previous page's nextCursor. Omit for the first page.
limitintegerItems 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.

ParameterTypeDescription
accountId *integerAccount id (integer), from a2xaccounting_list_accounts.
month *stringCalendar month, YYYY-MM.
reportType *string
includeMarketplacebooleanAdd the marketplace column (default false).
includeTaxRatesAndCountriesbooleanBreak 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.

ParameterTypeDescription
organizationId *stringOrganization 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}.

ParameterTypeDescription
organizationId *stringOrganization id (UUID), from a2xaccounting_list_organizations.
topic *stringTopic 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.

ParameterTypeDescription
organizationId *stringOrganization id (UUID), from a2xaccounting_list_organizations.
topic *stringTopic to query, from a2xaccounting_list_subledger_topics (e.g. order).
dimensionsarrayFields to group by, view.field. Add [timeframe] to a date field to group by time grain.
filtersarrayFilters, all must match. The topic's default filters apply to fields not filtered here.
limitintegerRows to return (1-5000, default 1000).
measuresarrayFields to aggregate, view.field.
offsetintegerRows to skip (default 0).
sortarray

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.

ParameterTypeDescription
organizationId *stringOrganization id (UUID), from a2xaccounting_list_organizations.
topic *stringTopic to query, from a2xaccounting_list_subledger_topics (e.g. order).
dimensionsarrayFields to group by, view.field. Add [timeframe] to a date field to group by time grain.
filtersarrayFilters, all must match. The topic's default filters apply to fields not filtered here.
limitintegerRows to return (1-5000, default 1000).
measuresarrayFields to aggregate, view.field.
offsetintegerRows to skip (default 0).
sortarray