MCP tool catalog

The DataGlass MCP tool surface by business domain — the read tools, and the write tools each per-domain scope unlocks. 568 tools in total, 263 of them write-capable.

The production connector exposes 568 tools, of which 263 can write. This catalog is representative, not exhaustive: it names the tools worth knowing in each business domain and states which scope a domain's writes require. Runtime tools/list is the machine-readable source of truth for the exact set, JSON Schema inputs, and outputs.

Every tool a domain lists is available only if the connector holds the matching scope. A connector is read-only until you approve a write scope on the consent screen — see Permissions and safety for the model.

All shop-scoped requests remain subject to DataGlass authentication, organization and shop ownership, page permissions, Pro-plan access, and rate limits. Object request bodies are normally flattened into top-level tool arguments; array and scalar bodies keep their named body argument.

How to read this catalog

  • The read domains below need no write scope. They report, compare, diagnose, recommend, and simulate.
  • The write domains further down are grouped by the PAT_* scope that unlocks them. Every tool in them advertises destructiveHint=true, so your assistant prompts before executing.
  • Counts shown per domain are the tools documented here, not the full runtime surface.

Foundation and product search · 3

ToolUseKey input or routing note
get_playbookRetrieve server-provided workflows and conventions.Optional playbook; omit it for the index.
searchFind canonical products by name, SKU, model SKU, or numeric listing ID.Required query; returns up to 50 canonical-product:<id> results.
fetchRetrieve one canonical product and all marketplace bindings after search.Required id exactly as returned by search.

Search-result URLs are relative. Resolve them against https://app.dataglasslabs.com.

Shop discovery and authorization · 4

ToolUseKey input or routing note
list_shopee_shopsList connected Shopee shops with ID, name, region, timezone, and seller class.No arguments; call before Shopee shop tools.
list_shopee_shop_accountsInspect Shopee authorization by shop and app type.No arguments; non-null deauthorizedAt means expired or revoked access.
list_lazada_shopsList connected Lazada sellers with seller ID, name, and region.No arguments; Lazada calls name the shop identifier sellerId.
list_tiktok_shopsList connected TikTok Shops with shop ID, name, and region.No arguments; preserve every returned ID as a string.

Unified financial health · 2

ToolUseKey input or routing note
get_financial_overviewCross-platform realized-profit rollup across all connected shops.Optional lookback, dates, top-N, and VAT settings; no shop ID.
diagnose_shopCompact shop health check with KPI deltas, COGS coverage, loss-makers, top and worst products, and drilldown signals.platform, discovered shopId, region; optional lookbackDays and includeInferredCogs.

Begin broad health and decline questions with diagnose_shop; follow a returned signal only when detail is necessary.

Canonical products and cost basis · 5

ToolUseKey input or routing note
list_productsReturn canonical products with Shopee, Lazada, and TikTok bindings.searchParams array; use [] for no filter.
list_shopee_productsPaginated Shopee dashboard with stock, price, units sold, and margin.Shopee dashboard request with discovered shop and pagination or filters.
list_lazada_productsPaginated Lazada dashboard with stock, price, units sold, and margin.Lazada dashboard request with discovered seller and pagination or filters.
get_product_costsRetrieve stored COGS and manufacturing costs used in margin.canonicalIds from canonical product results.
get_estimated_marginRead the inferred shop margin used when explicit COGS is absent.Shopee shopId; this is shop-level inference despite the historical name.

TikTok product discovery is available through search, fetch, and list_products; there is no curated list_tiktok_products tool.

Product conversion metrics · 3

ToolUseKey input or routing note
get_shopee_product_conversion_metricsShopee impressions, clicks, CTR, CVR, orders, units, revenue, spend, and views.shopId, region, datadateFrom, datadateTo; optional product and pagination filters.
get_lazada_product_conversion_metricsLazada impressions, clicks, CTR, CVR, orders, units, revenue, spend, and views.sellerId, region, datadateFrom, datadateTo; optional product and pagination filters.
get_tiktok_product_conversion_metricsTikTok impressions, clicks, CTR, CVR, orders, units, revenue, spend, and views.String shopId, datadateFrom, datadateTo; optional product and pagination filters.

Conversion dates use YYYYMMDD, not YYYY-MM-DD.

Orders and fulfilment reads · 4

