Tether
DocsPricingContactGet started

API reference

Tools

Three endpoints govern the entire universe of what a model can reach on your behalf. Registering a catalog is the moment you declare which of your capabilities mutate state.

Read the current catalog

GET /v1/tools
{
  "version": 3,
  "tools": [ { "name": "get_open_tickets", "description": "…", "is_write": false, "parameters": { } } ],
  "toolCount": 12,
  "writeToolCount": 4,
  "registeredAt": "2026-08-20T11:04:52Z",
  "import": {
    "baseUrl": "https://api.yourcompany.com",
    "toolCount": 12,
    "importedAt": "2026-08-20T11:02:10Z",
    "source": { "kind": "repository", "commit": "4e1c9a…", "path": "docs/api/openapi.json", "dirty": false }
  }
}

tools is the exact JSON you registered, stored whole and returned unmodified. A tenant that has never registered gets version: 0 and an empty array rather than a 404. import is the last successful import: where its operations are called, how many it found, when, and its source, or null when the tenant has imported nothing. The credential is never shown.

Validate without registering

POST /v1/tools/validate

Identical validation to PUT, with no side effect. This is what belongs in CI.

curl -X POST https://api.trytether.ge/v1/tools/validate \
  -H "X-Api-Key: $TETHER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @tools.json
{
  "valid": true,
  "toolCount": 2,
  "writeToolCount": 1,
  "tools": [
    { "name": "get_open_tickets", "domain": "orders", "isWrite": false, "risk": "low",
      "requiresScope": true, "surfaces": { "chat": true, "agent": true } },
    { "name": "void_ticket", "domain": "orders", "isWrite": true, "risk": "high",
      "requiresScope": false, "surfaces": { "chat": false, "agent": true } }
  ]
}

On failure, 400:

{
  "valid": false,
  "code": "catalog_invalid",
  "error": "Tool catalog is invalid — names must match ^[a-z][a-z0-9_]{2,63}$ (the provider rejects anything else): VoidTicket; no description, so the model would call them at random: get_stock."
}

Every problem is reported in one message rather than one at a time.

Register a catalog

PUT /v1/tools

The body is a JSON array of tool specs. It replaces the catalog entirely — there is no partial update, and a tool absent from the array is a tool that no longer exists.

curl -X PUT https://api.trytether.ge/v1/tools \
  -H "X-Api-Key: $TETHER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @tools.json
{ "registered": true, "version": 4, "toolCount": 12, "writeToolCount": 4 }

Rejected catalogs return 400 with the same error string as validation, "registered": false and "code": "catalog_invalid". The previous catalog stays live — a bad deploy of your catalog does not leave the tenant with no tools.

Importing

POST /v1/tools/import

Turns an OpenAPI document into a catalog whose calls go straight to your API, so you do not host a tool endpoint. Nothing is registered by this call.

FieldNotes
documentRequired. The OpenAPI document itself, as a JSON object. A url is not accepted; the CLI reads a file for you.
baseUrlRequired. Where the operations are called. It passes the same address checks as a tool endpoint.
operationsYour declarations as an object keyed by operation name, each with is_write and, for a write, risk: { "cancel_order": { "is_write": true, "risk": "high" } }, or { "skip": true } to leave the operation out. A declaration may also carry description, parameters, domain, name, requires_customer and, on a write, a precondition, a verify and outcomes, which are copied into the catalog as written.
skipUndeclaredtrue leaves out every operation operations does not name. Optional; without it, an undeclared operation refuses the import.
credentialSent as Authorization: Bearer … on every call to baseUrl. Optional.
sourceOptional. Where the document came from: { "kind": "repository", "commit": "<git commit id>", "path": "docs/api/openapi.json", "dirty": false }, with the same rules as a knowledge document's. It is echoed on the draft refusal and kept with a successful import, shown as import.source on GET /v1/tools. A malformed one refuses the import, naming the field. tether publish sends it.
userTokenignore, prefer or require: whether a call uses the signed-in person's own token instead of credential. See Calling your API as the signed-in user. Optional; a re-import without it keeps the previous mode, and a first import starts at ignore.

It takes two calls. The first has no operations and is refused on purpose, with a list of what it found. Each entry carries suggested_is_write from the HTTP verb; nothing reads it.

{
  "imported": false,
  "error": "Import refused — 2 operation(s) do not declare is_write, …",
  "operations": [
    { "name": "cancel_order", "method": "POST", "path": "/orders/{orderId}/cancel", "description": "…", "parameters": { }, "suggested_is_write": true }
  ],
  "source": null
}

A repository's CI key (tci_) may make this first call only, with a source: Tether records the draft, and the same call with operations, a credential or skipUndeclared is 403 insufficient_scope with reason ci_draft_only. Declaring is a person's.

