Most services an agent needs don't have an MCP server. They have a REST API, a key and a page of docs. The usual answer is to hand the agent the key and let it figure out curl. That works until it doesn't: the agent guesses an endpoint, gets the auth header wrong, burns ten turns reading docs, and along the way the key sits on its machine where any command can print it. Lark takes a different route. It turns the API into UTCP tools: named operations with typed inputs that agents call like any other tool, while Lark makes the HTTP call and adds the key itself. It's how an agent gets safely into every tool your company runs on, so it can run that part of the company itself.
What UTCP is
UTCP, the Universal Tool Calling Protocol, is a simple open format for describing tools that already exist as APIs. A UTCP manual is a JSON file listing tools. Each tool has:
- a name and a description the model reads to decide when to use it,
- inputs, as JSON Schema, so the model knows exactly what to send,
- a call template saying how to make the call: the URL (with
{placeholders}filled from the inputs), the HTTP method, which input is the body, which are headers.
Unlike MCP, there's no server to run. The manual describes the API as it is, and whatever reads the manual makes the calls directly. That makes it a natural fit for the long tail of APIs nobody has wrapped in an MCP server yet.
Here's one tool from the manual Lark uses for Bland's text-to-speech API:
{
"utcp_version": "1.0.1",
"tools": [
{
"name": "list_shared_voices",
"description": "Browse the public Bland voice library. Supports search over name, description and tags, and a language filter.",
"inputs": {
"type": "object",
"properties": {
"search": { "type": "string", "description": "Free-text search, e.g. 'warm narrator'" },
"language": { "type": "string", "description": "A language code, e.g. 'en'" },
"limit": { "type": "integer", "description": "How many to return. Default 50." }
}
},
"tool_call_template": {
"call_template_type": "http",
"url": "https://api.bland.ai/v1/voices/shared",
"http_method": "GET"
}
}
]
}
A URL can be absolute on the API's host or relative to the connector's base URL. Inputs that aren't in the path, the body or the headers go in the query string, so search and language become ?search=…&language=en. There's no auth anywhere in it: that's on purpose.
How Lark turns an integration into UTCP tools
In Lark, an API connector starts as a base URL and a key, stored encrypted for the organization. On its own, an agent can only call it blind. Giving it tools takes one of three routes, from the connector's card under Integrations:
- Import OpenAPI. If the API publishes an OpenAPI description, paste or upload it. Lark creates one tool per operation, with the operation's summary as the description and its parameters and request body as the inputs.
- Build tools with an agent. For APIs without a usable OpenAPI file, Lark starts a short one-off run that reads the API's docs, saves the official OpenAPI description if it finds one or writes the tools itself, and tries a few read-only calls to check they work. For GraphQL APIs like Linear's, it writes a tool per common query. It hands over a
utcp.jsonyou review on the run page, then Apply tools from that run. - Send a manual yourself.
POSTorPATCH /api/connectorswith amanual, for a manual you wrote or generated elsewhere.
Each tool then shows up for agents as connector__tool, for example bland__synthesize_speech or linear__list_issues.
What happens when an agent calls a tool
The call never leaves from the agent's machine with a key on it:
- The agent calls
bland__list_shared_voiceswith{"search": "warm narrator", "language": "en"}. - Lark checks the inputs, fills in the URL template and builds the request.
- Lark adds the connector's credential on the way out, from its encrypted store.
- Lark sends the request, but only to the connector's own host. A manual can't point a tool at another domain, and call templates can't set their own auth headers, so a bad or malicious manual has no way to send the key somewhere else.
- The answer comes back to the agent. Long text answers are trimmed inline with the whole response saved as a file. Binary answers (audio, images, PDFs) are kept as files the run can download, instead of a wall of bytes in the model's context.
Built-in Lark agents get the tools natively, including in runs without a machine at all. Claude Code agents get them as an MCP server on Lark's gateway, so the same manual works in both.
Why it's worth it
Agents get it right the first time. A tool with a description and a schema tells the model what exists and what to send. No guessing at endpoints, no reading docs mid-task, far fewer failed calls. Fewer wasted turns also means cheaper runs.
The key never touches the agent's machine. With raw curl, the key is an environment variable on a computer where the agent runs arbitrary commands, installs packages and browses the web. With UTCP tools it stays on Lark's server. There's nothing to leak in a log, a commit or a prompt injection.
The calls can only go one place. The host lock means a tool can only reach the API it was made for.
It works for any HTTP API. No waiting for a vendor to ship an MCP server, and no server of your own to host. If it has an OpenAPI file, it's a minute's work; if it doesn't, an agent writes the manual.
Answers are shaped for agents. Filters in the inputs (search a voice list instead of reading all of it), trimmed long answers and files for binary output keep the model's context small and focused.
When to use MCP instead
UTCP isn't a replacement for MCP. If a service has an official MCP server, such as Linear, Notion or GitHub, connecting that is usually better: one click under Integrations, maintained by the vendor, often with richer tools. Use UTCP for everything else: internal APIs, smaller SaaS tools, and services whose only interface is REST. Most teams end up with both, side by side, on the same agents.
Example: narration for a video agent with Bland
Lark's overnight video editor needs a voice-over for each short. Bland has a good text-to-speech API and no MCP server, so it's connected as an API connector with UTCP tools.
- Add Bland as an API connector: its base URL and the
BLAND_API_KEYsecret. - Give it tools. Its manual has 24 tools, built from Bland's docs: listing and searching voices, synthesizing speech, cloning voices, reading model limits. Each has a description written for an agent ("Requires a voice UUID from list_voices. Prefer BTTS_V3 voices.").
- Give the tools to the video agent. It calls
bland__list_shared_voiceswith a search and a language instead of reading a list of over a thousand voices, picks one, then callsbland__synthesize_speechwith the script and"container": "wav". - Get a file back. The WAV comes back as a file the run downloads onto its machine, ready to mix under the video, not as bytes in the model's context.
The video agent never sees the Bland key, and it can't call any host but Bland's.
FAQ
What's the difference between UTCP and MCP?
MCP connects an agent to a server that exposes tools; someone has to build and run that server. UTCP describes an existing API's operations as tools, and the client calls the API directly. Lark supports both: MCP for services with an MCP server, UTCP for any HTTP API.
Does the agent ever see the API key?
No. Lark adds the credential to each request on its own server and sends it only to the connector's host. The agent's machine doesn't have it, so it can't print, commit or leak it.
Can I turn a GraphQL API into UTCP tools?
Yes. The agent that builds tools writes one tool per common query or mutation, each with its own inputs, so agents don't have to write GraphQL by hand.
Can I use the same tools from Claude Code?
Yes. Claude Code agents on Lark get a connector's UTCP tools through an MCP server on Lark's gateway. And from Claude Code on your laptop, you can hand tasks to Lark agents that use them.
Start free and turn your first API into tools in a few minutes.