ToolUseKey input or routing note
count_ordersCount normalized orders across all shops or one platform.Optional platform, fromDate, toDate; inclusive YYYY-MM-DD.
list_ordersPaginate normalized orders across connected shops.Platform, shop, date filters, and cursor from the runtime schema.
get_orderRetrieve normalized order detail, lines, quantities, prices, and fees.canonicalOrderId returned by list_orders.
count_unshipped_ordersCount pending-fulfilment backlog.Optional sinceDays, default 30.

Canonical platform values include shopee, lazada, and tiktok_shop. Use a count tool when the question is only "how many?"

Shopee financials, fees, ROAS, and payout · 13

ToolUseKey input or routing note
get_shopee_financial_overviewRealized profit, weighted margin, period comparison, and COGS coverage for one shop.shopId, region; optional dates, top-N, VAT, and inferred COGS.
get_shopee_cost_breakdownFee, transaction, service, shipping, COGS, and ads cost lines.Same shop and window settings as the overview.
get_shopee_pnl_flowWaterfall from gross revenue through costs to net profit.Same shop and window settings as the overview.
get_shopee_product_profitForward-profit economics for one item or model.shopId, region, itemId; optional modelId.
get_shopee_variant_breakdownsVariant-level profit rows for selected model IDs.shopId, region, modelIds.
get_shopee_product_breakdownsPaginated batch product profit breakdown.Path shopId, region; optional IDs, window, and cursor.
rank_shopee_products_by_profitRank best and worst products by total profit.shopId, region; optional window, sort, filters, and paging.
simulate_shopee_profitTest price, discount, or COGS economics without writing.Current product identity plus only the override fields being tested.
get_shopee_product_roasCancellation-deduped, profit-adjusted ROAS for one product.shopId, region, itemId; optional analysis window.
get_shopee_corrected_roasCorrected shop or product ads ROAS after cancellations and returns.shopId, region, and required analysis request.
get_commission_overviewCurrent declared Shopee fee rates by category.shopId, region; optional scope or filter request.
get_commission_impactEstimated profit impact from an upcoming fee change.shopId, region, requested rate and effective-date scenario.
get_shopee_payoutReconcile expected versus reported escrow payout and order lines.shopId, inclusive payout dates from and to; optional incomeStatus 1 paid or 2 pending.

Payout is not profit. Use get_shopee_payout for "how much did Shopee pay me?" and financial overview tools for profitability.

Lazada financials and settlement · 7

ToolUseKey input or routing note
get_lazada_financial_overviewLazada P&L overview with profit, margin, top and worst products, and costs.Discovered sellerId, region; optional dates, top-N, VAT, and inferred COGS.
get_lazada_product_profitForward-profit economics for one Lazada item or SKU.sellerId, region, itemId; optional skuId.
get_lazada_sku_breakdownsVariant-level profit breakdown for Lazada SKUs.Path sellerId, region; optional filters.
get_lazada_product_breakdownsPaginated batch product profit breakdown.Path sellerId, region; optional products, window, and cursor.
rank_lazada_products_by_profitRank Lazada products by total profit.Path sellerId, region; optional window, sort, and paging.
simulate_lazada_profitTest price, discount, or COGS economics without writing.Current product identity plus only the overrides being tested.
get_lazada_payoutNet finance-statement settlement split into paid and pending.sellerId, region, inclusive settlement dates from and to.

Lazada exposes net settled-ledger totals, not the expected-versus-reported reconciliation report available for Shopee and TikTok.

TikTok financials, fees, ROAS, and payout · 9

ToolUseKey input or routing note
get_tiktok_financial_overviewTikTok Shop P&L with profit, margin, top and worst products, and costs.Exact string shopId, region; optional dates, top-N, VAT, and inferred COGS.
get_tiktok_product_profitForward-profit economics for one product or SKU.Exact shopId, productId; optional skuId.
get_tiktok_sku_breakdownsProfit breakdown for selected TikTok SKU IDs.Exact shopId and skuIds, preserved as strings.
get_tiktok_product_breakdownsBatch product profit breakdown.Exact shopId, productIds; optional per-product ads-cost map.
simulate_tiktok_profitTest price, discount, or COGS economics without writing.Current product identity plus only the overrides being tested.
get_tiktok_campaign_roasCancellation and return-deduped True ROAS for a GMV Max campaign.Exact shopId, region, campaignId, advertiserId; optional window.
get_tiktok_commission_overviewCurrent TikTok fee rates by category.Exact shopId; optional scope or filters.
get_tiktok_commission_impactProduct and shop impact from an upcoming fee change.Exact shopId plus rate and effective-date scenario.
get_tiktok_payoutReconcile expected versus actual bank-settlement statements.Exact shopId, inclusive payout dates from and to; optional status.