Send the second call with operations filled in and credential set. It answers imported: true with the catalog, every entry carrying an http binding (and, where the document gives example values, examples, documentation the model never sees), the operations it skipped, and warnings about descriptions the model is likely to misread. Review it, then register it with PUT /v1/tools:

{
  "imported": true,
  "baseUrl": "https://api.yourcompany.com",
  "userToken": "ignore",
  "toolCount": 2,
  "writeToolCount": 1,
  "catalog": [ "…" ],
  "skipped": [ { "name": "admin_list_all", "method": "GET", "path": "/admin/all" } ],
  "warnings": [
    { "operation": "search_shops", "parameter": "carIds", "code": "optional_number",
      "message": "An optional number the model tends to fill, often with 0, which narrows or empties the results. Describe when to leave it out, or omit it." }
  ]
}

Choosing what to import

Most documents describe more than an assistant should touch: sign-in, uploads, administration. Leaving an operation out is a third answer beside read and write, and never a read. An operation that is left out is not in the catalog at all, so it cannot be called.

  • { "skip": true } leaves one operation out. It needs no description and no valid name, and it cannot be combined with is_write.
  • "skipUndeclared": true leaves out every operation operations does not name. Declare only what the assistant may use.
  • A declaration that names an operation the document does not have is refused, so a typo is an error rather than a missing capability.
  • Skipping everything is refused.

Describing operations and inputs

The text the model reads decides whether it calls the right operation with the right inputs. You can write it in the declaration instead of editing your OpenAPI document:

"search_shops_near": {
  "is_write": false,
  "description": "Find repair shops near a point, nearest first. Use it whenever the visitor names a place.",
  "parameters": {
    "lat": { "required": true, "description": "Latitude of the place the visitor named." },
    "serviceId": { "description": "A child category id from list_services. Leave it out if no service was named." },
    "carIds": { "omit": true }
  }
}
  • description replaces the document's summary and description. An operation the document left undescribed imports when the declaration gives one.
  • parameters.<name>.description replaces that input's description; required: true makes the model supply it; omit: true takes an optional input away from the model.
  • An input the document requires cannot be omitted or made optional, and an input the operation does not have is refused.

The draft is validated as PUT /v1/tools would validate it. An input whose schema the model provider would refuse, such as a minimum written as a string, refuses the import with 400 and code catalog_invalid, naming the operation and the path, rather than drafting a catalog that fails every turn. Fix it in the document, or leave an optional input out with omit: true.

warnings never block an import. Their codes are short_description (under 40 characters), optional_number (an optional, undescribed number or list of numbers), undescribed_id (an id with no word on where it comes from) and undescribed_optional. See Describing your API for the assistant.

The credential is stored when you send it on this second call, not when you register, and can be changed later without importing again: see Changing the connection. If your API later answers 401 or 403, the tool result says which credential was sent: the signed-in person's own token, which has probably expired, the stored credential, which you should check, or none, with how to store one. It never repeats either.

A write in an imported catalog stages and waits for confirmation exactly as a native one does; your API is not called until it is confirmed.

When your API refuses a confirmed write

Once confirmed, the write is sent once. Tether reads your answer by its status:

Your answerWhat happens to the action
Any 2xxExecuted, whatever the body: none (a 201 with a Location header, a 204) is recorded as {}, and one that is not JSON as {"body": "…"}
A 2xx that is a web page (text/html)Indeterminate. A page usually means the base URL points at a web site rather than your API, so it is held for reconcile
A 4xx other than 408 and 429Refused. You did not apply it. It settles as failed with your reason, and is never retried
408 or 429Not applied; it goes back to pending, so a person can confirm it again
A 5xx, a timeout (on the headers or the body), or a connection lost after sending or partway through the answerIndeterminate. It may have been applied, so it is held for reconcile

The reason is read from your error body: {"error": {"code", "message" or "detail"}}, {"error": "<code>", "message"}, RFC 7807's title and detail, the first of errors, {"code", "message"}, or plain text. The confirm answers 409 with status ProviderRefused and that reason, the audit records provider_refused, and your events webhook receives action.provider_refused. Nothing is verified, because nothing ran.

If one of your 4xx statuses can mean the request is still running, declare it on the operation, so the write is reconciled instead of refused:

{ "cancel_order": { "is_write": true, "risk": "high", "outcomes": { "409": "indeterminate" } } }

outcomes is copied into the tool's http binding. Each key is a status from 400 to 599, each value refused or indeterminate. A 5xx cannot be declared refused, because a server error after the request was sent does not prove the write was not applied.

Finding the document

