{"schema_version":"2024-11-05","name":"Tradly MCP","description":"Access Tradly marketplace, analytics, commerce, Search Console, and AI agent tools via MCP.","invoke_url":"https://mcp.tradly.app/","auth":[{"type":"oauth","grant_type":"authorization_code","authorization_url":"https://skua.tradly.app/skua/oauth/authorize","token_url":"https://skua.tradly.app/skua/oauth/token","registration_url":"https://skua.tradly.app/skua/oauth/register-client","client_id":"52507989-1a39-41f0-9b98-b532eff51d42","scopes":["listings:read","listings:write","listings:delete","orders:read","orders:write","users:read","users:write","users:delete","accounts:read","accounts:write","accounts:delete","categories:read","categories:write","categories:delete","attributes:read","attributes:write","attributes:delete","analytics:read","analytics:write","analytics:delete","attribution:read","attribution:write","attribution:delete","rewards:read","rewards:write","rewards:delete","layers:read","layers:write","layers:delete","settings:read","settings:write","settings:delete","marketing:read","marketing:write","marketing:delete","audiences:read","audiences:write","audiences:delete","agents:read","agents:write","agents:delete","assets:read","assets:write","workforce:read","workforce:write","workforce:delete","inventory:read","inventory:write","inventory:delete","memberships:read","memberships:write","bundles:read","bundles:write","bundles:delete","rentals:read","rentals:write","rentals:delete","accounting:read","accounting:write","market_research:read","market_research:write","social:read","social:write","export"],"redirect_uri":"https://mcp.tradly.app/oauth/callback","pkce":true,"authorization_params":{"response_type":"code"}}],"tools":[{"id":"get_products","name":"Get Products","description":"Search and list products in the connected commerce catalog using text, category, seller, price, and pagination filters.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number","default":1},"per_page":{"type":"number","default":30},"price_from":{"type":"number"},"price_to":{"type":"number"},"search_key":{"type":"string"},"search":{"type":"string"},"sort":{"type":"string"},"category_id":{"type":"string"},"account_id":{"type":"string"},"attribute_value_id":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_product_details","name":"Get Product Details","description":"Read one product's details using its listing ID when a customer or operator needs its catalog information.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"}},"required":["listingId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"search_accounts","name":"Search Accounts","description":"Find stores or seller accounts using text, category, owner, status, or geographic filters.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number","default":1},"type":{"type":"string","default":"accounts"},"per_page":{"type":"number","default":20},"category_id":{"type":"string"},"user_id":{"type":"string"},"search_key":{"type":"string"},"search":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"max_distance":{"type":"number"},"status":{"type":"number"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_categories","name":"Get Categories","description":"List categories by resource type and optional parent category to browse the catalog hierarchy.","visibility":"public","input_schema":{"type":"object","properties":{"type":{"type":"string","default":"listings"},"parent":{"type":"string","default":"0"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_transactions","name":"Get Transactions","description":"List recorded transactions with optional transaction type and pagination filters; this does not initiate a payment.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"},"type":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_blogs","name":"Get Blogs","description":"List blog content records from the Layers API with optional search and pagination filters.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"},"search":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_category_details","name":"Get Category Details","description":"Read one category by its numeric or string category ID.","visibility":"public","input_schema":{"type":"object","properties":{"categoryId":{"type":"string"}},"required":["categoryId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_category_by_slug","name":"Get Category By Slug","description":"Read one category using its URL slug when its ID is not known.","visibility":"public","input_schema":{"type":"object","properties":{"slug":{"type":"string"}},"required":["slug"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_category","name":"Create Category","description":"Create a category from the supplied category fields when organizing catalog content.","visibility":"public","input_schema":{"type":"object","properties":{"category":{"type":"object"}},"required":["category"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_category","name":"Update Category","description":"Replace the supplied fields of an existing category by ID; this changes its catalog configuration.","visibility":"public","input_schema":{"type":"object","properties":{"categoryId":{"type":"string"},"category":{"type":"object"}},"required":["categoryId","category"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_category","name":"Delete Category","description":"Delete a category by ID. Confirm the target before removing catalog organization data.","visibility":"public","input_schema":{"type":"object","properties":{"categoryId":{"type":"string"}},"required":["categoryId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"create_listing","name":"Create Listing","description":"Create a product listing from the supplied catalog fields. The tool has no draft flag; visibility follows the commerce API rules. For membership listings, metadata.price_asset_key links contributions to the tenant asset price history.","visibility":"public","input_schema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"category_id":{"type":"string"},"account_id":{"type":"number"},"currency_id":{"type":"number","default":13},"images":{"type":"array","items":{"type":"string"}},"stock":{"type":"number"},"offer_percent":{"type":"number"},"coordinates":{"type":"object","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"}}},"type":{"type":"string","default":"listings"},"order_type":{"type":"string"},"attributes":{"type":"object"},"metadata":{"type":"object","description":"Optional tenant-defined listing metadata. For membership listings, include price_asset_key, such as {price_asset_key: 'gold_22k_inr_g'}, to link contributions to the correct price history.","properties":{"price_asset_key":{"type":"string","pattern":"^[a-z0-9_]{1,64}$","description":"Membership price-log asset key; lowercase letters, digits, and underscores only."}}}},"required":["title","description","price","category_id","account_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"update_listing","name":"Update Listing","description":"Update an existing product listing. For a membership listing, pass metadata.price_asset_key to link contributions to tenant-level membership price logs.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"stock":{"type":"number"},"status":{"type":"string"},"images":{"type":"array","items":{"type":"string"}},"attributes":{"type":"object"},"metadata":{"type":"object","description":"Optional metadata patch. For membership listings, include price_asset_key, such as {price_asset_key: 'gold_22k_inr_g'}, to select the price history used for unit conversion.","properties":{"price_asset_key":{"type":"string","pattern":"^[a-z0-9_]{1,64}$","description":"Membership price-log asset key; lowercase letters, digits, and underscores only."}}}},"required":["listingId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_listing","name":"Delete Listing","description":"Delete a product listing.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"}},"required":["listingId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"mark_listing_sold","name":"Mark Listing Sold","description":"Mark a listing as sold.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"}},"required":["listingId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"moderate_listing","name":"Moderate Listing","description":"Change a listing's moderation status by listing ID and numeric status. This can change whether the listing is available to customers.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"},"status":{"type":"number"}},"required":["listingId","status"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"create_blog_post","name":"Create Blog Post","description":"Create a blog post from title and content. It is a draft unless published=true, which publishes the post.","visibility":"public","input_schema":{"type":"object","properties":{"title":{"type":"string"},"content":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"},"account_id":{"type":"number"},"published":{"type":"boolean","default":false}},"required":["title","content"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"create_layer","name":"Create blog content layer","description":"Create a blog-type content layer from title and content. This compatibility alias of create_blog_post does not create arbitrary layer types; published=true publishes it.","visibility":"public","input_schema":{"type":"object","properties":{"title":{"type":"string"},"content":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"},"account_id":{"type":"number"},"published":{"type":"boolean","default":false}},"required":["title","content"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"update_blog_post","name":"Update Blog Post","description":"Edit an existing blog post's supplied fields. published=true publishes it; published=false changes it to a draft.","visibility":"public","input_schema":{"type":"object","properties":{"layerId":{"type":"string"},"title":{"type":"string"},"content":{"type":"string"},"published":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"}},"required":["layerId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"update_layer","name":"Update content layer","description":"Edit the supplied fields of an existing content layer by ID. published can publish or unpublish it; this is a compatibility alias of update_blog_post.","visibility":"public","input_schema":{"type":"object","properties":{"layerId":{"type":"string"},"title":{"type":"string"},"content":{"type":"string"},"published":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"slug":{"type":"string"}},"required":["layerId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_layer","name":"Delete Layer","description":"Delete a content layer by ID, removing the associated blog or other content record. Confirm the target first.","visibility":"public","input_schema":{"type":"object","properties":{"layerId":{"type":"string"}},"required":["layerId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_layers","name":"Get Layers","description":"List content layers with optional type and pagination filters when browsing stored content records.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"},"type":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_attributes","name":"Get Attributes","description":"List configured attributes used to describe catalog or account records.","visibility":"public","input_schema":{"type":"object","properties":{"type":{"type":"string"},"category_id":{"type":"number"},"page":{"type":"number"},"per_page":{"type":"number"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_grouped_attributes","name":"Get Grouped Attributes","description":"List configured attributes grouped by their attribute groups for constructing data-entry forms.","visibility":"public","input_schema":{"type":"object","properties":{"type":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_attribute_details","name":"Get Attribute Details","description":"Read one attribute's definition by ID before using or changing it.","visibility":"public","input_schema":{"type":"object","properties":{"attributeId":{"type":"string"},"type":{"type":"string"}},"required":["attributeId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_attribute","name":"Create Attribute","description":"Create an attribute definition from the supplied attribute object for catalog or account data.","visibility":"public","input_schema":{"type":"object","properties":{"attribute":{"type":"object"}},"required":["attribute"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_attribute","name":"Update Attribute","description":"Update an existing attribute definition by ID; supplied values may replace its current configuration.","visibility":"public","input_schema":{"type":"object","properties":{"attributeId":{"type":"string"},"attribute":{"type":"object"}},"required":["attributeId","attribute"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_attribute","name":"Delete Attribute","description":"Delete an attribute definition by ID. Confirm the target before removing it.","visibility":"public","input_schema":{"type":"object","properties":{"attributeId":{"type":"string"}},"required":["attributeId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"bulk_update_attributes","name":"Bulk Update Attributes","description":"Update multiple attribute definitions in one request; this can overwrite existing definitions.","visibility":"public","input_schema":{"type":"object","properties":{"attributes":{"type":"array","items":{"type":"object"}}},"required":["attributes"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_accounts","name":"Get Accounts","description":"List stores or accounts with the supplied pagination and account filters.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"},"type":{"type":"string","default":"accounts"},"search":{"type":"string"},"user_id":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_account_details","name":"Get Account Details","description":"Read one store or account by ID for its stored profile and configuration.","visibility":"public","input_schema":{"type":"object","properties":{"accountId":{"type":"string"}},"required":["accountId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_account_by_slug","name":"Get Account By Slug","description":"Read one store or account using its URL slug.","visibility":"public","input_schema":{"type":"object","properties":{"slug":{"type":"string"}},"required":["slug"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_account","name":"Create Account","description":"Create a store or account from the supplied account object; visibility and validation follow the commerce API's account rules.","visibility":"public","input_schema":{"type":"object","properties":{"account":{"type":"object"}},"required":["account"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"update_account","name":"Update Account","description":"Update a store or account by ID, replacing the supplied profile or configuration fields.","visibility":"public","input_schema":{"type":"object","properties":{"accountId":{"type":"string"},"account":{"type":"object"}},"required":["accountId","account"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_account","name":"Delete Account","description":"Delete a store or account by ID. Confirm the account before removing it.","visibility":"public","input_schema":{"type":"object","properties":{"accountId":{"type":"string"}},"required":["accountId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"follow_account","name":"Follow Account","description":"Add the authenticated user's follow relationship to a store or account by ID.","visibility":"public","input_schema":{"type":"object","properties":{"accountId":{"type":"string"}},"required":["accountId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"unfollow_account","name":"Unfollow Account","description":"Remove the authenticated user's follow relationship to a store or account by ID.","visibility":"public","input_schema":{"type":"object","properties":{"accountId":{"type":"string"}},"required":["accountId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"block_account","name":"Block Account","description":"Block a store or account by ID, restricting its access or visibility under the platform's account rules.","visibility":"public","input_schema":{"type":"object","properties":{"accountId":{"type":"string"}},"required":["accountId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_reported_accounts","name":"Get Reported Accounts","description":"List accounts flagged for review with optional pagination; this does not moderate the accounts.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_reported_listings","name":"Get Reported Listings","description":"List product listings flagged for review with optional pagination; this does not moderate the listings.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_users","name":"Get Users","description":"List users with the supplied filters and pagination for authorized user administration.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"search_users","name":"Search Users","description":"Search users by the supplied search filters; use get_user_details to retrieve one known user ID.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"},"sort":{"type":"string"},"search":{"type":"string"},"blocked":{"type":"boolean"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_user_details","name":"Get User Details","description":"Read one user's stored record by user ID for an authorized user-management task.","visibility":"public","input_schema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_user_profile","name":"Get User Profile","description":"Read the profile resource for one user ID; this is separate from the user-management record.","visibility":"public","input_schema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_user","name":"Update User","description":"Update an existing user by ID using the supplied user object; current fields can be overwritten.","visibility":"public","input_schema":{"type":"object","properties":{"userId":{"type":"string"},"user":{"type":"object"}},"required":["userId","user"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_user","name":"Delete User","description":"Delete a user by ID. Confirm the target because this removes an existing user record.","visibility":"public","input_schema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"block_user","name":"Block User","description":"Block a user by ID, restricting that user's access under the platform's user rules.","visibility":"public","input_schema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"moderate_user","name":"Moderate User","description":"Submit a user by ID to the API's moderation action. This changes moderation state rather than retrieving the user.","visibility":"public","input_schema":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"export_users","name":"Export Users","description":"Create a CSV export of customer records and supported user attributes in object storage. Returns a download_url valid for three minutes; this writes an export artifact and an audit event without changing source users.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_account_followers","name":"Get Account Followers","description":"List users following the specified store or account ID.","visibility":"public","input_schema":{"type":"object","properties":{"accountId":{"type":"string"}},"required":["accountId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_cart","name":"Get Cart","description":"Read the authenticated customer's current cart without adding items or checking out.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"add_to_cart","name":"Add To Cart","description":"Add a listing and quantity to the authenticated cart; existing quantities may be changed by the cart API.","visibility":"public","input_schema":{"type":"object","properties":{"cart":{"type":"object"}},"required":["cart"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_cart_item","name":"Delete Cart Item","description":"Remove an item from the authenticated cart by updating its cart entry. This does not delete the catalog listing.","visibility":"public","input_schema":{"type":"object","properties":{"cartItemId":{"type":"number"},"listing_id":{"type":"number"},"listing_ids":{"type":"array"}}},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"checkout_cart","name":"Checkout Cart","description":"Checkout the cart. For a membership listing, include order.type='membership' (the listing itself must have type='membership'); ordinary listing, rental, event, and appointment checkouts are unchanged.","visibility":"public","input_schema":{"type":"object","properties":{"order":{"type":"object","description":"Checkout payload. Include payment_method_id and, for membership checkout, type: 'membership'.","properties":{"payment_method_id":{"type":"number"},"type":{"type":"string","description":"Use 'membership' only when checking out a membership listing."}}}},"required":["order"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_orders","name":"Get Orders","description":"List commerce orders using the supplied order filters and pagination; this does not create or confirm orders.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"},"status":{"type":"string"},"search":{"type":"string"},"sort":{"type":"string"},"user_id":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_order_details","name":"Get Order Details","description":"Read one commerce order by order ID for its recorded details and status.","visibility":"public","input_schema":{"type":"object","properties":{"orderId":{"type":"string"}},"required":["orderId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_order_status","name":"Update Order Status","description":"Change an existing order's status by ID; this can affect order processing and subsequent workflows.","visibility":"public","input_schema":{"type":"object","properties":{"orderId":{"type":"string"},"status":{"type":"string"}},"required":["orderId","status"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"confirm_order","name":"Confirm Order","description":"Confirm an existing order by ID. Obtain approval before committing the order transition.","visibility":"public","input_schema":{"type":"object","properties":{"orderId":{"type":"string"}},"required":["orderId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"refund_order","name":"Refund Order","description":"Issue a full refund to the original payment method for a paid Tradly order. This is an irreversible financial action: verify the order and obtain explicit user approval before calling. Only one full refund is supported per order; partial refunds and unsupported payment methods are rejected.","visibility":"public","input_schema":{"type":"object","properties":{"orderId":{"type":"string","description":"Order ID or reference number to refund."}},"required":["orderId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"refund_cash_order","name":"Refund Cash Order","description":"Record a full cash/COD refund for a paid cash-on-delivery order. This is a manual financial write: it records the cash refund and accounting reversal but does not contact any payment provider. Verify the order and obtain explicit operator approval. Only one full refund is supported per order; partial refunds and provider-paid orders are rejected.","visibility":"public","input_schema":{"type":"object","properties":{"orderId":{"type":"string","description":"Order ID or reference number for the paid cash/COD order."}},"required":["orderId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_orders_per_day","name":"Get Orders Per Day","description":"Read daily order totals from the order reporting endpoint for sales-volume reporting.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_order_invoice","name":"Get Order Invoice","description":"Retrieve the invoice resource for an existing order ID; this does not issue a refund or record payment.","visibility":"public","input_schema":{"type":"object","properties":{"orderId":{"type":"string"}},"required":["orderId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_shipment_status","name":"Update Shipment Status","description":"Change the specified shipment's status within an order; this can affect fulfillment tracking and workflows.","visibility":"public","input_schema":{"type":"object","properties":{"orderId":{"type":"string"},"shipmentId":{"type":"string"},"status":{"type":"string"}},"required":["orderId","shipmentId","status"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_sendcloud_shipping_label","name":"Get Sendcloud Shipping Label","description":"Download the existing Sendcloud shipping label for a shipment ID. Requires a stored shipping_label_link; this does not create or purchase a label.","visibility":"public","input_schema":{"type":"object","properties":{"shipmentId":{"type":"string"}},"required":["shipmentId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_external_shipping_label","name":"Get External Shipping Label","description":"Request a shipment label from the configured shipping extension for an order and shipment. This sends order and shipment references to the extension; provider-dependent label generation or billing may occur.","visibility":"public","input_schema":{"type":"object","properties":{"orderId":{"type":"string"},"shipmentId":{"type":"string"}},"required":["orderId","shipmentId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_reports","name":"Get Reports","description":"Read the commerce dashboard report for the selected report type; this does not request a delivery export.","visibility":"public","input_schema":{"type":"object","properties":{"type":{"type":"string","default":"orders"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_dashboard_report","name":"Get Dashboard Report","description":"Read the commerce dashboard's aggregate business metrics for the connected workspace.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_order_counts","name":"Get Order Counts","description":"Read delivery order counts between date_start and date_end for operational reporting.","visibility":"public","input_schema":{"type":"object","properties":{"date_start":{"type":"string"},"date_end":{"type":"string"}},"required":["date_start","date_end"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_dashboard_counts","name":"Get Dashboard Counts","description":"Read delivery dashboard counts with optional date filters.","visibility":"public","input_schema":{"type":"object","properties":{"date_start":{"type":"string","description":"Start date (YYYY-MM-DD)"},"date_end":{"type":"string","description":"End date (YYYY-MM-DD)"}},"required":["date_start","date_end"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_my_analytics_project","name":"Get My Analytics Project","description":"Read the analytics project associated with the authenticated tenant when its project identity is needed for analytics queries.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_list_profiles","name":"List Social Profiles","description":"List social media profiles already connected to the authenticated Tradly workspace. This does not connect or disconnect social accounts.","visibility":"public","input_schema":{"type":"object","properties":{"platform":{"type":"string","enum":["instagram","youtube","facebook","tiktok","x"]}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_ig_get_analytics","name":"Get Instagram Analytics","description":"Read Instagram account and post analytics for connected profiles. Optionally filter by profileId and a date range using YYYY-MM-DD for from and to.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected Instagram profile ID. Omit to include all connected Instagram profiles."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_yt_get_analytics","name":"Get YouTube Analytics","description":"Read YouTube channel and video analytics for connected profiles. Optionally filter by profileId and a date range using YYYY-MM-DD for from and to.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected YouTube profile ID. Omit to include all connected YouTube profiles."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_fb_get_analytics","name":"Get Facebook Analytics","description":"Read Facebook Page and post analytics for connected profiles. Optionally filter by profileId and a date range using YYYY-MM-DD for from and to.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected Facebook Page profile ID. Omit to include all connected Facebook Pages."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_tt_get_analytics","name":"Get TikTok Analytics","description":"Read TikTok account and video analytics for connected profiles. Optionally filter by profileId and a date range using YYYY-MM-DD for from and to.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected TikTok profile ID. Omit to include all connected TikTok profiles."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_x_get_analytics","name":"Get X Analytics","description":"Read X account and post analytics for connected profiles. Optionally filter by profileId and a date range using YYYY-MM-DD for from and to.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected X profile ID. Omit to include all connected X profiles."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_ig_list_scheduled","name":"List Scheduled Instagram Posts","description":"List scheduled and published Instagram posts, optionally filtered by profile and date range.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Optional connected Instagram profile ID."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_yt_list_scheduled","name":"List Scheduled YouTube Posts","description":"List scheduled and published YouTube posts, optionally filtered by profile and date range.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Optional connected YouTube profile ID."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_fb_list_scheduled","name":"List Scheduled Facebook Posts","description":"List scheduled and published Facebook Page posts, optionally filtered by profile and date range.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Optional connected Facebook Page profile ID."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_tt_list_scheduled","name":"List Scheduled TikTok Posts","description":"List scheduled and published TikTok posts, optionally filtered by profile and date range.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Optional connected TikTok profile ID."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_x_list_scheduled","name":"List Scheduled X Posts","description":"List scheduled and published X posts, optionally filtered by profile and date range.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Optional connected X profile ID."},"from":{"type":"string","description":"Optional start date, YYYY-MM-DD."},"to":{"type":"string","description":"Optional end date, YYYY-MM-DD."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_tt_schedule_post","name":"Schedule TikTok Video","description":"Schedule a video for publication to the selected connected TikTok profile. The video must be publicly reachable over HTTPS. Include the TikTok privacy level and confirm creator posting consent. Optionally include a Tradly project ID to group it in the publishing calendar; omit it for General.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected TikTok profile ID that will publish the video."},"mediaUrl":{"type":"string","format":"uri","description":"HTTPS URL for a video TikTok can retrieve publicly."},"title":{"type":"string","description":"TikTok video title or caption, including hashtags if desired."},"projectId":{"type":"string","description":"Optional Tradly project ID (for example, the ERP project UUID). Omit it for General."},"scheduledAt":{"type":"string","format":"date-time","description":"ISO-8601 publication time including timezone."},"privacyLevel":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","FOLLOWER_OF_CREATOR","SELF_ONLY"],"description":"Privacy level supported by the connected creator account."},"allowComment":{"type":"boolean","description":"Whether viewers may comment, if enabled for the creator account."},"allowDuet":{"type":"boolean","description":"Whether viewers may duet, if enabled for the creator account."},"allowStitch":{"type":"boolean","description":"Whether viewers may stitch, if enabled for the creator account."},"isBrandedContent":{"type":"boolean","description":"Whether the post contains branded content."},"isPromotingBusiness":{"type":"boolean","description":"Whether the post promotes the creator's own business."},"isAigc":{"type":"boolean","description":"Whether the video contains AI-generated content."},"consent":{"type":"boolean","description":"Confirm the creator has reviewed and agrees to send this video and its post details to TikTok."}},"required":["profileId","mediaUrl","title","scheduledAt","privacyLevel","consent"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"social_x_schedule_post","name":"Schedule X Post","description":"Schedule a post for publication to the selected connected X profile. Media is optional; any supplied media must be a publicly reachable HTTPS URL. Optionally include a Tradly project ID to group it in the publishing calendar; omit it for General.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected X profile ID that will publish the post."},"text":{"type":"string","description":"Exact post text to publish."},"mediaUrl":{"type":"string","format":"uri","description":"Optional HTTPS URL for media X can retrieve publicly."},"projectId":{"type":"string","description":"Optional Tradly project ID (for example, the ERP project UUID). Omit it for General."},"scheduledAt":{"type":"string","format":"date-time","description":"ISO-8601 publication time including timezone."}},"required":["profileId","text","scheduledAt"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"sc_connect","name":"Search Console Connect","description":"Create a one-time Google OAuth link for the authenticated user to connect Google Search Console. The user must open the link and approve access; tokens are stored only by Search Insight.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_get_connections","name":"Search Console Get connections","description":"Read the authenticated workspace's Google Search Console connection status; this does not start a connection.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_list_sites","name":"Search Console List sites","description":"List Google Search Console properties accessible through the authenticated user's existing Google connection.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_list_projects","name":"Search Console List projects","description":"List analytics projects authorized for the connected Tradly account for Search Console mapping.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_list_mappings","name":"Search Console List mappings","description":"List saved mappings between Google Search Console properties and analytics projects.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_map_property","name":"Search Console Map property","description":"Save a Google Search Console property-to-project mapping. This may replace the existing mapping configuration.","visibility":"public","input_schema":{"type":"object","properties":{"site_url":{"type":"string"},"project_key":{"type":"string"}},"required":["site_url","project_key"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"sc_unmap_property","name":"Search Console Unmap property","description":"Delete a saved Google Search Console property-to-project mapping; this does not delete the Google property.","visibility":"public","input_schema":{"type":"object","properties":{"site_url":{"type":"string"},"project_key":{"type":"string"}},"required":["site_url","project_key"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"sc_sync","name":"Search Console Sync","description":"Start synchronization of connected Google Search Console keyword and geography data into Search Insight. This writes synchronized data and can update existing rows.","visibility":"public","input_schema":{"type":"object","properties":{"site_url":{"type":"string","description":"Search Console property URL; use this or project_key."},"project_key":{"type":"string","description":"Analytics project key; use this or site_url."},"start_date":{"type":"string","description":"Start date (YYYY-MM-DD)."},"end_date":{"type":"string","description":"End date (YYYY-MM-DD)."}},"required":["start_date","end_date"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"sc_submit_sitemaps","name":"Search Console Submit sitemaps","description":"Submit publicly verified sitemaps for mapped Google Search Console properties. Optionally limit the submission to one authorized Analytics project; properties that already have a sitemap or fail verification are reported without stopping the other properties.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string","description":"Optional Analytics project key. Omit to process all mapped properties in the workspace."}}},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_inspect_url","name":"Search Console Inspect URL","description":"Inspect one URL with Google's Search Console URL Inspection API. This reports indexing and crawl status; Google does not provide a general request-indexing endpoint for arbitrary URLs through this API.","visibility":"public","input_schema":{"type":"object","properties":{"site_url":{"type":"string","description":"Search Console property URL or domain property that owns the URL."},"inspection_url":{"type":"string","description":"Public URL to inspect."}},"required":["site_url","inspection_url"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_list_keywords","name":"Search Console List keywords","description":"List synchronized Google Search Console keyword performance rows, optionally filtered by source.","visibility":"public","input_schema":{"type":"object","properties":{"source":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_list_keyword_demand","name":"Search Console List keyword demand","description":"Read stored keyword demand rows; this does not fetch new demand data or start synchronization.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_get_geo_insights","name":"Search Console Get geo insights","description":"Read geographic Search Console performance and opportunity gaps with optional country and result limits.","visibility":"public","input_schema":{"type":"object","properties":{"min_impressions":{"type":"number","default":100},"country_limit":{"type":"number","default":10},"gap_limit":{"type":"number","default":15}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_list_opportunity_tasks","name":"Search Console List opportunity tasks","description":"List stored keyword opportunity tasks in Search Insight; this does not create or execute tasks.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_list_recommendations","name":"Search Console List recommendations","description":"Read stored Search Insight recommendations for the connected workspace.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_get_latest_execution","name":"Search Console Get latest execution","description":"Read the latest Search Insight synchronization execution status; this does not run synchronization.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"sc_get_daily_digest","name":"Search Console Get daily digest","description":"Read the most recent stored Search Insight daily digest; this does not generate or send a digest.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_summary","name":"Get Analytics Summary","description":"Read the analytics summary for the selected project and time window, including the metrics available from the analytics query API.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_engagement","name":"Get Analytics Engagement","description":"Fetch engagement metrics including sessions, bounce behavior, scroll depth, and session duration.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_issues","name":"Get Analytics Issues","description":"Fetch client-side JavaScript errors, failed requests, resource failures, and form errors.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":25}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_page_performance","name":"Get Analytics Page Performance","description":"Fetch performance and conversion metrics for one page path.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"page_path":{"type":"string"},"window":{"type":"string","default":"7d"}},"required":["project_key","page_path"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_page_heatmap","name":"Get Analytics Page Heatmap","description":"Fetch click coordinates for one page path so an agent can identify click hotspots.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"page_path":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":500}},"required":["project_key","page_path"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_ai_sources","name":"Get Analytics AI Sources","description":"Show traffic referred by AI assistants and crawlers, including source and page metrics.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":20}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_usage","name":"Get Analytics Usage","description":"Fetch billable analytics event and recommendation usage for a month.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"period":{"type":"string","enum":["current_month","last_month","all"],"default":"current_month"}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_recommendation_outcomes","name":"Get Analytics Recommendation Outcomes","description":"Fetch recommendation impressions, clicks, and conversion outcomes, optionally for one user.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"30d"},"user_id":{"type":"string"},"limit":{"type":"number","default":100}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_feature_usage","name":"Get Analytics Feature Usage","description":"Fetch usage metrics for named feature labels created from observed events.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"30d"},"limit":{"type":"number","default":50}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_analytics_event_labels","name":"List Analytics Event Labels","description":"List friendly feature labels configured for observed analytics events.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_analytics_event_label","name":"Create Analytics Event Label","description":"Create a friendly feature label mapped to an observed event name.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"label":{"type":"string"},"event_name":{"type":"string"}},"required":["project_key","label","event_name"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"delete_analytics_event_label","name":"Delete Analytics Event Label","description":"Delete a friendly feature label mapping.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"label":{"type":"string"},"event_name":{"type":"string"}},"required":["project_key","label","event_name"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_store_performance","name":"Get store analytics summary","description":"Read the analytics summary for a project and time window. This is a compatibility alias of get_analytics_summary.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_top_pages","name":"Get Analytics Top Pages","description":"Rank tracked pages by analytics activity within the selected project and time window.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_top_categories","name":"Get Analytics Top Categories","description":"Rank tracked content categories by analytics activity within the selected project and time window.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_top_clicks","name":"Get Analytics Top Clicks","description":"Read the most-clicked tracked elements for the selected project and time window.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_problem_pages","name":"Get Analytics Problem Pages","description":"Read pages flagged by analytics as potential problems within the selected time window.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_conversion_paths","name":"Get Analytics Conversion Paths","description":"Read tracked session paths leading to conversion for the selected project and time window.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"send_analytics_report","name":"Send Analytics Report","description":"Trigger a manual analytics report email for a project.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"}},"required":["project_key"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_analytics_breakdown","name":"Get Analytics Breakdown","description":"Break down analytics by a dimension such as utm_source, utm_medium, utm_campaign, geo_country, page_path, category, or device_type.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"dimension":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key","dimension"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_attribution","name":"Get Analytics Attribution","description":"Show which UTM source, medium, or campaign is credited for conversion sessions.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"dimension":{"type":"string","default":"utm_source"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":10}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_funnel","name":"Get Analytics Funnel","description":"Calculate a session funnel from an ordered list of tracked event steps. Use __page_view__, __click__, or __goal__ for built-in steps.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"events":{"type":"array","items":{"type":"string"}}},"required":["name","events"]}}},"required":["project_key","steps"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_forms","name":"Get Analytics Forms","description":"Show detected forms, starts, submissions, conversion rate, and abandonment rate. Use form_submit:{form_id} to select a specific form as a goal.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":20}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_bot_traffic","name":"Get Analytics Bot Traffic","description":"Show detected bots and their excluded page views and sessions for a project.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"window":{"type":"string","default":"7d"},"limit":{"type":"number","default":20}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_analytics_events","name":"List Analytics Events","description":"List event names observed for a project. Each detected form submit is named form_submit:{form_id}, so separate forms can be selected as separate goals.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"limit":{"type":"number","default":50}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_analytics_goals","name":"List Analytics Goals","description":"List the conversion event names configured as goals for a project.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"configure_analytics_goal","name":"Configure Analytics Goal","description":"Configure an observed event as a conversion goal. Select an individual form with event_name form_submit:{form_id} from get_analytics_forms or list_analytics_events.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string","description":"Optional; always resolved to the authenticated tenant."},"event_name":{"type":"string"}},"required":["event_name"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_analytics_customers","name":"List Analytics Customers","description":"List anonymous or identified customer memory profiles ranked by commerce activity.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"limit":{"type":"number","default":25}},"required":["project_key"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_customer_memory","name":"Get Analytics Customer Memory","description":"Get a customer's aggregated listing views, cart, checkout, purchase, category, and listing affinity.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"user_id":{"type":"string"}},"required":["project_key","user_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_customer_activity","name":"Get Analytics Customer Activity","description":"Get the recent sanitized commerce activity for one customer.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"user_id":{"type":"string"}},"required":["project_key","user_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_analytics_recommendations","name":"Get Analytics Recommendations","description":"Get explainable product recommendations for one customer from their tracked commerce activity.","visibility":"public","input_schema":{"type":"object","properties":{"project_key":{"type":"string"},"user_id":{"type":"string"},"limit":{"type":"number","default":6}},"required":["project_key","user_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_countries","name":"Get Countries","description":"List the country reference records supported by the commerce API.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_currencies","name":"Get Currencies","description":"List currency definitions available to the connected commerce workspace.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_currency_details","name":"Get Currency Details","description":"Read one currency definition by currency ID.","visibility":"public","input_schema":{"type":"object","properties":{"currencyId":{"type":"string"}},"required":["currencyId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_currency","name":"Create Currency","description":"Create a currency definition using the supplied currency object.","visibility":"public","input_schema":{"type":"object","properties":{"currency":{"type":"object"}},"required":["currency"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_currency","name":"Update Currency","description":"Update an existing currency definition by ID; current configuration can be overwritten.","visibility":"public","input_schema":{"type":"object","properties":{"currencyId":{"type":"string"},"currency":{"type":"object"}},"required":["currencyId","currency"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_languages","name":"Get Languages","description":"List language reference records supported by the platform.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_tenant_languages","name":"Get Tenant Languages","description":"List languages configured for the authenticated tenant.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"add_tenant_language","name":"Add Tenant Language","description":"Add a language configuration to the authenticated tenant using the supplied language object.","visibility":"public","input_schema":{"type":"object","properties":{"language":{"type":"object"}},"required":["language"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_tenant_language","name":"Update Tenant Language","description":"Update an existing tenant language configuration by its tenant-language ID.","visibility":"public","input_schema":{"type":"object","properties":{"tenantLanguageId":{"type":"string"},"language":{"type":"object"}},"required":["tenantLanguageId","language"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_signed_upload_url","name":"Issue signed upload URL","description":"Issue time-limited signed PUT URLs for new files. The backend generates unique tenant/user-scoped object keys; this does not upload files or accept an existing object key to overwrite.","visibility":"public","input_schema":{"type":"object","properties":{"payload":{"type":"object"}}},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_taxes","name":"Get Taxes","description":"List configured tax definitions for the connected workspace.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_tax_details","name":"Get Tax Details","description":"Read one configured tax definition by tax ID.","visibility":"public","input_schema":{"type":"object","properties":{"taxId":{"type":"string"}},"required":["taxId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_tenant_details","name":"Get Tenant Details","description":"Read the tenant's general configuration group for its available identity and settings fields; this does not return all configuration groups.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"market_analysis","name":"Search nearby businesses","description":"Search Google Places for existing businesses near a location, using either a natural-language prompt or structured location and category fields. Returns counts or lists of up to 20 nearby businesses; it does not estimate demand or profitability. Requests consume metered provider operations; resolving a location name also requires geocoding.","visibility":"public","input_schema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":2000,"description":"Natural-language question about counts or listings of nearby businesses. Example: How many grocery stores and pharmacies are within 2 km of Mimisal? The service extracts location, categories, and radius."},"location":{"type":"string","description":"Place, address, or locality to geocode internally. Provide this or both latitude and longitude."},"latitude":{"type":"number","minimum":-90,"maximum":90,"description":"Center latitude. Provide with longitude, or use location instead."},"longitude":{"type":"number","minimum":-180,"maximum":180,"description":"Center longitude. Provide with latitude, or use location instead."},"radius_meters":{"type":"integer","minimum":100,"maximum":10000,"description":"Search radius. For prompt requests, overrides the radius stated in the prompt."},"category":{"type":"string","enum":["retail","grocery","clothing","pharmacy","restaurant"],"description":"One business category. Use either this or categories."},"categories":{"type":"array","minItems":1,"maxItems":5,"uniqueItems":true,"items":{"type":"string","enum":["retail","grocery","clothing","pharmacy","restaurant"]},"description":"Several business categories to search together. Use either this or category."},"language_code":{"type":"string"}}},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"activate_maps_provider","name":"Activate Maps Provider","description":"Save Google as the tenant's maps provider. This changes maps.provider and requires market_research:write; it does not perform a business search.","visibility":"public","input_schema":{"type":"object","properties":{"provider":{"type":"string","enum":["google"],"default":"google"}}},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_coupons","name":"Get Coupons","description":"List configured coupons with the supplied filters and pagination.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_coupon","name":"Create Coupon","description":"Create a coupon from the supplied coupon fields, enabling the configured discount under the API's activation rules.","visibility":"public","input_schema":{"type":"object","properties":{"coupon":{"type":"object","properties":{"reference_name":{"type":"string"},"code":{"type":"string"},"note":{"type":"string"},"coupon_type":{"type":"string","default":"direct_discount"},"discount_type":{"type":"string"},"discount_value":{"type":"string"},"min_amount":{"type":"string"},"max_amount":{"type":"string"},"max_discount":{"type":"string"},"max_uses":{"type":"string"},"max_uses_user":{"type":"string"},"new_user":{"type":"boolean"},"start_at":{"type":"string"},"end_at":{"type":"string"},"short_code":{"type":"string"},"active":{"type":"boolean"}}}},"required":["coupon"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_coupon","name":"Update Coupon","description":"Change an existing coupon by ID; supplied fields can alter its discount or availability.","visibility":"public","input_schema":{"type":"object","properties":{"couponId":{"type":"string"},"coupon":{"type":"object"}},"required":["couponId","coupon"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_coupon","name":"Delete Coupon","description":"Delete an existing coupon by ID, removing its availability for subsequent use.","visibility":"public","input_schema":{"type":"object","properties":{"couponId":{"type":"string"}},"required":["couponId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_collections","name":"Get Collections","description":"List catalog collections with the supplied filters and pagination.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number"},"per_page":{"type":"number"},"scope_type":{"type":"number"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_collection_details","name":"Get Collection Details","description":"Read one catalog collection by collection ID.","visibility":"public","input_schema":{"type":"object","properties":{"collectionId":{"type":"string"}},"required":["collectionId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_collection_by_slug","name":"Get Collection By Slug","description":"Read one catalog collection using its URL slug.","visibility":"public","input_schema":{"type":"object","properties":{"slug":{"type":"string"}},"required":["slug"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_collection","name":"Create Collection","description":"Create a catalog collection from the supplied collection object.","visibility":"public","input_schema":{"type":"object","properties":{"collection":{"type":"object","properties":{"title":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"images":{"type":"array","items":{"type":"string"}},"scope_type":{"type":"number"},"condition_type":{"type":"number"},"manual_ids":{"type":"array","items":{"type":"number"}},"conditions":{"type":"object"},"medium":{"type":"array","items":{"type":"number"}},"expirable":{"type":"boolean"},"start_at":{"type":"string"},"end_at":{"type":"string"},"active":{"type":"boolean"},"view_type":{"type":"string"},"background_color":{"type":"string"},"background_image":{"type":"string"},"order_by":{"type":"number"}}}},"required":["collection"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_collection","name":"Update Collection","description":"Update a catalog collection by ID; its supplied configuration fields can be overwritten.","visibility":"public","input_schema":{"type":"object","properties":{"collectionId":{"type":"string"},"collection":{"type":"object"}},"required":["collectionId","collection"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_collection","name":"Delete Collection","description":"Delete a catalog collection by ID. This removes the collection record rather than its underlying listings.","visibility":"public","input_schema":{"type":"object","properties":{"collectionId":{"type":"string"}},"required":["collectionId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_payment_methods","name":"Get Payment Methods","description":"List payment methods configured for the authenticated tenant.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_available_payment_methods","name":"Get Available Payment Methods","description":"List payment-method options supported by the platform before configuring a tenant payment method.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_payment_method","name":"Create Payment Method","description":"Add a tenant payment-method configuration from the supplied payment_method object; this does not charge a customer.","visibility":"public","input_schema":{"type":"object","properties":{"payment_method":{"type":"object"}},"required":["payment_method"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_payment_method","name":"Update Payment Method","description":"Update a tenant payment-method configuration by ID; this does not charge or refund an order.","visibility":"public","input_schema":{"type":"object","properties":{"paymentMethodId":{"type":"string"},"payment_method":{"type":"object"}},"required":["paymentMethodId","payment_method"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_payment_method","name":"Delete Payment Method","description":"Remove a tenant payment-method configuration by ID, changing the payment options available to customers.","visibility":"public","input_schema":{"type":"object","properties":{"paymentMethodId":{"type":"string"}},"required":["paymentMethodId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_shipping_methods","name":"Get Shipping Methods","description":"List shipping methods configured for the authenticated tenant.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_available_shipping_methods","name":"Get Available Shipping Methods","description":"List supported shipping-method options before configuring tenant shipping.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_shipping_method","name":"Create Shipping Method","description":"Add a tenant shipping-method configuration from the supplied shipping_method object.","visibility":"public","input_schema":{"type":"object","properties":{"shipping_method":{"type":"object"}},"required":["shipping_method"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_shipping_method","name":"Update Shipping Method","description":"Update an existing tenant shipping-method configuration by ID.","visibility":"public","input_schema":{"type":"object","properties":{"shippingMethodId":{"type":"string"},"shipping_method":{"type":"object"}},"required":["shippingMethodId","shipping_method"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_shipping_method","name":"Delete Shipping Method","description":"Remove a tenant shipping-method configuration by ID, changing available delivery options.","visibility":"public","input_schema":{"type":"object","properties":{"shippingMethodId":{"type":"string"}},"required":["shippingMethodId"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_extensions","name":"Get Extensions","description":"List extension records exposed by the connected commerce API; this does not install or activate extensions.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_layer_details","name":"Get Layer Details","description":"Read one content layer's stored details by layer ID.","visibility":"public","input_schema":{"type":"object","properties":{"layerId":{"type":"string"}},"required":["layerId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_listing_schedules","name":"List Listing Schedules","description":"List the schedules configured for a listing ID; this does not reserve a slot.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"}},"required":["listingId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_digital_contents","name":"List Digital Contents","description":"List digital-content records attached to a listing ID.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"}},"required":["listingId"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_digital_content","name":"Create Digital Content","description":"Create a digital-content record attached to a listing; this can make content available under the listing's access rules.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"},"digital_content":{"type":"object"}},"required":["listingId","digital_content"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"update_digital_content","name":"Update Digital Content","description":"Update a digital-content record attached to a listing by its content ID.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"},"digitalContentId":{"type":"string"},"digital_content":{"type":"object"}},"required":["listingId","digitalContentId","digital_content"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_digital_content","name":"Delete Digital Content","description":"Delete a digital-content record from a listing, removing that record's availability.","visibility":"public","input_schema":{"type":"object","properties":{"listingId":{"type":"string"},"digitalContentId":{"type":"string"}},"required":["listingId","digitalContentId"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_audiences","name":"List Audiences","description":"List saved marketing audiences.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number","default":1,"examples":[1]},"per_page":{"type":"number","default":20,"examples":[20]},"audience_type":{"type":"string","enum":["user","account"]},"sort":{"type":"string","enum":["newest_first","oldest_first","name_asc","name_desc"]}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_audience","name":"Get Audience","description":"Get a saved audience and its filter rules.","visibility":"public","input_schema":{"type":"object","properties":{"audience_id":{"type":"number","description":"Saved audience ID, for example 42.","examples":[42]}},"required":["audience_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_audience","name":"Create Audience","description":"Create a saved user or account audience. The audience object requires name, audience_type, and filters. Example: {\"name\":\"VIP users\",\"audience_type\":\"user\",\"filters\":[{\"dimension\":\"user_type\",\"operator\":\"equals\",\"value\":\"customer\"}]}.","visibility":"public","input_schema":{"type":"object","properties":{"audience":{"type":"object","description":"Audience name, audience_type (user/account), and filter rules.","examples":[{"name":"VIP users","audience_type":"user","filters":[{"dimension":"user_type","operator":"equals","value":"customer"}]}]}},"required":["audience"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_audience","name":"Update Audience","description":"Update a saved audience's name, type, description, or filter rules.","visibility":"public","input_schema":{"type":"object","properties":{"audience_id":{"type":"number","examples":[42]},"audience":{"type":"object","examples":[{"description":"Customers who opened the last campaign","filters":[{"dimension":"attribute","operator":"equals","attribute_id":7,"value":"engaged"}]}]}},"required":["audience_id","audience"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_audience","name":"Delete Audience","description":"Permanently delete a saved audience.","visibility":"public","input_schema":{"type":"object","properties":{"audience_id":{"type":"number","examples":[42]}},"required":["audience_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_audience_members","name":"List Audience Members","description":"List the members currently resolved for a saved audience.","visibility":"public","input_schema":{"type":"object","properties":{"audience_id":{"type":"number","examples":[42]},"page":{"type":"number","default":1},"per_page":{"type":"number","default":20}},"required":["audience_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"recalculate_audience","name":"Recalculate Audience","description":"Recompute a saved audience's membership from its filters; existing audience membership may be replaced.","visibility":"public","input_schema":{"type":"object","properties":{"audience_id":{"type":"number","examples":[42]}},"required":["audience_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_campaigns","name":"List Campaigns","description":"List marketing campaigns and their status.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number","default":1},"per_page":{"type":"number","default":20},"sort":{"type":"string","enum":["newest_first","oldest_first"]}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_campaign","name":"Get Campaign","description":"Get a campaign's delivery, audience, and content configuration.","visibility":"public","input_schema":{"type":"object","properties":{"campaign_id":{"type":"number","description":"Campaign ID, for example 123.","examples":[123]}},"required":["campaign_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_campaign","name":"Create Campaign","description":"Create a draft, scheduled, or immediate email, SMS, WhatsApp, or push campaign. The campaign object requires name, channel, audience_type, audience_config, schedule_type, and content. Email content uses html/text and subject; SMS content uses message; WhatsApp content must use an approved Meta template with template_name, optional template_language, and optional components or body_parameters. Phone campaigns use audience_config.phones or a list containing phone_number members. Example WhatsApp content: {\"template_name\":\"monthly_offer\",\"template_language\":\"en_US\",\"body_parameters\":[\"Jane\",\"20%\"]}.","visibility":"public","input_schema":{"type":"object","properties":{"campaign":{"type":"object","description":"Campaign configuration. channel is email, sms, whatsapp, or push; schedule_type is immediate or scheduled. WhatsApp requires an approved Meta template: content.template_name plus optional template_language and components/body_parameters.","examples":[{"name":"Welcome series","channel":"email","audience_type":"audience_ids","audience_config":{"audience_ids":[42]},"schedule_type":"immediate","subject":"Welcome","content":{"html":"<p>Hello</p>"}},{"name":"Monthly offer","channel":"whatsapp","audience_type":"custom","audience_config":{"phones":["+14155550123"]},"schedule_type":"immediate","content":{"template_name":"monthly_offer","template_language":"en_US","body_parameters":["Jane","20%"]}}]}},"required":["campaign"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"update_campaign","name":"Update Campaign","description":"Update an existing campaign before sending it.","visibility":"public","input_schema":{"type":"object","properties":{"campaign_id":{"type":"number","examples":[123]},"campaign":{"type":"object","examples":[{"subject":"Updated subject","content":{"html":"<p>Updated message</p>"}}]}},"required":["campaign_id","campaign"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"send_campaign","name":"Send Campaign","description":"Send or schedule a configured campaign. This triggers delivery to its configured audience.","visibility":"public","input_schema":{"type":"object","properties":{"campaign_id":{"type":"number","examples":[123]}},"required":["campaign_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"cancel_campaign","name":"Cancel Campaign","description":"Cancel a scheduled or in-progress campaign.","visibility":"public","input_schema":{"type":"object","properties":{"campaign_id":{"type":"number","examples":[123]}},"required":["campaign_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_campaign_recipients","name":"List Campaign Recipients","description":"List campaign recipients and their delivery state.","visibility":"public","input_schema":{"type":"object","properties":{"campaign_id":{"type":"number","examples":[123]},"page":{"type":"number","default":1},"per_page":{"type":"number","default":20}},"required":["campaign_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_campaign_analytics","name":"Get Campaign Analytics","description":"Get delivery, open, click, and rate metrics for one marketing campaign.","visibility":"public","input_schema":{"type":"object","properties":{"campaign_id":{"type":"number","description":"Campaign ID, for example 123.","examples":[123]}},"required":["campaign_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_email_types","name":"List Email Types","description":"List email types available to the authenticated marketing tenant.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_email_analytics","name":"Get Email Analytics","description":"Get aggregate sent, delivered, opened, clicked, open-rate, and click-rate metrics for an email type. Rates are returned by the API as percentages; use sent/delivered/opened/clicked for the underlying counts.","visibility":"public","input_schema":{"type":"object","properties":{"email_type":{"type":"string","description":"Exact email type returned by list_email_types, for example welcome_email.","examples":["welcome_email"]}},"required":["email_type"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_workflows","name":"List Workflows","description":"List marketing automation workflows. Results include workflow name, active status, trigger event, and actions.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number","default":1},"limit":{"type":"number","default":100}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_workflow","name":"Get Workflow","description":"Get one marketing automation workflow, including its trigger and configured actions.","visibility":"public","input_schema":{"type":"object","properties":{"workflow_id":{"type":"string","examples":["wf_123"]}},"required":["workflow_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_forms","name":"List Forms","description":"List Tradly Forms with optional status and search filters. Each result includes its ID, title, status, slug, fields, and submission count.","visibility":"public","input_schema":{"type":"object","properties":{"page":{"type":"number","default":1},"per_page":{"type":"number","default":20},"status":{"type":"string","enum":["draft","active","inactive"]},"search_key":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_form","name":"Get Form","description":"Get a Tradly Form by numeric ID or slug, including its fields and metadata. Example form_id: 12 or feedback-form.","visibility":"public","input_schema":{"type":"object","properties":{"form_id":{"type":"string","examples":[12,"feedback-form"]}},"required":["form_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_form","name":"Create Form","description":"Create a Tradly Form with a title, description, status, optional slug and metadata, and attached form fields. The form object may include attributes as attribute IDs or objects with attribute_id, required, order_by, and metadata.","visibility":"public","input_schema":{"type":"object","properties":{"form":{"type":"object","description":"Form configuration. Include title; optionally include description, status (draft, active, or inactive), slug, metadata, and attributes.","examples":[{"title":"Customer feedback","description":"Tell us about your experience.","status":"active","slug":"customer-feedback","attributes":[{"attribute_id":12,"required":true,"order_by":1}]}]}},"required":["form"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_form","name":"Update Form","description":"Update an existing Tradly Form's title, description, status, slug, metadata, or attached fields.","visibility":"public","input_schema":{"type":"object","properties":{"form_id":{"type":"string","examples":[12,"customer-feedback"]},"form":{"type":"object","description":"Form fields to update. Include only the fields that should change; attributes may be attribute IDs or objects with attribute_id, required, order_by, and metadata.","examples":[{"title":"Updated customer feedback","status":"inactive"}]}},"required":["form_id","form"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"delete_form","name":"Delete Form","description":"Delete or archive a Tradly Form by ID or slug. Confirm the exact form before removing it because its public form and submission access may be affected.","visibility":"public","input_schema":{"type":"object","properties":{"form_id":{"type":"string","examples":[12,"customer-feedback"]}},"required":["form_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_form_submissions","name":"List Form Submissions","description":"List responses submitted to a Tradly Form. Each response includes submission_ref, submitter, timestamps, metadata, and attribute values.","visibility":"public","input_schema":{"type":"object","properties":{"form_id":{"type":"string","examples":[12]},"page":{"type":"number","default":1},"per_page":{"type":"number","default":20},"user_id":{"type":"number"}},"required":["form_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_form_submission","name":"Get Form Submission","description":"Get one Tradly Form response with its submitted values and metadata. Example submission_id: 987.","visibility":"public","input_schema":{"type":"object","properties":{"submission_id":{"type":"string","examples":[987]}},"required":["submission_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_agents","name":"List Agents","description":"List AI agents, optionally filtering by status or search key.","visibility":"public","input_schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","inactive"]},"search_key":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_agent","name":"Get Agent","description":"Get an AI agent, its versions, and current configuration.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"}},"required":["agent_ref"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_agent","name":"Create Agent","description":"Create an AI agent. The agent object can include reference_name, status, initial_version, and metadata.","visibility":"public","input_schema":{"type":"object","properties":{"agent":{"type":"object"}},"required":["agent"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_agent","name":"Update Agent","description":"Update an AI agent's reference name or active status.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"agent":{"type":"object"}},"required":["agent_ref","agent"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"create_agent_version","name":"Create Agent Version","description":"Create a new version of an AI agent configuration.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"version":{"type":"object","description":"Version fields include label, core_prompt, persona, user_prompts, enabled_tools, and set_as_default."}},"required":["agent_ref","version"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"set_default_agent_version","name":"Set Default Agent Version","description":"Change an AI agent's default version to an existing version ID; subsequent agent runs may use the new configuration.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"version_id":{"type":"number"}},"required":["agent_ref","version_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_agent_knowledge","name":"List Agent Knowledge","description":"List an AI agent's URL, text, and file knowledge sources.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"}},"required":["agent_ref"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"add_agent_knowledge_url","name":"Add Agent Knowledge URL","description":"Register a URL as an AI agent knowledge source. The service may retrieve the supplied external URL for ingestion; source requires url and title.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"source":{"type":"object"}},"required":["agent_ref","source"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"add_agent_knowledge_text","name":"Add Agent Knowledge Text","description":"Add supplied text as an AI agent knowledge source; source requires text and title. This stores knowledge for subsequent agent use.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"source":{"type":"object"}},"required":["agent_ref","source"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"add_agent_knowledge_file","name":"Add Agent Knowledge File","description":"Attach an already-uploaded file as an AI agent knowledge source; source requires object_key and title. This does not upload a new file.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"source":{"type":"object"}},"required":["agent_ref","source"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"set_agent_knowledge_status","name":"Set Agent Knowledge Status","description":"Activate or deactivate an AI agent's knowledge source by ID, changing whether it is available to the agent.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"knowledge_source_id":{"type":"number"},"status":{"type":"string","enum":["active","inactive"]}},"required":["agent_ref","knowledge_source_id","status"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_agent_knowledge","name":"Delete Agent Knowledge","description":"Remove a knowledge source from an AI agent by its knowledge-source ID.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"knowledge_source_id":{"type":"number"}},"required":["agent_ref","knowledge_source_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_agents_analytics_overview","name":"Get Agents Analytics Overview","description":"Get aggregate AI agent analytics for a date range.","visibility":"public","input_schema":{"type":"object","properties":{"start_date":{"type":"string","description":"ISO date, YYYY-MM-DD"},"end_date":{"type":"string","description":"ISO date, YYYY-MM-DD"}},"required":["start_date","end_date"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_agent_analytics_overview","name":"Get Agent Analytics Overview","description":"Get one AI agent's overview metrics for a date range.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"}},"required":["agent_ref","start_date","end_date"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_agent_analytics_conversations","name":"Get Agent Analytics Conversations","description":"Get one AI agent's conversation trend for a date range.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"}},"required":["agent_ref","start_date","end_date"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_agent_analytics_users","name":"Get Agent Analytics Users","description":"Get one AI agent's active, new, and returning users for a date range.","visibility":"public","input_schema":{"type":"object","properties":{"agent_ref":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"}},"required":["agent_ref","start_date","end_date"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"send_email","name":"Send Email","description":"Send an HTML email to the supplied recipient addresses using a sender authorized for the connected tenant. Delivery cannot be undone; obtain approval before sending.","visibility":"public","input_schema":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string","description":"HTML email body"},"email":{"type":"array","items":{"type":"string"},"description":"Array of recipient email addresses"},"email_type":{"type":"string","description":"Tenant-defined email campaign or message-type identifier"},"from_email":{"type":"string","description":"Optional sender address authorized for the connected tenant"}},"required":["subject","body","email","email_type"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_sent_emails","name":"Get Sent Emails","description":"Read sent-email history with optional email-type and pagination filters; this does not send another email.","visibility":"public","input_schema":{"type":"object","properties":{"email_type":{"type":"string","description":"Filter by the tenant-defined email campaign or message type"},"email_to":{"type":"string","description":"Filter by specific recipient address"},"page":{"type":"number","default":1},"per_page":{"type":"number","default":100,"description":"Results per page, default 100"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_bundle_items","name":"List Bundle Items","description":"List the component listings and calculated savings for a bundle listing. listing_id must refer to a listing whose type is bundle.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Bundle listing ID."}},"required":["listing_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"add_bundle_item","name":"Add Bundle Item","description":"Add a fixed component listing to a bundle. quantity is the number of component units included per bundle; the component cannot be another bundle.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Bundle listing ID."},"component_listing_id":{"type":"number","description":"Listing ID to include in the bundle."},"quantity":{"type":"number","description":"Positive component quantity per bundle."},"order_by":{"type":"number","description":"Optional non-negative display/order position."},"metadata":{"type":"object","description":"Optional tenant-defined component metadata."}},"required":["listing_id","component_listing_id","quantity"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_bundle_item","name":"Update Bundle Item","description":"Update a fixed bundle component's quantity, order position, or metadata.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Bundle listing ID."},"item_id":{"type":"number","description":"Bundle item ID returned by list_bundle_items."},"quantity":{"type":"number","description":"Positive component quantity per bundle."},"order_by":{"type":"number","description":"Optional non-negative display/order position."},"metadata":{"type":"object","description":"Optional replacement metadata."}},"required":["listing_id","item_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_bundle_item","name":"Delete Bundle Item","description":"Remove a fixed component from a bundle. This permanently removes the bundle item record.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Bundle listing ID."},"item_id":{"type":"number","description":"Bundle item ID."}},"required":["listing_id","item_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_bundle_stock","name":"Get Bundle Stock","description":"Check whether a bundle can be fulfilled for a requested quantity using current component stock.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Bundle listing ID."},"quantity":{"type":"number","default":1,"description":"Number of bundles requested; defaults to 1."}},"required":["listing_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_bundle_order_components","name":"Get Bundle Order Components","description":"Get the component pick list generated for a bundle order. Use the commerce order ID, not a bundle item ID.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Bundle listing ID."},"order_id":{"type":"number","description":"Commerce order ID."}},"required":["listing_id","order_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_bundle_pool_items","name":"List Bundle Pool Items","description":"List eligible component listings in a mix-and-match bundle pool, including the bundle's min/max selection metadata.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Mix-and-match bundle listing ID."}},"required":["listing_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"add_bundle_pool_item","name":"Add Bundle Pool Item","description":"Add a component listing to a mix-and-match bundle pool. The component cannot be another bundle.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Mix-and-match bundle listing ID."},"component_listing_id":{"type":"number","description":"Eligible component listing ID."},"order_by":{"type":"number","description":"Optional non-negative display/order position."}},"required":["listing_id","component_listing_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_bundle_pool_item","name":"Update Bundle Pool Item","description":"Change the display/order position of a mix-and-match pool item.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Mix-and-match bundle listing ID."},"item_id":{"type":"number","description":"Bundle pool item ID."},"order_by":{"type":"number","description":"Non-negative display/order position."}},"required":["listing_id","item_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_bundle_pool_item","name":"Delete Bundle Pool Item","description":"Remove a component listing from a mix-and-match bundle pool.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Mix-and-match bundle listing ID."},"item_id":{"type":"number","description":"Bundle pool item ID."}},"required":["listing_id","item_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"select_bundle_items","name":"Select Bundle Items","description":"Submit a buyer's mix-and-match selection. selected_listing_ids must contain eligible listings from the bundle pool; the selection is tied to the authenticated user and expires after the server-defined TTL.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Mix-and-match bundle listing ID."},"selected_listing_ids":{"type":"array","items":{"type":"number"},"description":"One or more eligible component listing IDs."},"quantity":{"type":"number","description":"Optional number of bundles selected."}},"required":["listing_id","selected_listing_ids"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_bundle_selection","name":"Get Bundle Selection","description":"Retrieve a mix-and-match selection. Non-admin callers can only retrieve their own selection.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Mix-and-match bundle listing ID."},"selection_id":{"type":"number","description":"Bundle selection ID."}},"required":["listing_id","selection_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_rental_settings","name":"List Rental Settings","description":"List the rental configuration rows that enable listings for rental checkout. A listing's type/order_type and inventory alone do not make it rentable; it must have a rental-settings row. Requires admin or rental-manager access.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_rental_settings","name":"Get Rental Settings","description":"Get the rental configuration for one listing. A 404 means the listing has not been enabled for rentals yet; create settings before checking availability or starting rental checkout.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Listing ID whose rental configuration should be read."}},"required":["listing_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_rental_settings","name":"Create Rental Settings","description":"Enable a listing for rentals by creating its rental configuration. This is required even when the listing is active, in stock, and marked with a rental type. Configure the rate, duration rules, booking buffer, deposit, and rentable capacity; then call check_rental_availability. Requires rental-manager access.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Existing listing ID to enable for rental checkout."},"rate_unit":{"type":"string","enum":["hour","day","week"],"description":"Billing unit for the rental rate."},"rate_amount":{"type":"number","description":"Price for one rate_unit, in the listing's currency."},"min_duration":{"type":"number","description":"Minimum rental duration in rate units; defaults to 1."},"max_duration":{"type":"number","description":"Optional maximum rental duration in rate units."},"buffer_time":{"type":"number","description":"Optional cleanup/turnaround buffer after checkout, in hours."},"deposit_amount":{"type":"number","description":"Optional refundable deposit amount recorded for the booking."},"max_units":{"type":"number","description":"Maximum units that can be booked simultaneously; defaults to 1."},"metadata":{"type":"object","description":"Optional tenant-defined rental metadata."}},"required":["listing_id","rate_unit","rate_amount"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_rental_settings","name":"Update Rental Settings","description":"Update the existing rental configuration for a listing. Only supplied fields change; this does not change the listing's product data or delete existing bookings. Requires rental-manager access.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Listing ID with an existing rental-settings row."},"rate_unit":{"type":"string","enum":["hour","day","week"],"description":"Billing unit for the rental rate."},"rate_amount":{"type":"number","description":"Price for one rate_unit."},"min_duration":{"type":"number","description":"Minimum rental duration in rate units."},"max_duration":{"type":"number","description":"Optional maximum rental duration in rate units."},"buffer_time":{"type":"number","description":"Turnaround buffer after checkout, in hours."},"deposit_amount":{"type":"number","description":"Refundable deposit amount recorded for the booking."},"max_units":{"type":"number","description":"Maximum simultaneously rentable units."},"metadata":{"type":"object"}},"required":["listing_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_rental_settings","name":"Delete Rental Settings","description":"Remove rental configuration from a listing. Existing booking records are not deleted; requires rental-manager access.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Rental listing ID."}},"required":["listing_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"check_rental_availability","name":"Check Rental Availability","description":"Read available units and calculate a rental quote for a listing and ISO-8601 start/end timestamps. This does not create or reserve a booking.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Rental listing ID."},"start_at":{"type":"string","description":"ISO-8601 rental start timestamp."},"end_at":{"type":"string","description":"ISO-8601 rental end timestamp."},"units":{"type":"number","default":1,"description":"Requested number of units."}},"required":["listing_id","start_at","end_at"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_rental_calendar","name":"Get Rental Calendar","description":"List overlapping rental bookings for a listing between ISO-8601 from/to timestamps. Cancelled bookings are excluded.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"Rental listing ID."},"from":{"type":"string","description":"ISO-8601 calendar range start."},"to":{"type":"string","description":"ISO-8601 calendar range end."}},"required":["listing_id","from","to"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_rental_bookings","name":"List Rental Bookings","description":"List rental bookings for the current tenant, optionally filtered by listing or status. Requires rental-manager access.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number"},"status":{"type":"string","description":"Optional booking status filter."},"page":{"type":"number","default":1},"per_page":{"type":"number","default":20}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_rental_booking","name":"Get Rental Booking","description":"Fetch one rental booking and its linked listing. Requires rental-manager access.","visibility":"public","input_schema":{"type":"object","properties":{"booking_id":{"type":"number","description":"Rental booking ID."}},"required":["booking_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"pickup_rental_booking","name":"Pickup Rental Booking","description":"Change a confirmed rental booking to picked-up/active. Supplied deposit_collected and condition_notes record pickup information; this changes booking state.","visibility":"public","input_schema":{"type":"object","properties":{"booking_id":{"type":"number","description":"Rental booking ID."},"deposit_collected":{"type":"boolean"},"condition_notes":{"type":"string"}},"required":["booking_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"return_rental_booking","name":"Return Rental Booking","description":"Complete an active rental booking as returned. Supplied deposit_returned, damage_charge, and condition_notes record return information; this changes booking and deposit/damage accounting fields.","visibility":"public","input_schema":{"type":"object","properties":{"booking_id":{"type":"number","description":"Rental booking ID."},"deposit_returned":{"type":"boolean"},"damage_charge":{"type":"number"},"condition_notes":{"type":"string"}},"required":["booking_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"cancel_rental_booking","name":"Cancel Rental Booking","description":"Cancel an active or confirmed rental booking and release its reserved availability. Completed/cancelled bookings cannot be cancelled; requires rental-manager access.","visibility":"public","input_schema":{"type":"object","properties":{"booking_id":{"type":"number","description":"Rental booking ID."}},"required":["booking_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"create_membership","name":"Create Membership","description":"Create a membership for a membership listing and user.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number","description":"ID of a listing whose type is membership."},"user_id":{"type":"number","description":"Tradly user ID receiving the membership."},"membership_id":{"type":"string","description":"Tenant-defined membership identifier, unique for the listing."},"status":{"type":"string","enum":["active","expired","cancelled"],"default":"active"},"joined_at":{"type":"string","description":"Optional ISO-8601 join timestamp."},"start_date":{"type":"string","description":"Optional membership start date."},"end_date":{"type":"string","description":"Optional membership end date."},"duration_months":{"type":"number","description":"Optional membership duration in months."},"currency_id":{"type":"number","description":"Optional currency ID; defaults from the listing."},"metadata":{"type":"object","description":"Optional tenant-defined membership metadata."}},"required":["listing_id","user_id","membership_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_memberships","name":"List Memberships","description":"List memberships for the current tenant, optionally filtered by listing, member, user, or status.","visibility":"public","input_schema":{"type":"object","properties":{"listing_id":{"type":"number"},"membership_id":{"type":"string"},"user_id":{"type":"number"},"status":{"type":"string","enum":["active","expired","cancelled"]},"page":{"type":"number","default":1},"per_page":{"type":"number","default":30,"description":"Maximum 100."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_membership","name":"Get Membership","description":"Get one membership, including its recorded contributions and price-log references.","visibility":"public","input_schema":{"type":"object","properties":{"membership_id":{"type":"string","description":"Tenant-defined membership identifier."},"listing_id":{"type":"number","description":"Membership listing ID required to disambiguate the tenant membership."}},"required":["membership_id","listing_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_membership_price_log","name":"Create Membership Price Log","description":"Record a tenant-level asset price used to value membership contributions. Requires admin access.","visibility":"public","input_schema":{"type":"object","properties":{"asset_key":{"type":"string","description":"Lowercase asset key using only letters, digits, and underscores; maximum 64 characters."},"price":{"type":"number","description":"Positive unit price with up to six decimal places."},"currency_id":{"type":"number"},"observed_at":{"type":"string","description":"ISO-8601 timestamp when the price was observed."},"unit_name":{"type":"string","description":"Optional display unit such as gram, point, or credit."},"source":{"type":"string","description":"Optional price source label."},"metadata":{"type":"object"}},"required":["asset_key","price","currency_id","observed_at"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_membership_price_logs","name":"List Membership Price Logs","description":"List tenant-level membership asset price history, newest first.","visibility":"public","input_schema":{"type":"object","properties":{"asset_key":{"type":"string"},"page":{"type":"number","default":1},"per_page":{"type":"number","default":30,"description":"Maximum 100."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_membership_payment_due","name":"Create Membership Payment Due","description":"Create a payment due for a membership. Requires admin access.","visibility":"public","input_schema":{"type":"object","properties":{"membership_id":{"type":"string","description":"Tenant-defined membership identifier."},"listing_id":{"type":"number"},"amount":{"type":"number","description":"Positive amount due."},"currency_id":{"type":"number"},"due_at":{"type":"string","description":"ISO-8601 due timestamp."},"grace_days":{"type":"number","default":0,"description":"Non-negative grace period in days."},"metadata":{"type":"object"}},"required":["membership_id","listing_id","amount","currency_id","due_at"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_membership_payment_dues","name":"List Membership Payment Dues","description":"List payment dues for a membership.","visibility":"public","input_schema":{"type":"object","properties":{"membership_id":{"type":"string","description":"Tenant-defined membership identifier."},"listing_id":{"type":"number"},"page":{"type":"number","default":1},"per_page":{"type":"number","default":30,"description":"Maximum 100."}},"required":["membership_id","listing_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"record_membership_contribution","name":"Record Membership Contribution","description":"Record an order's successful contribution against a membership. This writes a contribution record and can change membership accounting totals.","visibility":"public","input_schema":{"type":"object","properties":{"membership_id":{"type":"string","description":"Tenant-defined membership identifier."},"listing_id":{"type":"number"},"order_id":{"type":"number","description":"Successful order belonging to the member."}},"required":["membership_id","listing_id","order_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_attribution_campaigns","name":"List Attribution Campaigns","description":"List attribution campaigns for a vendor. Campaigns organize partners and tracking links.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string","description":"Attribution vendor ID."}},"required":["vendor_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_attribution_campaign","name":"Create Attribution Campaign","description":"Create an attribution campaign for a vendor. Use this for the Campaign -> Partner -> Tracking link hierarchy.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"commissionRate":{"type":"number"},"status":{"type":"string","enum":["draft","active","paused","archived"]},"startAt":{"type":"string"},"endAt":{"type":"string"}},"required":["vendor_id","name"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_attribution_campaign","name":"Get Attribution Campaign","description":"Read one attribution campaign with its assigned partners and tracking links.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"campaign_id":{"type":"string"}},"required":["vendor_id","campaign_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_attribution_campaign","name":"Update Attribution Campaign","description":"Edit an attribution campaign's name, description, commission, dates, or status. IDs are immutable.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"campaign_id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"commissionRate":{"type":"number"},"status":{"type":"string","enum":["draft","active","paused","archived"]},"startAt":{"type":"string"},"endAt":{"type":"string"}},"required":["vendor_id","campaign_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_attribution_partners","name":"List Attribution Partners","description":"List partners connected to an attribution vendor.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"}},"required":["vendor_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_attribution_campaign_partners","name":"List Attribution Campaign Partners","description":"List partners assigned to one attribution campaign.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"campaign_id":{"type":"string"}},"required":["vendor_id","campaign_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"assign_attribution_campaign_partner","name":"Assign Attribution Campaign Partner","description":"Assign an existing partner to an attribution campaign, optionally saving a commission override that may change reward allocation.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"campaign_id":{"type":"string"},"partner_id":{"type":"string"},"commissionRate":{"type":"number"},"status":{"type":"string","enum":["active","paused"]}},"required":["vendor_id","campaign_id","partner_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"remove_attribution_campaign_partner","name":"Remove Attribution Campaign Partner","description":"Remove a partner from an attribution campaign without deleting the partner identity.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"campaign_id":{"type":"string"},"partner_id":{"type":"string"}},"required":["vendor_id","campaign_id","partner_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_attribution_links","name":"List Attribution Links","description":"List all tracking links for an attribution vendor.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"}},"required":["vendor_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_attribution_link","name":"Create Attribution Link","description":"Create a smart tracking link for a partner. It can belong to a campaign and route to web, iOS, Android, or smart destinations.","visibility":"public","input_schema":{"type":"object","properties":{"partner_id":{"type":"string"},"vendorId":{"type":"string","description":"Attribution vendor ID used by the partner context."},"destinationUrl":{"type":"string"},"slug":{"type":"string"},"campaignId":{"type":"string"},"appPlatform":{"type":"string","enum":["web","ios","android","smart"]},"appStoreUrlIos":{"type":"string"},"appStoreUrlAndroid":{"type":"string"},"appDeepLinkIos":{"type":"string"},"appDeepLinkAndroid":{"type":"string"},"fallbackUrl":{"type":"string"}},"required":["partner_id","destinationUrl"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_attribution_link","name":"Update Attribution Link","description":"Edit a tracking link's destination, campaign, platform, app URLs, or fallback. Do not change the link ID.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"link_id":{"type":"string"},"destinationUrl":{"type":"string"},"campaignId":{"type":"string"},"appPlatform":{"type":"string","enum":["web","ios","android","smart"]},"appStoreUrlIos":{"type":"string"},"appStoreUrlAndroid":{"type":"string"},"appDeepLinkIos":{"type":"string"},"appDeepLinkAndroid":{"type":"string"},"fallbackUrl":{"type":"string"}},"required":["vendor_id","link_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"delete_attribution_link","name":"Delete Attribution Link","description":"Delete an attribution tracking link and its local click/conversion records. Confirm before using.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"link_id":{"type":"string"}},"required":["vendor_id","link_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_attribution_campaign_analytics","name":"Get Attribution Campaign Analytics","description":"Get clicks, conversions, revenue, and conversion rate grouped by attribution campaign.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"}},"required":["vendor_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_attribution_goals","name":"List Attribution Goals","description":"List the Tradly Analytics goals configured for an attribution vendor.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"}},"required":["vendor_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_attribution_goal_events","name":"List Attribution Goal Events","description":"List Analytics goal events received by Attribution, including matched, unmatched, failed, and rejected states.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"status":{"type":"string"}},"required":["vendor_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"retry_attribution_goal_event","name":"Retry Attribution Goal Event","description":"Reprocess a failed or rejected attribution goal event. This can update processing state and trigger downstream reward delivery; verify the event before retrying.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"},"event_id":{"type":"string"}},"required":["vendor_id","event_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"get_attribution_erp_deliveries","name":"Get Attribution ERP Deliveries","description":"Inspect Attribution's conversion delivery outbox for the ERP reward endpoint.","visibility":"public","input_schema":{"type":"object","properties":{"vendor_id":{"type":"string"}},"required":["vendor_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"list_reward_programs","name":"List Reward Programs","description":"List reward programs for the authenticated tenant. Reward programs are separate from attribution campaigns.","visibility":"public","input_schema":{"type":"object","properties":{}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_reward_impact_report","name":"Get Reward Impact Report","description":"Get reward and attribution impact metrics for the authenticated tenant, including attributed conversions, influenced revenue, reward cost, net revenue, partner rankings, and daily or weekly trends. Click totals remain unavailable until the Attribution click aggregate is connected.","visibility":"public","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"ISO date/time lower bound. Defaults to the last 30 days."},"to":{"type":"string","description":"ISO date/time upper bound. Defaults to now."},"granularity":{"type":"string","enum":["day","week"],"default":"day"},"campaign_ref":{"type":"string"},"partner_ref":{"type":"string"},"program_id":{"type":"string"}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"create_reward_program","name":"Create Reward Program","description":"Create a modular reward program. The program type_key is extensible; it defaults to affiliate when omitted.","visibility":"public","input_schema":{"type":"object","properties":{"program":{"type":"object","description":"Program fields: name, type_key, description, status, priority, config, starts_at, ends_at."}},"required":["program"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"get_reward_program","name":"Get Reward Program","description":"Read a reward program including scopes, rules, and recipe components.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"}},"required":["program_id"]},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_reward_program","name":"Update Reward Program","description":"Edit a reward program's name, type, description, status, priority, config, or dates. IDs remain immutable.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"program":{"type":"object"}},"required":["program_id","program"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"archive_reward_program","name":"Archive Reward Program","description":"Archive a reward program without deleting it, preserving reward history.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"}},"required":["program_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"add_reward_scope","name":"Add Reward Scope","description":"Add a scope such as campaign, region, store, partner, or category to a reward program.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"scope":{"type":"object","description":"Scope fields: scope_type, scope_ref, match_config, priority, active, starts_at, ends_at."}},"required":["program_id","scope"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_reward_scope","name":"Update Reward Scope","description":"Edit a reward program scope's reference, matching configuration, priority, active state, or dates.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"scope_id":{"type":"string"},"scope":{"type":"object"}},"required":["program_id","scope_id","scope"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"deactivate_reward_scope","name":"Deactivate Reward Scope","description":"Deactivate a reward program scope without deleting it.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"scope_id":{"type":"string"}},"required":["program_id","scope_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"add_reward_rule","name":"Add Reward Rule","description":"Add a reward rule with a trigger event, beneficiary, eligibility, and conditions.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"rule":{"type":"object","description":"Rule fields: name, trigger_event, beneficiary_type, beneficiary_config, eligibility, conditions, status, priority, dates."}},"required":["program_id","rule"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_reward_rule","name":"Update Reward Rule","description":"Edit a reward rule while preserving its identity and ledger references.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"rule_id":{"type":"string"},"rule":{"type":"object"}},"required":["program_id","rule_id","rule"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"archive_reward_rule","name":"Archive Reward Rule","description":"Archive a reward rule without deleting historical rewards.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"rule_id":{"type":"string"}},"required":["program_id","rule_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"add_reward_component","name":"Add Reward Component","description":"Add an ordered recipe component to a reward rule. Use component_type commission with an existing commission_id for commission rules.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"rule_id":{"type":"string"},"component":{"type":"object","description":"Component fields: component_key, component_type, commission_id, config, position, active."}},"required":["program_id","rule_id","component"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"update_reward_component","name":"Update Reward Component","description":"Edit a reward recipe component's key, type, commission reference, config, position, or active state.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"rule_id":{"type":"string"},"component_id":{"type":"string"},"component":{"type":"object"}},"required":["program_id","rule_id","component_id","component"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"deactivate_reward_component","name":"Deactivate Reward Component","description":"Deactivate a reward recipe component without deleting it.","visibility":"public","input_schema":{"type":"object","properties":{"program_id":{"type":"string"},"rule_id":{"type":"string"},"component_id":{"type":"string"}},"required":["program_id","rule_id","component_id"]},"annotations":{"readOnlyHint":false,"openWorldHint":false,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"list_commission_definitions","name":"List Commission Definitions","description":"List existing tenant commission definitions that can be referenced by reward recipe components.","visibility":"public","input_schema":{"type":"object","properties":{"type":{"type":"string","default":"supply","description":"Existing commission type, normally supply for partner rewards."}}},"annotations":{"readOnlyHint":true,"openWorldHint":false,"destructiveHint":false},"output_schema":{"type":"object"}},{"id":"social_ig_schedule_post","name":"Schedule Instagram Post","description":"Schedule an Instagram post for external publication. The MCP server downloads the supplied public HTTPS media URL and uploads it to the Tradly social scheduler; redirects and private-network hosts are rejected. Use an image or video URL, exact caption, connected Instagram profile ID, and a future ISO-8601 publication time with timezone. Optionally include a project ID to group the post in the publishing calendar.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected Instagram profile ID that will publish the post."},"mediaUrl":{"type":"string","format":"uri","description":"Public HTTPS URL for an image (JPEG, PNG, WebP) or video (MP4, MOV) that the MCP server can download."},"caption":{"type":"string","description":"Exact Instagram caption to publish."},"scheduledAt":{"type":"string","format":"date-time","description":"Future ISO-8601 publication time including timezone."},"projectId":{"type":"string","description":"Optional Tradly project ID for calendar grouping; omit it for General."}},"required":["profileId","mediaUrl","caption","scheduledAt"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"social_yt_schedule_post","name":"Schedule YouTube Video","description":"Schedule a YouTube video for external publication. The MCP server downloads the supplied public HTTPS video URL and uploads it to the Tradly social scheduler; redirects and private-network hosts are rejected. Provide a connected YouTube profile ID, title, description, privacy status, and future ISO-8601 publication time with timezone. Optionally include a project ID for calendar grouping.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected YouTube channel profile ID that will publish the video."},"mediaUrl":{"type":"string","format":"uri","description":"Public HTTPS URL for an MP4, MOV, or WebM video that the MCP server can download."},"title":{"type":"string","description":"YouTube video title."},"description":{"type":"string","description":"YouTube video description."},"privacyStatus":{"type":"string","enum":["public","unlisted","private"],"description":"Visibility to apply when YouTube publishes the video."},"scheduledAt":{"type":"string","format":"date-time","description":"Future ISO-8601 publication time including timezone."},"projectId":{"type":"string","description":"Optional Tradly project ID for calendar grouping; omit it for General."}},"required":["profileId","mediaUrl","title","description","privacyStatus","scheduledAt"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}},{"id":"social_fb_schedule_post","name":"Schedule Facebook Reel","description":"Schedule a Facebook Reel for external publication. The MCP server downloads the supplied public HTTPS video URL and uploads it to the Tradly social scheduler; redirects and private-network hosts are rejected. Provide a connected Facebook Page profile ID, video description, and future ISO-8601 publication time with timezone. Optionally include a project ID for calendar grouping.","visibility":"public","input_schema":{"type":"object","properties":{"profileId":{"type":"string","description":"Connected Facebook Page profile ID that will publish the Reel."},"mediaUrl":{"type":"string","format":"uri","description":"Public HTTPS URL for an MP4 or MOV video that the MCP server can download."},"description":{"type":"string","description":"Exact Facebook Reel description."},"scheduledAt":{"type":"string","format":"date-time","description":"Future ISO-8601 publication time including timezone."},"projectId":{"type":"string","description":"Optional Tradly project ID for calendar grouping; omit it for General."}},"required":["profileId","mediaUrl","description","scheduledAt"]},"annotations":{"readOnlyHint":false,"openWorldHint":true,"destructiveHint":true},"output_schema":{"type":"object"}}]}