Treat every TikTok identifier as an opaque string, even when it contains only digits.

Shopee ads and growth reads · 6

ToolUseKey input or routing note
get_shopee_ads_performanceActive-campaign dashboard with spend, GMV, orders, and ROAS.shopId, region; optional dates, sort, filters, page, and cursor.
get_shopee_ads_recommendationsSuggested campaign budgets and bids.shopId, region; optional status and campaign filters.
get_shopee_campaign_profit_adjusted_roasStored preferred profit-adjusted ROAS floor by campaign.shopId, region; optional campaignId.
get_shopee_target_roas_recommendationsMargin-based target-ROAS proposals for auto-bidding.shopId, region; optional status and campaign filters.
get_shopee_gms_target_roas_recommendationsShop-level GMV Max or GMS target-ROAS proposals.shopId, region; optional status filters.
get_shopee_boost_recommendationsProducts recommended for search or ads boost.Shop, region, and optional recommendation filters.

Start from performance and True or profit-adjusted ROAS. Do not recommend budget changes from marketplace headline ROAS alone.

TikTok GMV Max ads reads · 4

ToolUseKey input or routing note
get_tiktok_gmv_max_campaignsGMV Max campaigns with rolling 30-day expense, orders, GMV, ROAS, CTR, and CPC.String shopId, region; optional advertiser, campaign, status, cursor, and page filters.
get_tiktok_gmv_max_sessionsProduct and SKU bid sessions beneath GMV Max campaigns.String shopId, region; optional advertiser, campaign, session, cursor, and page filters.
get_tiktok_budget_recommendationsSuggested GMV Max campaign budgets.Exact shopId, region; optional campaign and status filters.
get_tiktok_target_roas_recommendationsSuggested GMV Max target ROAS.Exact shopId, region; optional campaign and status filters.

Use the campaign list first, sessions only for product-level drilldown, and get_tiktok_campaign_roas for cancellation-adjusted evidence.

Cross-domain recommendation reads · 5

ToolUseKey input or routing note
list_recommendationsCursor-paginated recommendation feed across shops and types.Optional shop, platform, type, and status filters; pass nextCursor for more.
get_bundle_deal_recommendationsSuggested Shopee product groupings for bundle deals.shopId, region; optional status and filters.
get_margin_defense_actionsShopee price-raise or discount-trim proposals for fee changes.shopId, region; optional recommendation status.
get_tiktok_margin_defense_actionsTikTok price-raise or discount-trim proposals.Exact string shopId, region; optional status.
get_price_buffer_recommendationsShopee and TikTok price-buffer or discount proposals that defend margin.Shop, platform, region, and optional status or filters from the schema.

Reading a recommendation needs no write scope. Applying, rejecting, stopping, or rolling one back is available under PAT_RECOMMENDATION_WRITE, or under the domain scope that owns the change — a margin-defense apply is a pricing write, an ads-recommendation apply is an ads write. Bundle-deal recommendations are the exception: DataGlass can propose the grouping, but there is no mediated bundle-deal write, so an assistant cannot create one.

Inventory planning reads · 5

ToolUseKey input or routing note
get_inventory_alertsReorder-point alerts, live first and then resolved history.Optional status: open, acknowledged, dismissed, or resolved.
get_reorder_planComputed (s,S) reorder threshold and quantity by SKU.No arguments; self-scoped to the authenticated user's inventory.
get_inventory_forecastForecast over the planning horizon.Optional canonicalVariantId; bucket W weekly or M monthly.
get_demand_chartHistorical and forecast demand time series.Optional canonicalVariantId; default bucket W; weeksBack defaults to 26.
get_open_purchase_ordersOpen and inbound purchase orders used to avoid double ordering.Optional status: open, received, or cancelled.

The inventory surface is cross-shop and self-scoped. Check inbound purchase orders before finalizing a reorder quantity.

Pricing writes · PAT_PRICING_WRITE · 103 tools