POST /v1/tools/import/discover

Looks for a published OpenAPI document on a website, so you need not know where yours is before you import it, and for an MCP server at the usual addresses beside it. Secret key only; any other key is refused 403 insufficient_scope. It stores, imports and registers nothing.

curl -X POST https://api.trytether.ge/v1/tools/import/discover \
  -H "X-Api-Key: $TETHER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "site": "https://yourshop.ge" }'
FieldNotes
siteOptional. The website, as an http or https address; a bare host such as yourshop.ge is read as https. Omitted or empty, Tether uses the site of the preview sandbox this workspace was kept from, else the site its last website preview read

Tether asks for eight paths, /openapi.json, /swagger.json, /swagger/v1/swagger.json, /v3/api-docs, /api-docs, /api/openapi.json, /api/swagger.json and /docs/openapi.json, on the site's host and on the api. host of its registrable domain (api.yourshop.ge for www.yourshop.ge, api.yourshop.co.uk for shop.yourshop.co.uk), over https unless the deployment allows insecure endpoints. The probes run together, through the same outbound guard as every call Tether makes to an address it did not choose: 8 seconds each and 15 seconds for the whole search, at most 1 MiB a document, and at most three redirects, each on the same host. A probe that fails, times out or finds something else is passed over without an error.

At the same time, and within the same 15 seconds, it asks four addresses whether an MCP server answers there: /mcp on the site's host, /mcp on the api. host, and / and /mcp on the mcp. host of the registrable domain. Each is one MCP initialize request (JSON-RPC over HTTP POST, protocol version 2025-03-26, accepting JSON or an event stream), 8 seconds each, no redirect followed, at most 1 MiB read. A server counts when it answers 2xx with a result that carries serverInfo.name. Nothing follows the initialize: no tool is listed or called.

{
  "site": "https://yourshop.ge",
  "tried": 16,
  "candidates": [
    {
      "url": "https://api.yourshop.ge/openapi.json",
      "title": "Yourshop API",
      "version": "1.4.0",
      "operationCount": 23,
      "baseUrl": "https://api.yourshop.ge/v1",
      "document": { "openapi": "3.0.3", "info": { "title": "Yourshop API", "version": "1.4.0" }, "paths": { } }
    }
  ],
  "mcpServers": [
    { "url": "https://mcp.yourshop.ge/", "name": "Yourshop MCP", "version": "0.4.1" }
  ]
}
FieldNotes
siteThe origin that was searched
triedHow many addresses were asked for a document: eight, or sixteen with the api. host. The MCP probes are not counted
candidatesEvery OpenAPI 3 or Swagger 2 document found with at least one operation, the same document found at two addresses listed once. Empty when there is none, which is still 200
urlWhere it was found, after any redirect
title, versionThe document's info.title and info.version, or null
operationCountOperations under paths
baseUrlA suggestion for the import's baseUrl: the first usable servers entry, with its variables' defaults filled in and a relative one resolved against url; for Swagger 2, host and basePath; otherwise the origin it was found on
documentThe whole document, ready to send as the import's document
mcpServersEvery MCP server that answered, in the order above. Empty when none did
mcpServers[].urlThe address that answered, ready to send as url to PUT /v1/upstreams
mcpServers[].name, mcpServers[].versionThe server's serverInfo.name (at most 200 characters) and serverInfo.version (at most 100), or null for a version it did not give

Review a candidate as you would any document, then send it to POST /v1/tools/import with a baseUrl of your choosing; connect a server it found with PUT /v1/upstreams. Errors use the { "error": { "code", "message" } } envelope:

StatusCodeCause
400site_requiredNo site was sent and the workspace has no website from a preview to look at
400invalid_site_urlThe site is not an http or https address, or carries a user name or password

Testing the connection

POST /v1/tools/import/check

Asks your API once whether it answers at the base URL, and whether it accepts the credential, before you import. It is the console's Test the connection. Secret key only; any other key is refused 403 insufficient_scope. It stores, imports and registers nothing.

curl -X POST https://api.trytether.ge/v1/tools/import/check \
  -H "X-Api-Key: $TETHER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "baseUrl": "https://api.yourshop.ge/v1", "credential": "sk_live_…", "path": "/orders?limit=1" }'
FieldNotes
baseUrlRequired. The base URL you will import with. It passes the same address checks as the import's baseUrl.
credentialOptional. Sent as Authorization: Bearer …, exactly as an imported call sends it. At most 4000 characters; empty or whitespace sends none.
pathOptional. A path on the base URL to ask for, starting with /, with a query if you like; at most 2048 characters, with no scheme, host, backslash or spaces. Without it, /.

