mcp-server
v0.2.2Yekto MCP Server — let AI agents manage your customer support helpdesk
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_email_accounts
List all connected email accounts (IMAP and Outlook). Use this to get store_id values needed for filtering conversations. Each account has an id, name, email address, and type.
list_shopify_accounts
List connected Shopify stores and which email account each is linked to. The "id" is the shopify_store_id used by find_order, add_tracking and update_tracking. Shopify stores provide customer/order data — they are NOT email accounts.
list_conversations
List email conversations (threaded inbox). Returns conversations with an "id" field — use that id as email_id in read_thread, send_reply, close_ticket, etc. Each row includes customer_email, who sent the last message (customer/agent), and the assigned team member. Searches email bodies too. Results are paginated (20 per page by default). Tip: on large inboxes, filter by status/store/date for faster results.
| Parameter | Type | Description |
|---|---|---|
assigned_to | string | Filter by assignee: "me", "unassigned", a team member user_id, email, or name (see list_team_members). Default: all |
date_from | string | Filter from date (ISO 8601, e.g. 2026-03-01) |
date_to | string | Filter to date (ISO 8601, e.g. 2026-03-31) |
folder | string | Mail folder. Default: inbox (spam is hidden unless requested) |
limit | number | Results per page (default 20) |
page | number | Page number (default 1). Check has_next_page in response to know if more pages exist. |
search | string | Search text — matches the email body (full-text, best for English), the subject, and the sender address. Use for order numbers, product names, phrases, or a customer email. |
status | string | Filter by ticket status. Default: all |
store_id | string | Filter by email account ID (get IDs from list_email_accounts) |
tag_ids | array | Filter by tag ID(s) (get IDs from list_tags). OR logic — matches any tag. |
list_open_tickets
List only open/unresolved tickets for a specific email account. Requires a store_id — call list_email_accounts first to get IDs. Returns conversations with an "id" field usable in other tools, plus customer_email and assigned team member.
| Parameter | Type | Description |
|---|---|---|
store_id * | string | Email account ID (REQUIRED — get from list_email_accounts) |
assigned_to | string | Filter by assignee: "me", "unassigned", a team member user_id, email, or name (see list_team_members). Default: all |
date_from | string | Filter from date (ISO 8601, e.g. 2026-03-01) |
date_to | string | Filter to date (ISO 8601, e.g. 2026-03-31) |
limit | number | Results per page (default 20) |
page | number | Page number (default 1) |
search | string | Search text — matches the email body (full-text, best for English), the subject, and the sender address. Use for order numbers, product names, phrases, or a customer email. |
tag_ids | array | Filter by tag ID(s) (get IDs from list_tags) |
read_thread
Read a full conversation thread — all customer emails, agent replies, and internal notes in chronological order. Every agent reply and note includes the team member who wrote it ("agent": {user_id, name}); "replied_by" summarizes who replied and how often; "tags" lists the conversation tags; "customer_email" is the customer's address for Shopify lookups. Use the "id" from list_conversations as the email_id.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | The conversation ID (the "id" field from list_conversations or list_open_tickets) |
list_team_members
List everyone on the support team with their user_id, name and role. Use it to map names to user_ids for list_replies_by_agent or the assigned_to filter.
list_replies_by_agent
List replies sent from Yektoo across all threads, with the team member who sent each one, newest first. Returns a per-agent summary (reply and thread counts) plus the individual replies (email_id, subject, customer, date, preview). Use for questions like "who answered this customer", "what did Ana reply to today", or "how many replies did each agent send this week".
| Parameter | Type | Description |
|---|---|---|
agent | string | Team member: user_id, email, or name (see list_team_members). Omit for all agents. |
date_from | string | From date/time (ISO 8601, e.g. 2026-10-01) |
date_to | string | To date/time (ISO 8601, e.g. 2026-10-31) |
limit | number | Maximum replies to return (default 100, max 1000) |
send_reply
Send a reply to the customer. It is emailed immediately (no review step) from the store's email account, formatted like the web app: paragraphs, the agent's signature, and {{variables}} filled from Shopify. If a {{variable}} cannot be filled, nothing is sent and the error says which. Use the "id" from list_conversations as email_id.
| Parameter | Type | Description |
|---|---|---|
content * | string | The complete message, sent immediately to the customer. Plain text with blank lines between paragraphs (converted to HTML), or HTML. Do not add a name/company signature — the agent's signature is ap… |
email_id * | string | The conversation ID to reply to (the "id" field from list_conversations) |
signature | boolean | Append the agent's email signature for this mailbox (default true). Set false only if the content already includes it. |
reply_and_close
Send a reply AND close/resolve the ticket in one step. Use when the issue is resolved and you want to send a final message. Same formatting, signature and {{variable}} handling as send_reply; if the reply cannot be sent, the ticket is left open.
| Parameter | Type | Description |
|---|---|---|
content * | string | The complete message, sent immediately to the customer. Plain text with blank lines between paragraphs (converted to HTML), or HTML. Do not add a name/company signature — the agent's signature is ap… |
email_id * | string | The conversation ID (the "id" field from list_conversations) |
signature | boolean | Append the agent's email signature for this mailbox (default true). Set false only if the content already includes it. |
close_ticket
Close/resolve a ticket without sending a reply. Closes the entire conversation thread. Use reply_and_close instead if you also need to send a message.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | The conversation ID to close (the "id" field from list_conversations) |
reopen_ticket
Reopen a previously closed/resolved ticket. Changes the status back to open.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | The conversation ID to reopen (the "id" field from list_conversations) |
add_note
Add an internal note to a conversation. Internal notes are visible ONLY to support agents — the customer will NOT see this. Use for leaving context for other team members.
| Parameter | Type | Description |
|---|---|---|
content * | string | Note content in plain text |
email_id * | string | The conversation ID (the "id" field from list_conversations) |
assign_ticket
Assign a conversation (every email in the thread) to a team member, or unassign it. Same as the assignment dropdown in the web app.
| Parameter | Type | Description |
|---|---|---|
assignee * | string | Team member name or user_id (see list_team_members), "me", or "unassigned" |
email_id * | string | The conversation ID (the "id" field from list_conversations) |
tag_ticket
Add tags to a conversation (applies to the whole thread). Accepts tag names or IDs. Tag routing rules run as in the web app, so a tag may auto-assign the ticket.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | The conversation ID (the "id" field from list_conversations) |
tags * | array | Tag names or IDs (see list_tags) |
untag_ticket
Remove tags from a conversation (the whole thread). Accepts tag names or IDs.
| Parameter | Type | Description |
|---|---|---|
email_id * | string | The conversation ID (the "id" field from list_conversations) |
tags * | array | Tag names or IDs (see list_tags) |
lookup_customer
Look up a customer by email address in Shopify. Returns the customer profile (name, phone, total spend, order count) and their 10 most recent orders, each with ALL shipments and tracking numbers (fulfillments[].tracking[] with number, carrier and URL), the order status page URL, line items, payment status and shipping address. Use the "customer_email" field from read_thread / list_conversations. If nothing is found (customer wrote from another address), use find_order with the order number or tracking number instead.
| Parameter | Type | Description |
|---|---|---|
customer_email * | string | Customer email address (the "customer_email" field from read_thread or list_conversations) |
store_id | string | Optional email account ID — limits the lookup to the Shopify store linked to that email account |
find_order
Find Shopify orders by order number, tracking number, or customer email — across all connected Shopify stores. Returns each order with its shopify_store_id, id, all shipments (fulfillments with id + tracking numbers + carrier), order status page URL, items and shipping address. Provide exactly one of order_number, tracking_number, or email. Tracking-number search scans orders shipped in the last 180 days.
| Parameter | Type | Description |
|---|---|---|
email | string | Email address used on the order |
order_number | string | Order number as the customer wrote it, e.g. "#1234", "1234" or "YT1234" |
shopify_store_id | string | Optional — limit to one Shopify store (from list_shopify_accounts) |
tracking_number | string | Shipment tracking number |
add_tracking
Add a tracking number to a Shopify order by marking its remaining unfulfilled items as shipped (creates a fulfillment). Use when the order is unfulfilled or partially fulfilled. To change the tracking number on an order that is already shipped, use update_tracking instead. Requires the store's Shopify app to have fulfillment write scopes.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | Order ID (the "id" field of an order from find_order / lookup_customer — NOT the "#1234" order number) |
shopify_store_id * | string | Shopify store ID (store.shopify_store_id from find_order / lookup_customer, or id from list_shopify_accounts) |
tracking_number * | string | The tracking number |
company | string | Carrier name as Shopify knows it, e.g. "UPS", "USPS", "FedEx", "DHL Express", "Japan Post (EN)", "Yamato (JA)". Shopify builds the tracking link automatically for known carriers. |
notify_customer | boolean | Send Shopify's shipping confirmation/update email to the customer (default true) |
url | string | Tracking URL — only needed for carriers Shopify does not recognize |
update_tracking
Change the tracking number / carrier on an existing shipment (fulfillment) of a Shopify order. Get fulfillment_id from the order's fulfillments list in find_order / lookup_customer. Requires the store's Shopify app to have fulfillment write scopes.
| Parameter | Type | Description |
|---|---|---|
fulfillment_id * | string | Fulfillment (shipment) ID — fulfillments[].id from find_order / lookup_customer |
shopify_store_id * | string | Shopify store ID (store.shopify_store_id from find_order / lookup_customer, or id from list_shopify_accounts) |
tracking_number * | string | The tracking number |
company | string | Carrier name as Shopify knows it, e.g. "UPS", "USPS", "FedEx", "DHL Express", "Japan Post (EN)", "Yamato (JA)". Shopify builds the tracking link automatically for known carriers. |
notify_customer | boolean | Send Shopify's shipping confirmation/update email to the customer (default true) |
url | string | Tracking URL — only needed for carriers Shopify does not recognize |
check_shopify_access
Diagnose what Yektoo can do in each connected Shopify store: the permission scopes its token actually has, whether order lookup, customer data (names/emails — Shopify "protected customer data"), tracking management and full order history work, plus how to fix anything missing. If the store's permissions were changed recently, this also fetches a fresh token so the new permissions take effect. Use it when find_order, lookup_customer, add_tracking or update_tracking report access problems.
| Parameter | Type | Description |
|---|---|---|
shopify_store_id | string | Check one store (from list_shopify_accounts); omit to check all |
list_tags
List all email tags (AI Auto Tags and custom tags). Use the "id" field from results as tag_ids in list_conversations or list_open_tickets to filter by tag.
list_templates
List all reply templates. Templates may contain {{variables}} like {{customer_first_name}} or {{order_number}} — send_reply fills them from the customer's Shopify data when sending (and refuses to send if one can't be filled). Use get_template to see full content before using in a reply.
get_template
Get the full content of a reply template. Returns both plain text and HTML versions, plus detected {{variables}}. Pass content_html (keeps formatting) or content_plain as the content for send_reply — variables are filled automatically when sending.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | Template ID (the "id" field from list_templates) |
get_csat_report
Get CSAT (Customer Satisfaction) survey report — average rating, response rate, score distribution, per-agent breakdown, and recent individual responses.
| Parameter | Type | Description |
|---|---|---|
days | number | Report period in days (default 30) |