The largest write domain. Price-tier drafts are the mediated path: build a draft, evaluate its economics, apply it, and roll it back if needed.

ToolUseDestructive
create_price_tier_draftStage price and discount changes for a set of variants without touching the platform.No
get_price_tier_draftRead a draft's contents before applying it.No
evaluate_price_tier_changesCompute the resulting margin for a draft.No
apply_price_tier_draftPush the draft's prices and discounts live to the platform. Buyers see the new prices.Yes
rollback_price_tier_draftRestore each applied variant's captured pre-apply price. Fresh platform writes, not an undo.Yes
apply_shopee_target_marginCompute and push the discount or list price required to hit a target margin. Run preview_shopee_target_margin first.Yes
apply_margin_defense_actionTrim discount or raise list price per variant against a fee change; can also stage for a future deploy date.Yes
apply_price_buffer_discountApply a margin-defending price-buffer proposal.Yes

Lazada and TikTok have parallel tools under the same scope: apply_lazada_price_tier_draft, apply_tiktok_price_tier_draft, apply_lazada_target_margin, apply_tiktok_target_margin, apply_tiktok_margin_defense_action, and their rollback and cancel counterparts.

Ads writes · PAT_ADS_WRITE · 46 tools

ToolUseDestructive
create_ads_groupCreate an ads optimization group over a set of campaigns and activate it.No
enable_ads_group_optimizationTurn on automatic budget optimization for a group.Yes
disable_ads_group_optimizationPause every active member campaign and turn optimization off.Yes
control_ad_campaignChange a live campaign's budget, target, or status.Yes
apply_shopee_target_roasApply a margin-based target-ROAS recommendation to a campaign.Yes
revert_shopee_target_roasUndo an applied target-ROAS change.No
apply_shopee_ads_recommendationApply a recommended budget or bid.Yes
apply_tiktok_ad_budgetApply a recommended GMV Max campaign budget.Yes
apply_tiktok_target_roasApply a recommended GMV Max target ROAS.Yes
apply_boost_recommendationBoost the recommended products in search or ads.Yes

pause_ads_group still exists as a deprecated alias of disable_ads_group_optimization. Prefer the latter.

Catalog writes · PAT_CATALOG_WRITE · 36 tools

ToolUseDestructive
apply_shopee_cogsWrite resolved COGS rows for a shop. Changes every profit and margin figure for those products, historical reports included. Run preview_shopee_cogs first.Yes
apply_lazada_cogs / apply_tiktok_cogsThe same, per platform.Yes
upsert_historical_cogsAdd or amend a dated COGS window.No
apply_shopee_stockSet canonical stock and queue write-back to live listings, including bound listings on other platforms.Yes
apply_shopee_product_titleChange a live listing's title.Yes
apply_tiktok_product_seoApply a TikTok SEO recommendation to a live listing.Yes
create_canonical_productCreates a new live listing on every selected shop using each platform's create-product API, then binds them to one canonical.Yes
copy_product_to_shopsRe-creates an existing listing as a new live listing on each target shop, including a different platform.Yes
link_canonicals / unlink_canonical / detach_bindingMerge, split, or detach canonical product bindings.Yes
set_products_hiddenHide or unhide products in DataGlass.No

create_canonical_product and copy_product_to_shops produce listings buyers can see. Neither is a canonical-row-only operation.

Returns and refunds · PAT_RETURNS_WRITE · 17 tools

Return and refund decisions sit behind their own scope because they move real money and the platform will not reverse them.

ToolUseDestructive
approve_tiktok_returnApprove a return or refund request, committing the buyer's refund.Yes
reject_tiktok_returnReject a return or refund request.Yes
approve_tiktok_cancellation / reject_tiktok_cancellationDecide a buyer cancellation request.Yes
confirm_shopee_returnConfirm a Shopee return.Yes
offer_shopee_return_solution / dispute_shopee_returnOffer a partial-refund solution or dispute the return.Yes
decide_lazada_refundDecide a Lazada refund.Yes
upload_shopee_return_proofAttach evidence to a return case.No

Order actions · PAT_ORDERS_WRITE · 14 tools

