universal-tool-calling-protocol/python-utcp

Official python implementation of UTCP. UTCP is an open standard that lets AI agents call any API directly, without extra middleware.

What it solves

UTCP provides a standardized, secure, and scalable way to define and interact with tools across different communication protocols. It eliminates the need to write custom integration code for every new tool or service by providing a universal interface for tool calling.

How it works

The project uses a modular architecture consisting of a core library and a set of pluggable communication protocol plugins.

  • Core Package: Handles data models (using Pydantic), the main client interface (UtcpClient), and the plugin system for tool storage and search.
  • Protocol Plugins: These plugins translate the universal tool calls into specific protocol requests. Supported protocols include HTTP/REST, SSE, CLI, Model Context Protocol (MCP), and local text files, with TCP/UDP and GraphQL in progress.
  • Call Templates: Tools are described using UtcpManual and Tool models, which include a tool_call_template that specifies how to execute the tool via a specific protocol.

Who it’s for

  • AI Developers: Building agents or LLM applications that need to interact with a wide variety of external APIs, CLI tools, and services.
  • Tool Providers: Developers who want to expose their services as UTCP-compliant tools for easy discovery and integration.

Highlights

  • Pluggable Architecture: Easily add new communication protocols or search strategies without modifying the core.
  • Broad Interoperability: Supports diverse interfaces including HTTP, SSE, CLI, and MCP.
  • Flexible Configuration: Clients can be initialized via JSON files, dictionaries, or Python objects.
  • Namespaced Tooling: Tools are organized as manual_name.tool_name to prevent naming collisions.

Related

  • Project
  • Project
  • Project
  • Project
  • Project