Tools
Every operation the hosted MCP gateway serves, its permission tier, and the two tools a client reaches them through by default. Generated from the server's own registry.
These are the operations POST https://joinmarka.com/api/mcp serves. The list below is
generated from the running server's tool registry ({registry.source}) by
pnpm generate:mcp-tools, so it is the same set of operations — and the same JSON Schemas for their
inputs — the server runs.
By default a client does not see these in tools/list. It sees two tools:
search_toolstakes an optionalqueryand returns the matching operations as TypeScript declarations. Omitqueryto get everything your credential reaches.execute_typescripttakescode, a TypeScript program that calls the operations asexternal_<operation>(input)and returns what it wants back, for examplereturn await external_search_listings({ query: "chair" });. The program runs in a sandbox with a 30-second limit and no network or filesystem access beyond those calls.
Each external_ call runs the operation with the same authentication, ownership checks and input
schema as calling it directly. The result of execute_typescript is
{ success, result, logs, error }. A failed operation call throws inside the program, and a
program that throws comes back as success: false with the error, inside an execute_typescript
call that itself succeeded, so check success rather than the call status. If your client lists the
operations below as tools instead, it calls them directly.
The SDK's stdio bridge proxies this server, so it lists the same tools.
Publishing (publish_listing or POST /api/v1/listings/{id}/publish) requires available stock:
quantityTotal - quantityReserved > 0, for both unique and multi-quantity inventory. A refusal
is the domain error out_of_stock, returned as HTTP 400 by the API. Its message is "All units are
held by open orders." when quantityTotal > 0, or "Active listings require stock." when
quantityTotal is 0. publish_listing returns the same message as a VALIDATION_ERROR.
accept_order
Seller accepts a buyer's order; the buyer is notified.
| Parameter | Type | Required | Notes |
|---|---|---|---|
orderId | string | yes | The order id. |
accept_pickup
Buyer accepts the item at the meetup.
| Parameter | Type | Required | Notes |
|---|---|---|---|
orderId | string | yes | The order id. |
acknowledge_drift
Resolve a listing that was changed on the marketplace. Ask the user: overwrite the marketplace with Marka's version, or pull the marketplace's version into Marka.
| Parameter | Type | Required | Notes |
|---|---|---|---|
channelListingId | string | yes | |
resolution | "overwrite" | "pull" | no | Ask the user — never choose for them. overwrite = Marka wins; pull = the marketplace wins. |
attach_listing_image
Register an already-uploaded image file against a listing. To show a public image URL, pass imageUrls to create_listing_draft / update_listing_draft instead.
| Parameter | Type | Required | Notes |
|---|---|---|---|
listingId | string | yes | The listing id. |
mimeType | string | yes | |
originalFilename | string | yes | |
sizeBytes | integer | yes | |
storageKey | string | yes |
billing_status
The seller's plan, subscription state, renewal date, trial end, entitlements and plan limits.
Takes no arguments.
bulk_import_ebay_listings
Import every eBay listing not yet in Marka. Reports imported, skipped and failed counts.
Takes no arguments.
buy_shipping_label
Buys a carrier label for a packed shipping order; the cost is charged to the seller's Easyship account. Ask the user which courier service from get_shipping_rates and for their real ship-from address; placeholders are refused.
| Parameter | Type | Required | Notes |
|---|---|---|---|
courierServiceId | string | no | Ask the user — never choose for them. Courier service id from get_shipping_rates. |
destinationAddress | object | yes | |
orderId | string | yes | |
originAddress | object | no | Ask the user — never choose for them. The seller's real ship-from address, name, phone and email. |
parcels | object[] | yes |
cancel_order
Seller cancels an order that has not been accepted yet.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
orderId | string | yes | The order id. |
reason | string | no | Defaults to "Seller cancelled". |
cancel_shipping_label
Void a label that has not been used.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
providerShipmentId | string | yes |
change_sync_mode
IMPORT_MIRROR (pull only, free), MARKA_PUBLISH (one-way push, Pro), MARKA_MANAGED (two-way, Business) or DISCONNECTED.
| Parameter | Type | Required | Notes |
|---|---|---|---|
channelListingId | string | yes | |
syncMode | "IMPORT_MIRROR" | "MARKA_PUBLISH" | "MARKA_MANAGED" | "DISCONNECTED" | yes |
checkout_order
Returns a one-click link to the Stripe Checkout page for an item (card details are entered there, never in chat). Ask the user whether they want pickup or shipping. Refused when the seller cannot take card payments or the item is not on sale.
| Parameter | Type | Required | Notes |
|---|---|---|---|
fulfillmentMode | "PICKUP" | "SHIPPING" | no | Ask the user — never choose for them. PICKUP to collect in person or SHIPPING to have it posted. |
listingId | string | yes | |
quantity | integer | no | Defaults to 1. |
confirm_delivery
Buyer confirms the parcel arrived; opens the inspection window and tells the seller.
| Parameter | Type | Required | Notes |
|---|---|---|---|
orderId | string | yes | The order id. |
confirm_pickup
Seller completes the handover with the buyer's one-time code or QR token. Ask the user for the code the buyer shows; five wrong codes lock the order for 15 minutes.
| Parameter | Type | Required | Notes |
|---|---|---|---|
code | string | no | Ask the user — never choose for them. The 6-digit code or the QR token the buyer shows. |
method | "otp" | "qr" | yes | |
orderId | string | yes | The order id. |
create_api_key
Mint an API key. The plaintext is returned once. tiers defaults to your own; a key can never carry a tier you do not have.
| Parameter | Type | Required | Notes |
|---|---|---|---|
expiry | string | no | One of 30d, 90d, 365d or never. Defaults to 365d. |
name | string | yes | |
tiers | "read" | "write" | "destructive" | "billing" | "account" | "connections" | "support" | "keys"[] | no |
create_default_ebay_policies
Create and select a default set of eBay policies on the seller's eBay account when they have none.
Takes no arguments.
create_listing_draft
Create a DRAFT listing for the authenticated seller. Publish with publish_listing. Once the seller has approved a draft — including when the same message both describes the item and approves creating it — CALL this tool immediately with the agreed values. Do not restate the listing in prose instead of calling it: a written-out proposal is only for the not-yet-approved stage, and after approval it leaves the seller with no draft.
| Parameter | Type | Required | Notes |
|---|---|---|---|
brand | stringnull | no | |
categoryPath | string | yes | Slash-delimited lowercase taxonomy path, e.g. "electronics/cameras". Never an external marketplace's numeric category id. |
checkoutEnabled | boolean | no | Card payment through Stripe; the seller must have completed Stripe onboarding (get_connect_links stripe) before publishing. Defaults to false. |
city | string | no | |
condition | "new" | "refurbished" | "like_new" | "good" | "fair" | "for_parts" | yes | |
countryCode | string | no | |
currency | string | no | Defaults to "CAD". |
description | string | yes | |
directEnabled | boolean | no | In-person payment, no card. Default true. Defaults to true. |
imageUrls | string[] | no | Defaults to []. |
madeInCountry | string | null | no | Country of manufacture as an ISO 3166-1 alpha-2 code (e.g. CA, DE), stored uppercase; null when not specified. Used as the item's origin country on international shipping labels (customs and duties). A lowercase code is accepted and uppercased; an unknown code is rejected. On an update, null clears it and omitting the field leaves it unchanged. |
pickupEnabled | boolean | no | Local pickup. Default true. Defaults to true. |
price | integer | yes | Price in minor units (cents) |
shippingEnabled | boolean | no | Defaults to false. |
shippingFlatAmount | integer | no | Flat shipping price in minor units. Required when shippingEnabled is true. |
title | string | yes |
create_order
Place an order on the Direct rail: the buyer pays the seller in person or off-platform. For card payment use checkout_order. Ask the user whether they want pickup or shipping.
| Parameter | Type | Required | Notes |
|---|---|---|---|
fulfillmentMode | "PICKUP" | "SHIPPING" | no | Ask the user — never choose for them. PICKUP to collect in person or SHIPPING to have it posted. |
listingId | string | yes | |
quantity | integer | no | Defaults to 1. |
rail | string | no | Defaults to "DIRECT". |
create_shipping_profile
A named set of countries listings can ship to.
| Parameter | Type | Required | Notes |
|---|---|---|---|
name | string | yes | |
setAsDefault | boolean | no | Defaults to false. |
shipsToCountries | string[] | yes | ISO 3166-1 alpha-2 country codes the profile ships to. |
create_support_ticket
Send a message to Marka support on the user's behalf; replies go to the account email. Returns a ticket id. One request per minute and user.
| Parameter | Type | Required | Notes |
|---|---|---|---|
attachments | object[] | no | Links to files; Marka stores no uploads for support. |
body | string | yes | |
subject | string | yes | |
type | "problem" | "feature_request" | "question" | "other" | no | Defaults to "other". |
delete_account
Deletes the account (the whole bundle or nothing). Ask the user to type their own account email as confirmation; never fill it in yourself. We keep backups, so support can restore it. An active Web Billing subscription is cancelled with the account. If the subscription was bought from the App Store or Google Play the result carries a notice to cancel it in the store; pass that on to the user.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmEmail | string | no | Ask the user — never choose for them. The account email, typed by the user as proof of intent. |
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
delete_saved_search
Delete one saved search.
| Parameter | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
delete_shipping_profile
Delete a shipping profile.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
profileId | string | yes |
disconnect
Disconnect eBay, Shopify or Easyship. Stripe payouts cannot be disconnected here; the refusal points at the docs page that explains how.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
provider | "ebay" | "shopify" | "stripe" | "easyship" | yes |
discover_ebay_policies
The seller's eBay fulfilment, payment and return policies and which are selected.
Takes no arguments.
discover_shopify_locations
The Shopify store's active inventory locations and the selected one.
Takes no arguments.
dispatch_shipment
Record that a packed order shipped, with carrier and tracking number; the buyer is emailed. Ask the user for the carrier and tracking number; never invent them. If a label was bought through buy_shipping_label this completes that shipment.
| Parameter | Type | Required | Notes |
|---|---|---|---|
carrier | string | no | Ask the user — never choose for them. Carrier name (e.g. Canada Post). |
labelUrl | string | null | no | Defaults to null. |
orderId | string | yes | The order id. |
serviceLevel | string | no | Defaults to "standard". |
trackingNumber | string | no | Ask the user — never choose for them. Tracking number from the carrier. |
export_data
Everything Marka holds for this seller as JSON: profile, listings, orders as seller and buyer, saved listings, saved searches, shipping profiles and subscription. Collections are cut at about 900 KB and report what was left out.
Takes no arguments.
favourite_listing
Add a listing to the user's saved items.
| Parameter | Type | Required | Notes |
|---|---|---|---|
listingId | string | yes |
get_connect_links
One-click links that finish a connection in the browser (the provider's own sign-in cannot happen in chat). Omit provider for all of them. Shopify needs the shop's myshopify.com address: ask the user. Use provider "stripe_dashboard" for the Stripe payout dashboard.
| Parameter | Type | Required | Notes |
|---|---|---|---|
provider | "ebay" | "shopify" | "stripe" | "stripe_dashboard" | "easyship" | no | |
shopDomain | string | no | Ask the user — never choose for them. The shop address, e.g. my-shop.myshopify.com. |
get_listing
Fetch the full public details of one active listing by id, including its seller's id and name.
| Parameter | Type | Required | Notes |
|---|---|---|---|
id | string | yes | The listing id |
get_order
One order the caller is the seller or buyer of.
| Parameter | Type | Required | Notes |
|---|---|---|---|
orderId | string | yes | The order id. |
get_order_messages
The chat history of an order; marks it read.
| Parameter | Type | Required | Notes |
|---|---|---|---|
orderId | string | yes | The order id. |
get_payment_settings
Who may check out with a card on the seller's listings (preset, max order value, high-risk rule, minimum completed orders) and the Stripe payout account state.
Takes no arguments.
get_profile
The signed-in account: id, email, name, whether the email is confirmed, and the plan.
Takes no arguments.
get_referral_status
The seller's Refer & Earn link, click/sign-up/sale counters and upcoming vs paid earnings. The first call enrols the user as a referral partner, exactly as opening the referral page does.
Takes no arguments.
get_seller_info
Get a seller's public profile (name, avatar) and how many active listings they have. Pass the listing's sellerId, or just the listingId of one of their listings.
| Parameter | Type | Required | Notes |
|---|---|---|---|
listingId | stringnull | no | A listing id (the id field of a search_listings or get_listing result). The tool looks up that listing's seller. Pass this when you have a listing but not its sellerId. |
sellerId | stringnull | no | The seller's user id: the sellerId field of a listing returned by get_listing. Not a listing id. |
get_shipping_rates
Carrier quotes through the seller's connected Easyship account. Requires Easyship (get_connect_links easyship).
| Parameter | Type | Required | Notes |
|---|---|---|---|
destinationAddress | object | yes | |
originAddress | object | yes | |
parcels | object[] | yes |
get_shopify_connection
Whether Shopify is connected, the shop, default location and last error.
Takes no arguments.
get_thread_messages
A thread's messages; marks it read.
| Parameter | Type | Required | Notes |
|---|---|---|---|
threadId | string | yes |
import_ebay_listing
Import one candidate from load_ebay_import_candidates (pass its externalListingId). Creates a live Marka listing, so it needs a confirmed email.
| Parameter | Type | Required | Notes |
|---|---|---|---|
externalListingId | string | yes |
list_api_keys
The account's API keys: id, name, first characters, created/expiry/last-used, and the tiers each carries. Never the secret.
Takes no arguments.
list_categories
List the active listing categories on Marka (with how many listings each has). Returns the COMPLETE set in a single call — call this only once; a larger limit does not return different categories.
| Parameter | Type | Required | Notes |
|---|---|---|---|
limit | integer | no | Defaults to 20. |
list_channel_listings
The seller's listings on eBay and Shopify with sync mode, status and drift.
Takes no arguments.
list_connected_apps
AI clients that were granted access through the browser sign-in, with their scopes and last use.
Takes no arguments.
list_connections
Connected services and their state: eBay, Shopify, Stripe payouts and Easyship shipping, each with status and the account label.
Takes no arguments.
list_favourites
The user's saved listings with cover images.
Takes no arguments.
list_granted_scopes
The tiers and scopes this connection holds, and which client it is.
Takes no arguments.
list_my_listings
The seller's own listings in every state (draft, active, paused, sold, removed), newest first. Pass listingId for one.
| Parameter | Type | Required | Notes |
|---|---|---|---|
limit | integer | no | Defaults to 50. |
listingId | string | no | |
offset | integer | no | Defaults to 0. |
status | string | no |
list_orders
Orders on the seller's listings (role seller) or the orders they bought (role buyer), newest first. Seller orders include the buyer's shipping details; do not repeat them beyond what the task needs.
| Parameter | Type | Required | Notes |
|---|---|---|---|
limit | integer | no | Defaults to 25. |
offset | integer | no | Defaults to 0. |
role | "seller" | "buyer" | no | Defaults to "seller". |
status | string | no |
list_plans
The plans Marka sells, with prices. Prices are display strings in CAD. Call this before upgrade_plan.
Takes no arguments.
list_saved_searches
The user's saved searches.
Takes no arguments.
list_shipping_profiles
The seller's shipping profiles and which is the default.
Takes no arguments.
list_support_tickets
The support requests this account has sent, newest first, with their ids and type.
| Parameter | Type | Required | Notes |
|---|---|---|---|
limit | integer | no | Defaults to 20. |
load_ebay_import_candidates
Active eBay listings that can be imported into Marka.
Takes no arguments.
manage_subscription
cancel and refund (confirm token required) run in chat for Web Billing subscriptions; refund returns the last payment within RevenueCat's own window. Subscriptions bought in an app store, and resume, return a single-use portal link instead. portal returns the portal link. extend is not offered: pay for another period with upgrade_plan.
| Parameter | Type | Required | Notes |
|---|---|---|---|
action | "cancel" | "resume" | "extend" | "refund" | "portal" | yes | |
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
pack_order
Mark an accepted shipping order as packed.
| Parameter | Type | Required | Notes |
|---|---|---|---|
orderId | string | yes | The order id. |
pause_listing
Take an active listing off the market without deleting it.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
listingId | string | yes | The listing id. |
pickup_check_in
Record that you arrived at the meetup. When both sides are checked in the inspection starts.
| Parameter | Type | Required | Notes |
|---|---|---|---|
as | "buyer" | "seller" | yes | |
orderId | string | yes | The order id. |
publish_listing
Publish a draft so buyers can see and buy it. Tell the user the title, price and how it can be bought, and get their agreement before calling. Needs a confirmed account email, a listing with pickup or shipping AND direct or checkout payment, stock, and (for checkout) completed Stripe onboarding; a refusal names what is missing. Free plans can hold 50 active listings.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
listingId | string | yes | The listing id. |
publish_to_ebay
Cross-post an active Marka listing to the connected eBay account (Pro plan). Needs eBay connected (get_connect_links ebay) and the three eBay policies chosen (discover_ebay_policies, save_ebay_policies).
| Parameter | Type | Required | Notes |
|---|---|---|---|
listingId | string | yes |
publish_to_shopify
Cross-post an active listing to the connected Shopify store (free on every plan). Needs a default location (discover_shopify_locations, save_shopify_location).
| Parameter | Type | Required | Notes |
|---|---|---|---|
listingId | string | yes |
reject_pickup
Buyer rejects the item at the meetup. Ask the user for the reason.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
orderId | string | yes | The order id. |
reason | "not_as_described" | "defective" | "missing_parts" | "wrong_item" | "counterfeit_concern" | "seller_changed_price" | "buyer_changed_mind" | "safety_issue" | "other" | no | Ask the user — never choose for them. Why the item is rejected. |
remove_listing
Remove a listing (refused while an order is in progress). Connected eBay and Shopify listings are ended too.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
listingId | string | yes | The listing id. |
report_listing
Report someone else's listing to Marka moderation.
| Parameter | Type | Required | Notes |
|---|---|---|---|
listingId | string | yes | The listing id. |
note | string | no | |
reason | "prohibited" | "counterfeit" | "spam" | "misleading" | "other" | yes |
request_scopes
Returns a one-click link that reconnects this AI client with more permissions ready to allow. Use it when a call is refused with SCOPE_MISSING. API keys carry their tiers from creation; use create_api_key for one with more.
| Parameter | Type | Required | Notes |
|---|---|---|---|
tiers | "read" | "write" | "destructive" | "billing" | "account" | "connections" | "support" | "keys"[] | yes |
reschedule_pickup
Seller moves the meetup time. Ask the user for the new time.
| Parameter | Type | Required | Notes |
|---|---|---|---|
orderId | string | yes | The order id. |
scheduledAt | string | no | Ask the user — never choose for them. New ISO 8601 date-time. |
resend_verification_email
Sends the confirm-your-email message again (publishing and Stripe onboarding need a confirmed address). One send per minute.
Takes no arguments.
reverify
Re-reads a connection's state. If it needs attention (expired token, error), the result includes a fresh connect link.
| Parameter | Type | Required | Notes |
|---|---|---|---|
provider | "ebay" | "shopify" | "stripe" | "easyship" | yes |
revoke_api_key
Delete an API key.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
keyId | string | yes |
revoke_connected_app
Revoke one connected app (clientId from list_connected_apps). Revoking the client you are using ends this session.
| Parameter | Type | Required | Notes |
|---|---|---|---|
clientId | string | yes | |
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
rotate_api_key
Replace a key with a new one that has the same tiers and expiry. The new plaintext is returned once.
| Parameter | Type | Required | Notes |
|---|---|---|---|
confirmToken | string | no | Returned by the first call. Pass it back unchanged after the user has agreed. |
keyId | string | yes |
save_ebay_policies
Select which eBay policies Marka uses when publishing. Show the user the options from discover_ebay_policies and ask the user which to use.
| Parameter | Type | Required | Notes |
|---|---|---|---|
fulfillmentPolicyId | string | no | Ask the user — never choose for them. eBay fulfilment policy id. |
paymentPolicyId | string | no | Ask the user — never choose for them. eBay payment policy id. |
returnPolicyId | string | no | Ask the user — never choose for them. eBay return policy id. |
save_search
Save a search so the user can come back to it. maxPrice is in major units (dollars).
| Parameter | Type | Required | Notes |
|---|---|---|---|
city | string | no | |
maxPrice | number | no | |
pickup | boolean | no | Defaults to false. |
q | string | no | |
shipping | boolean | no | Defaults to false. |
save_shopify_location
Select the Shopify location stock is tracked against. Ask the user which.
| Parameter | Type | Required | Notes |
|---|---|---|---|
defaultLocationId | string | no | Ask the user — never choose for them. A location id from discover_shopify_locations. |
schedule_pickup
Seller proposes the meetup time and place for an accepted pickup order. Ask the user for the time and place.
| Parameter | Type | Required | Notes |
|---|---|---|---|
addressLine1 | string | no | |
city | string | no | |
country | string | no | |
orderId | string | yes | The order id. |
scheduledAt | string | no | Ask the user — never choose for them. ISO 8601 date-time of the meetup. |
search_listings
Search active Marka listings by keywords and optional price range. An empty query browses every active listing in the price range. Returns listing summaries to show the buyer.
| Parameter | Type | Required | Notes |
|---|---|---|---|
limit | integer | no | Defaults to 12. |
maxPrice | integer | no | Maximum price in minor units (cents) |
minPrice | integer | no | Minimum price in minor units (cents) |
query | string | yes | Keywords for the item, e.g. 'leather sofa'. Use an empty string to browse every active listing, e.g. 'anything under $200' is query '' with maxPrice 20000. |
send_message
Send a message in a thread you take part in.
| Parameter | Type | Required | Notes |
|---|---|---|---|
body | string | yes | |
threadId | string | yes |
send_order_message
Send a message in an order's chat thread (buyer or seller). The text goes out exactly as written; scam-shield may flag it.
| Parameter | Type | Required | Notes |
|---|---|---|---|
body | string | yes | |
orderId | string | yes | The order id. |
set_default_shipping_profile
Listings without their own profile inherit the default. Pass null to clear it.
| Parameter | Type | Required | Notes |
|---|---|---|---|
profileId | stringnull | yes |
start_conversation
Open (or reuse) a chat thread with a seller about a listing. Returns the thread id.
| Parameter | Type | Required | Notes |
|---|---|---|---|
listingId | string | no | |
sellerId | string | yes |
submit_review
Buyer reviews the seller after an eligible order. Ask the user for their own rating and wording; never write the review for them.
| Parameter | Type | Required | Notes |
|---|---|---|---|
orderId | string | yes | The order id. |
rating | integer | no | Ask the user — never choose for them. Star rating 1-5. |
tags | string[] | no | Defaults to []. |
text | string | no |
sync_now
Queue an immediate sync of one marketplace listing.
| Parameter | Type | Required | Notes |
|---|---|---|---|
channelListingId | string | yes | |
forcePush | boolean | no | Defaults to false. |
track_shipment
Tracking status by tracking number or Easyship shipment id. Pass at least one of them.
| Parameter | Type | Required | Notes |
|---|---|---|---|
providerShipmentId | string | no | |
trackingNumber | string | no |
unfavourite_listing
Remove a listing from saved items.
| Parameter | Type | Required | Notes |
|---|---|---|---|
listingId | string | yes |
update_checkout_policy
Set who may pay by card. maxOrderAmount is in major units (dollars); null removes the cap.
| Parameter | Type | Required | Notes |
|---|---|---|---|
highRiskRule | "allow" | "direct_only" | yes | |
maxOrderAmount | number | null | no | Defaults to null. |
minimumCompletedOrders | integer | no | Defaults to 0. |
preset | "open" | "verified_buyers" | "established_buyers" | "manual_review_high_risk" | yes |
update_listing_draft
Update fields on a DRAFT listing owned by the authenticated seller. Publish with publish_listing.
| Parameter | Type | Required | Notes |
|---|---|---|---|
categoryPath | string | no | |
checkoutEnabled | boolean | no | |
city | string | no | |
condition | "new" | "refurbished" | "like_new" | "good" | "fair" | "for_parts" | no | |
description | string | no | |
directEnabled | boolean | no | |
draftId | string | yes | The id of the draft listing to update |
imageUrls | string[] | no | |
madeInCountry | string | null | no | Country of manufacture as an ISO 3166-1 alpha-2 code (e.g. CA, DE), stored uppercase; null when not specified. Used as the item's origin country on international shipping labels (customs and duties). A lowercase code is accepted and uppercased; an unknown code is rejected. On an update, null clears it and omitting the field leaves it unchanged. |
pickupEnabled | boolean | no | |
price | integer | no | Price in minor units (cents) |
shippingEnabled | boolean | no | |
shippingFlatAmount | integer | null | no | Flat shipping price in minor units; null clears it. |
title | string | no |
update_profile
Change the account display name or the colour theme preference (system, light or dark).
| Parameter | Type | Required | Notes |
|---|---|---|---|
name | string | no | |
theme | "system" | "light" | "dark" | no |
update_shipping_profile
Rename a profile or replace its countries.
| Parameter | Type | Required | Notes |
|---|---|---|---|
name | string | no | |
profileId | string | yes | |
shipsToCountries | string[] | yes | ISO 3166-1 alpha-2 country codes the profile ships to. |
upgrade_plan
Returns a one-click link to pay for a plan; the checkout page is prefilled and card entry happens there, never in chat. A seller who already pays gets their billing portal link to change plan instead. Ask the user which plan and billing interval they want; never choose for them.
| Parameter | Type | Required | Notes |
|---|---|---|---|
interval | "monthly" | "annual" | no | Ask the user — never choose for them. Billing interval. |
plan | "pro" | "business" | no | Ask the user — never choose for them. The plan to buy. Call list_plans for what each includes. |
Tiers
Every tool belongs to one permission tier, and a credential only reaches the tiers it was granted.
| Tier | Scope | What it covers |
|---|---|---|
read | marka:read | Searching, reading listings, orders, messages and settings |
write | marka:write | Drafts, orders, messages, shipping profiles, checkout policy, channels |
destructive | marka:destructive | publish_listing, remove_listing, cancel_order, void a label, delete a profile |
billing | marka:billing | upgrade_plan, manage_subscription, buy_shipping_label |
account | marka:account | Profile, preferences, delete_account |
connections | marka:connections | get_connect_links, disconnect, reverify |
support | marka:support | create_support_ticket |
keys | marka:keys | create_api_key, rotate and revoke |
Notes on the schemas
- Money is integer minor units. Every
price,minPriceandmaxPriceabove is an integer in the minor unit of the listing's currency —4500is CA$45.00 on aCADlisting. create_listing_draftandupdate_listing_draftwrite to your account. They create and edit drafts, which are not visible to buyers. They also consume your monthly AI copilot run quota (3 on the free plan; unlimited on Pro and Business).- The read tools are public data.
search_listings,get_listing,list_categoriesandget_seller_inforeturn what any visitor to the Marka website can see. list_categoriesreturns the complete set in one call. There is no second page; a largerlimitonly truncates less.
MCP servers
Marka's MCP server does everything the Marka app does. One tool registry, two transports, the hosted gateway and the SDK's stdio bridge that proxies it.
Confirmations and handoffs
How destructive tools ask for a confirmation token, how tools that need your browser return a one-click link, and the denial envelope every refusal uses.