ToolUseDestructive
cancel_shopee_orderCancel a live order. The buyer is notified, the sale is lost, and it counts against fulfilment metrics. There is no un-cancel.Yes
handle_shopee_buyer_cancellationAccept or reject a buyer's cancellation request.Yes
split_shopee_order / unsplit_shopee_orderSplit or recombine an order for fulfilment.Yes
split_tiktok_orderSplit a TikTok order.Yes
set_shopee_order_noteAttach a seller note to an order.No
generate_shopee_fbs_invoicesGenerate FBS invoice documents.No

Logistics and shipping · PAT_LOGISTICS_WRITE · 14 tools

ToolUseDestructive
ship_tiktok_packageHand one package to the carrier. The buyer sees the order move to shipped and the delivery clock starts. There is no un-ship.Yes
batch_ship_tiktok_packagesThe same, for many packages.Yes
create_tiktok_packages / combine_tiktok_packagesCreate or combine packages before shipping.Yes
update_tiktok_package_shipping_infoAmend tracking or carrier details.Yes
print_shopee_airway_billsGenerate Shopee AWB documents.No
print_shop_shipping_documentsGenerate shipping documents for a shop.No

Acting on recommendations · PAT_RECOMMENDATION_WRITE · 12 tools

ToolUseDestructive
reject_recommendationDismiss a recommendation so it stops surfacing.No
pause_recommendation / resume_recommendationHold or resume a running Action.No
stop_recommendationStop a running Action.Yes
rollback_recommendationRevert an applied Action.Yes
save_profit_leak_settingsChange profit-leak triage settings.No
set_negative_profit_alert_settingsChange negative-profit alert settings.No

Inventory writes · PAT_INVENTORY_WRITE · 10 tools

ToolUseDestructive
acknowledge_inventory_alertAcknowledge a reorder-point alert.No
dismiss_inventory_alertDismiss an alert.No
log_purchase_orderRecord an inbound purchase order so it counts against reorder quantities.No
apply_purchase_order_uploadImport purchase orders from an upload.No
run_inventory_modelRecompute the forecast and reorder plan.No
set_shopee_stock_syncTurn stock write-back to a platform on or off.Yes

Ads report authoring · PAT_REPORTS_WRITE · 10 tools

ToolUseDestructive
generate_ads_performance_reportGenerate an ads performance report.No
open_ads_report_workspaceOpen a report workspace for editing.No
save_ads_report_section_draftSave a section draft.No
validate_ads_report_workspaceValidate the workspace before publishing.No
publish_ads_report_workspacePublish the finished report.No

Capabilities absent from the tool surface

Some things an assistant cannot do at any scope, because DataGlass exposes only mediated writes and these have no mediated path:

  • Vouchers, bundle deals, flexi-combo, and free-shipping campaigns. DataGlass can read them and can recommend a bundle-deal grouping, but it cannot create or edit any of them through an agent.
  • Raw price, discount, and stock passthroughs. updatePrice, addDiscount, and updateStock are not tools. Use the mediated equivalents — a price-tier draft, a target-margin apply, or apply_shopee_stock.
  • The Shopee price-tier review queue and the campaigns-losing-by-profit-adjusted-ROAS list. Both were withdrawn from the agent surface on 3 August 2026, because membership in either result set is itself the financial signal. Both still work in the app.

Coverage check

DomainScope requiredTools documented
Foundation and search3
Shop discovery4
Unified financial health2
Products and costs5
Conversion3
Orders and fulfilment reads4
Shopee financials13
Lazada financials7
TikTok financials9
Shopee ads and growth reads6
TikTok ads reads4
Recommendation reads5
Inventory reads5
Pricing writesPAT_PRICING_WRITE103
Ads writesPAT_ADS_WRITE46
Catalog writesPAT_CATALOG_WRITE36
Returns and refundsPAT_RETURNS_WRITE17
Order actionsPAT_ORDERS_WRITE14
Logistics and shippingPAT_LOGISTICS_WRITE14
Acting on recommendationsPAT_RECOMMENDATION_WRITE12
Inventory writesPAT_INVENTORY_WRITE10
Ads report authoringPAT_REPORTS_WRITE10
Runtime total568 (263 write)

The read rows above list the tools documented on this page, not every read tool in the runtime surface. The write rows are the full count for each scope.

Runtime schema and drift

Runtime tools/list is authoritative for tool names, field names, required values, behaviour hints, and result schemas. If a documented tool and the runtime schema differ, use the runtime schema and report the documentation drift. Counts on this page were verified against the backend on 25 August 2026 and will grow as new tools ship.