Tether sends one GET to baseUrl followed by path, through the same outbound guard as every call to your API, within 5 seconds. It follows no redirect, never reads the body, and stores nothing, the credential included.

{ "reachable": true, "status": 200, "ms": 143, "authAccepted": true, "error": null }
FieldNotes
reachabletrue when your API answered with any status
statusThe HTTP status it answered with, or null when it did not answer
msHow long the check took, in milliseconds
authAcceptedfalse when the status is 401 or 403, true for any other status, whether or not a credential was sent; null when it did not answer
errorWhy it did not answer (a timeout, a refused address, a failed connection), or null

An API that does not answer is still 200, with reachable: false. A redirect is reported as its own status, not followed, so a 3xx usually means the base URL is not quite where your API lives. Errors use the { "error": { "code", "message" } } envelope:

StatusCodeCause
400invalid_base_urlNo baseUrl, or the address checks refused it or the address it makes with path
400invalid_pathpath does not start with /, is longer than 2048 characters, or carries a scheme, host, backslash or space
400invalid_credentialcredential is over 4000 characters

Changing the connection

PATCH /v1/tools/api

Changes the stored credential, the user-token mode, or both, on the API you imported, without importing again. Secret key only; any other key is refused 403 insufficient_scope.

curl -X PATCH https://api.trytether.ge/v1/tools/api \
  -H "X-Api-Key: $TETHER_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "credential": "sk_live_new", "userToken": "prefer" }'
FieldNotes
credentialA string. Omitted, the stored credential is unchanged; "" clears it. At most 4000 characters
userTokenignore, prefer or require. Omitted, the mode is unchanged. See Calling your API as the signed-in user

Send at least one of them, and nothing else: an unknown field, an empty body, a credential that is not a string or a userToken outside the three modes is refused with 400 and { "error": "…" }. The answer never contains the credential:

{ "baseUrl": "https://api.yourcompany.com", "userToken": "prefer", "credentialStored": true }

When nothing has been imported, it answers 404, and you import first with POST /v1/tools/import. The change applies from the next request; a turn already running keeps the connection it started with.

Versioning

Each registration writes a new row and marks the previous one not-current. Nothing is overwritten.

Two reasons, both operational: a turn already choosing tools keeps the catalog it started with rather than having it change underneath, and a customer whose assistant got worse can see exactly what the previous version contained.

The catalog is read once per request and cached for that request's lifetime.

Validation rules

Rejected whenMessage fragment
A tool has no nametool(s) have no name
A name breaks the patternnames must match ^[a-z][a-z0-9_]{2,63}$
A tool is named tether_handoff, the engine's own handoff capabilityuse a name reserved for a capability the engine provides itself
A tool is named tether_catalog_search, the engine's own catalogue searchuse a name reserved for a capability the engine provides itself
A description is emptyno description, so the model would call them at random
Two tools share a namedeclared more than once
chat_eligible and agent_eligible are both falseregistered but offered on no surface
A read declares a risk above lowdeclared a risk level but not declared a write, so nothing would gate them
A precondition names a missing read, maps an argument either side lacks, or is malformedhave a precondition …; every case is in the tool spec reference
A verify breaks the same ruleshave a verify …, or declared a verify but not declared a write
An http binding's outcomes is not statuses from 400 to 599 mapped to refused or indeterminate, is on a read, or calls a 5xx refusedhave http outcomes that are not …, declared http outcomes but not declared a write, declare a 5xx status refused
A tool's parameters is a schema the model provider would refuse, such as examples as an object or "type": "file", which would fail every turn that offers the toolhave parameters the provider would refuse, so every turn that offered them would fail, each tool with its path; every case is in the tool spec reference

Name comparison for duplicates is case-insensitive, so get_tickets and Get_Tickets collide — and the second would have been rejected by the pattern anyway. At call time a name is matched exactly: a model, or a caller, that asks for Get_Tickets is told no such tool is available, and POST /v1/tools/Get_Tickets/call answers 404 unknown_tool.

Fields

Every field of a tool spec is documented in the tool spec reference. The minimum viable tool is three fields:

{
  "name": "get_open_tickets",
  "description": "Lists open tickets for a site, newest first. Use when the user asks what is outstanding or still open.",
  "is_write": false
}

parameters defaults to an empty object schema. Everything else has a default, and is_write defaults to false — conservative, because a tool wrongly treated as a read is merely useless, while the reverse executes without a confirmation.

An unparseable stored catalog

If a stored catalog somehow fails to parse at request time, the tenant is served zero tools for that request and the failure is logged. The assistant degrades to answering from context alone rather than the request failing.

That is a bad day, not an outage — but it is silent from the caller's side, so the CI check is the place to catch it.