Email

Mark where a thread stands

email_update_thread · Changes data · Markdown

Marks an email thread open, waiting, handled or archived, and sets its labels.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

Paul has his answer about the repair. Mark that conversation as handled and label it repairs.

Your agent callsemail_update_thread$0.001 a call

The example business is Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon. The reply is the one the tool really gives.

With these arguments
{
  "message_id": "6e0b3f52-8d1a-4c7e-b2f9-3a5d7c9e1f04",
  "state": "handled",
  "labels": [
    "repairs"
  ]
}
What comes back
{
  "thread": "<CAF7d2k1x@mail.example.com>",
  "state": "handled",
  "labels": [
    "repairs"
  ]
}

Use it when

An email was answered or dealt with, so the next look at the inbox skips it.

  • For a support request with its own status, owner and priority, use ticket_update.

What it does

Mark an email thread open (needs a reply), waiting (on the other side), handled or archived, and set its labels, so you never reread or answer twice what you already dealt with: email_list_messages filters by state and label. A new message from outside opens a thread again. $0.001.

What comes back

The thread, its state and its labels. email_list_messages finds messages by both. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
message_idRequiredstringAny message of the thread. Exactly 36 characters.
statestringOne of: open,waiting,handled,archived.
labelsarray of stringsReplaces the thread's labels. Up to 20 items.

The call

Over MCP, call email_update_thread on https://api.conecto.chat/mcp/email. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/email_update_thread \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message_id":"6e0b3f52-8d1a-4c7e-b2f9-3a5d7c9e1f04","state":"handled","labels":["repairs"]}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404No message of the business has that message_id.Find the message with email_list_messages and use its message_id.
invalid_input400Neither state nor labels was given, or the message came without a Message-ID, so it has no thread.Give state, labels or both.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md