Summary
Run your shop on the Tesco marketplace from an AI agent: orders, acceptance, tracking and shipping, incidents, offers with prices and stock, imports, messages, returns, invoices and transactions. The marketplace sells in the United Kingdom; sign in with the shop API key from your Tesco seller back office.
Guided setup
Connect Tesco Marketplace to Microsoft Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Tesco Marketplace in the guided setup, then add your MCP URL to Microsoft Copilot. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Tesco Marketplace
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Tesco Marketplace, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Tesco Marketplace + Microsoft Copilot
Run your shop on the Tesco marketplace from an AI agent: orders, acceptance, tracking and shipping, incidents, offers with prices and stock, imports, messages, returns, invoices and transactions. The marketplace sells in the United Kingdom; sign in with the shop API key from your Tesco seller back office.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
TESCO_API_KEY
Step 1 — Get credentials
Countries: the United Kingdom.
Who can sell: Tesco takes applications through its seller application form and vets each seller; the business must be registered and VAT-registered in the UK. The connector needs a seller account that Tesco has already opened.
The API key belongs to the user who created it: it stops working if that user is disabled or loses the Owner or Manager role.
Setting up takes about 5 minutes.
- Sign in to the Tesco seller back office:
https://tescouk-prod.mirakl.net/login. - In the back office open your initials (top right) > Personal Settings > API Key and click Generate a new key (or copy the existing key). Paste it into
TESCO_API_KEY. The key is sent as is in theAuthorizationheader, withoutBearer. Generating a new key invalidates the old one, so any other tool using it stops working. - Leave
TESCO_SHOP_IDempty. Only if your user manages several shops on Tesco, setTESCO_SHOP_IDto the numeric id of the shop this connector should work on (shown on the dashboard of the back office next to Identifier or Shop ID, and returned asshop_idbytesco_get_account). Without it your default shop is used. - Install and run
tesco_get_account: it returns the shop the key belongs to.
Where to start: tesco_get_account shows the shop behind the key (id, name, state, currency and channels). For the daily work use tesco_list_orders with order_state_codes=WAITING_ACCEPTANCE, tesco_list_offers for prices and stock and tesco_list_threads for messages that wait for a reply.
Products and competing offers: tesco_get_products looks products up in the Tesco catalog by EAN or another reference and returns the marketplace product SKU; tesco_list_product_offers lists the offers of every shop for given products, best price first, at about 5 calls a minute.
Order workflow: a new order waits in WAITING_ACCEPTANCE. tesco_accept_order accepts (or refuses) every line; after the customer is debited the order moves to SHIPPING. Then tesco_update_tracking stores the carrier and tracking number (carrier codes come from tesco_list_carriers) and tesco_ship_order confirms the shipment (SHIPPED). Later states are TO_COLLECT, RECEIVED, CLOSED, REFUSED and CANCELED. Use tesco_list_orders with order_state_codes=WAITING_ACCEPTANCE for the daily to-do list and has_incident=true for open incidents; tesco_resolve_incident closes an incident on one order line once it is solved. Documents attached to orders (delivery notes, labels, customer invoices) are listed by tesco_list_order_documents.
Writes: confirm first. tesco_accept_order, tesco_update_tracking, tesco_ship_order, tesco_resolve_incident, tesco_accept_return, tesco_receive_return, tesco_update_offers, tesco_reply_thread, tesco_create_order_thread and tesco_import_products act on the live marketplace. Before each call, show the user what will change (order id and lines, tracking number, offer SKU with the old and new price or stock, the message text and recipients) and wait for a yes. Refusing an order line cancels it for good. No tool here refunds, cancels orders or moves money; do that in the back office. tesco_import_offers can delete offers (REPLACE mode deletes every offer missing from the file), so it is installed switched off.
Updating offers (prices and stock): tesco_update_offers (OF24) replaces the whole offer. Every field you leave out is reset: a missing quantity becomes 0, a missing discount or description is deleted. Always read the offer first (tesco_get_offer or tesco_list_offers with sku) and send it back complete with only the intended change: shop_sku, product_id and product_id_type (from product_references), state_code, price, quantity, leadtime_to_ship, logistic_class (its code), min_quantity_alert, description, discount, all_prices, available_started / available_ended (read as available_start_date / available_end_date) and any offer_additional_fields. Leave update_delete empty or update. The call returns an import_id; the change is applied asynchronously, so check it with tesco_get_offer_import before reading the offer again. Condition codes for state_code come from tesco_list_offer_conditions, logistic class codes from tesco_list_logistic_classes.
File imports: tesco_import_products (P41) and tesco_import_offers (OF01) take the URL of a CSV, XLSX or XML file in the file format Tesco asks for; the connector downloads it and uploads it to Tesco. Track them with tesco_list_product_imports / tesco_get_product_import and tesco_list_offer_imports / tesco_get_offer_import.
Returns: tesco_list_returns (RT11) lists return requests. Where Tesco lets the shop decide, tesco_accept_return accepts or refuses one in WAITING_ACCEPTANCE and tesco_receive_return confirms the goods arrived. Refunds stay in the back office.
Messages: tesco_list_threads lists conversations (filter with entity_type=MMP_ORDER and entity_id=<order id> for one order; entity_id without entity_type is refused), tesco_get_thread reads one with its messages, tesco_reply_thread answers (recipient CUSTOMER or OPERATOR, which is Tesco) and tesco_create_order_thread opens a new conversation on an order. Reason codes for topics come from tesco_list_reasons; leave its locale empty unless you know the marketplace has that language (an inactive locale answers 400).
Money: tesco_list_invoices (IV01) lists the accounting documents Tesco issues to the shop and tesco_list_transactions (TL02) the transaction lines (sales, commissions, refunds, payouts). If Tesco uses Enhanced Seller Invoicing, IV01 returns no new documents; use tesco_list_document_requests (DR11) and the transactions then.
Reference lists: tesco_list_channels (country sites), tesco_list_carriers, tesco_list_shipping_zones, tesco_list_shipping_methods and tesco_list_logistic_classes change rarely; read them once per conversation.
Pagination: orders, offers, invoices and product imports page with max (at most 100) and offset. Threads, returns, transactions, document requests and offer imports return a next_page_token; pass it as page_token to get the next page (all other filters are then ignored) until it is missing.
Dates are ISO 8601, e.g. 2026-10-01T00:00:00Z; answers are in UTC.
Rate limits: Each API has its own limit and Tesco can tighten them. Listing offers and orders is meant for interactive use, product and offer imports at most every 15 minutes, tesco_get_account and the reference lists about once a day. A 429 carries a Retry-After header with the seconds to wait; do not retry in a loop.
Errors: 401 means the key is wrong or was replaced by a newer one, 403 that your user lacks the right for this action, 404 that the order, offer or thread does not exist for this shop, 400 a wrong parameter or an order in the wrong state (the message names it, e.g. ORDER_INVALID_STATE).
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Microsoft Copilot
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.
- In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
- Enter a Server name (for example
AnythingMCP), a Server description that says what the connector does, and the Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server. - Under authentication, choose API key, set Type to Header and the header name to
X-API-Key, then select Create. - In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
- Try it in the agent's Test pane: ask for something that needs the
Tesco Marketplacetools. - Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.
Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.
Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.
Available tools
| Tool | What it does |
|---|---|
tesco_get_account | Read the shop behind the API key on this marketplace (A01): shop id and name, state, channels, currency, grade and approval rate, contact… |
tesco_list_orders | List orders (OR11) with their lines, customer, shipping address, prices, state and incidents. Filter by state (e.g. WAITING_ACCEPTANCE for… |
tesco_list_offers | List the shop's offers (OF21): SKU, product, price and discount, all channel prices, quantity in stock, condition, lead time and whether… |
tesco_get_offer | Read one offer in full by its offer id (OF22): every price field, discount, quantity, condition, logistic class, lead time and custom… |
tesco_list_offer_conditions | List the offer conditions (OF61) the marketplace accepts, e.g. new or used, with the code to put in state_code when updating offers |
tesco_list_offer_imports | List offer imports and updates (OF04), from files and from tesco_update_offers: status (WAITING, RUNNING, COMPLETE, FAILED), lines read, in… |
tesco_get_offer_import | Read the status of one offer import or offer update (OF02) by its import_id, as returned by tesco_update_offers or tesco_import_offers… |
tesco_export_offers | Start an export of all the shop's offers as files (OF52), the way to read the whole catalogue (every SKU with price and stock) instead of paging tesco_list_offers |
tesco_get_offer_export_status | Status of an offer export started with tesco_export_offers (OF53): PENDING, COMPLETED or FAILED, and once COMPLETED the urls of the files |
tesco_get_offer_export_file | Read one file of a completed offer export (OF54): the offers with their SKU, product, quantity, prices and the other exported fields, as JSON or CSV |
tesco_list_product_imports | List product imports (P51) with their status (WAITING, RUNNING, SENT, COMPLETE, FAILED, CANCELLED), the transformation counts and the… |
tesco_get_product_import | Read the status of one product import (P42) by its import_id: import status, reason, transformation counts and the integration details… |
tesco_get_products | Look up products in the marketplace catalog by their identifiers (P31), e.g. EAN, and get the marketplace product SKU, title and category.… |
tesco_list_product_offers | List the offers of every shop for given products (P11), sorted by best price, to compare your price with the competition. Give product_ids… |
tesco_list_threads | List message threads (M11) with customers and Tesco: topic, linked order or offer, participants, last message date and since when a shop… |
tesco_get_thread | Read one message thread (M10) with all its messages, senders, recipients, attachments and the linked order or offer |
tesco_list_returns | List return requests (RT11) with their state, return lines, reason, RMA, tracking and the linked order. Filter by state, order or date.… |
tesco_list_reasons | List the marketplace's reason codes (RE01): incident, cancellation, refund and message reasons, with their labels and whether the shop may… |
tesco_list_carriers | List the carriers the marketplace knows (SH21) with their code, label and tracking URL. Use the code as carrier_code in… |
tesco_list_invoices | List the accounting documents Tesco issues to the shop (IV01): invoices and credit notes with period, totals with and without tax… |
tesco_list_transactions | List the shop's transaction lines (TL02): order amounts, shipping, commissions, refunds, manual credits and payouts, with amount, type… |
tesco_list_document_requests | List accounting document requests (DR11), used when Tesco runs Enhanced Seller Invoicing: invoices and credit notes that Tesco or the shop… |
tesco_list_order_documents | List the documents attached to one or more orders (OR72): delivery notes, shipping labels, customer invoices and other files, with id, file… |
tesco_list_channels | List the marketplace's sales channels (CH11), usually one per country site, with code and label. Use the codes as channel_codes in… |
tesco_list_shipping_zones | List the active shipping zones of the marketplace (SH11) with code and label, e.g. mainland France or Corsica. Changes rarely: call it… |
tesco_list_shipping_methods | List the active shipping methods of the marketplace (SH12), e.g. standard, express or pick-up, with code, label, whether a tracking number… |
tesco_list_logistic_classes | List the marketplace's logistic classes (SH31), the size or weight bands that decide shipping prices, with code and label. Use the code as… |
tesco_accept_order | Accept or refuse the lines of an order waiting for acceptance (OR21). Every line of the order must be listed. Refusing a line cancels it… |
tesco_update_tracking | Set the carrier and tracking number of an order (OR23). Give carrier_code from tesco_list_carriers, or carrier_name with carrier_url for a… |
tesco_ship_order | Confirm that an order in SHIPPING has been shipped (OR24); it moves to SHIPPED and the customer is notified. Set the tracking first with… |
tesco_update_offers | Create or update offers, including price and stock (OF24). Replaces each offer completely: every field left out is reset (a missing… |
tesco_reply_thread | Reply in a message thread (M12) to the customer or Tesco. The message is delivered at once and cannot be taken back: show the user the text… |
tesco_create_order_thread | Start a new message thread on an order (OR43) with the customer, Tesco or both. The message is delivered at once: show the user the text… |
tesco_resolve_incident | Mark the open incident on one order line as resolved (OR64), once the customer's problem is solved. reason_code must be an INCIDENT_CLOSE… |
tesco_accept_return | Accept or refuse a return request in WAITING_ACCEPTANCE (RT21). Only when Tesco handles returns in the seller back office and leaves the… |
tesco_receive_return | Confirm that the goods of an accepted return arrived at your warehouse (RT25). The return moves to RECEIVED. Acts on the live marketplace… |
tesco_import_products | Send a product file to the marketplace (P41) to create or enrich products in its catalog. file_url is the address of a CSV, XLSX or XML… |
tesco_import_offers | Import an offer file (OF01) to create, update or delete offers in bulk. REPLACE mode deletes every offer that is not in the file, and… |
Example prompts
- "Which Tesco orders are waiting for my acceptance, and what is their value in GBP?"
- "Set the price of my garden bench SKU GB-TEAK-150 to 179 GBP."
- "Show the open incidents on my Tesco orders."
- "Add DPD tracking 15501234567890 to order 8812345-A and confirm the shipment."
- "Show the invoices Tesco issued me this quarter."
FAQ
Where do I get the Tesco API key? In the Tesco seller back office: your initials (top right), Personal Settings, API Key, then Generate a new key (or copy the existing key). Generating a new key invalidates the old one. If your user has more than one shop, set TESCO_SHOP_ID; otherwise your default shop is used.
Who can sell on Tesco, and which countries does it cover? Tesco takes applications through its seller application form and vets each seller; the business must be registered and VAT-registered in the UK. The connector covers the United Kingdom. The API key belongs to the user who created it: it stops working if that user is disabled or loses the Owner or Manager role.
Can it cancel orders, refund or delete offers? No tool refunds or cancels an order; do that in the Tesco back office. Refusing a line when accepting an order cancels it for good, so the AI shows you every write and waits for a yes. tesco_import_offers installs switched off, because its REPLACE mode deletes every offer that is missing from the file; switch it on on the connector page only if the AI should use it.
Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.
What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.
The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.
Next steps
Was this guide helpful?