Connections

Preview a call to a connected system

connect_preview · Reads only · Markdown

Shows exactly what a call would send (method, full address, headers with the credential hidden, body) without sending it.

Free*

*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.

An example

Show me exactly what you would send to close ticket 4123 before you do it.

Your agent callsconnect_previewFree*

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "connection": "zendesk",
  "method": "PUT",
  "path": "/tickets/4123.json",
  "body": {
    "ticket": {
      "status": "solved"
    }
  }
}
What comes back
{
  "connection": "zendesk",
  "would_send": {
    "method": "PUT",
    "url": "https://hansenvoss.zendesk.com/api/v2/tickets/4123.json",
    "headers": {
      "Accept": "application/json, text/plain;q=0.9, */*;q=0.5",
      "User-Agent": "Conecto-Connect/1.0",
      "Authorization": "[the connection's credential]",
      "Content-Type": "application/json"
    },
    "body": {
      "ticket": {
        "status": "solved"
      }
    }
  },
  "sent": false
}

Use it when

Before a change in a connected system, to show a person what will happen.

What it does

Exactly what connect_call would send, without sending it: the method, the full address with its query, the headers (the credential hidden) and the body. It runs every check a call does, so a refused call is refused here too. Show it to a person before a change. Free.

What comes back

connection; would_send: method, url, headers and body; sent: false. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
connectionRequiredstringThe connection's name. 2 to 40 characters.
methodRequiredstringOne of: GET,POST,PUT,PATCH,DELETE.
pathRequiredstring1 to 500 characters.
queryobject
bodyanyA JSON body for POST, PUT and PATCH.

The call

Over MCP, call connect_preview on https://api.conecto.chat/mcp/connect. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/connect_preview \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"connection":"zendesk","method":"PUT","path":"/tickets/4123.json","body":{"ticket":{"status":"solved"}}}'

When it refuses

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

CodeWhenWhat to do
not_found404No connection has that name.connect_list shows them.
not_allowed403The call is outside the connection's allowed calls.Use an allowed call, or ask the owner to widen them.
invalid_input400The method or path is not valid.A path starts with / and holds no query.

Give this to your agent.

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