carlyemail-toolkit
CarlyEmail's email tools for the OpenAI Agents SDK, LangChain, LiveKit Agents, and any other agent framework. A real inbox your agent can send, receive and reply from, without writing the tools yourself.
pip install "carlyemail-toolkit[openai]" # or [langchain], [livekit]
export CARLYEMAIL_API_KEY=ce_us_...
from agents import Agent
from carlyemail_toolkit.openai import CarlyEmailToolkit
agent = Agent(
name="Inbox",
instructions="Read the thread before replying. Draft when unsure.",
tools=CarlyEmailToolkit().get_tools(),
)
from langchain.agents import create_agent
from carlyemail_toolkit.langchain import CarlyEmailToolkit
agent = create_agent("openai:gpt-5-mini", CarlyEmailToolkit().get_tools())
from livekit.agents import Agent
from carlyemail_toolkit.livekit import CarlyEmailToolkit
agent = Agent(instructions="...", tools=CarlyEmailToolkit().get_tools())
from carlyemail_toolkit import CarlyEmailToolkit # no framework
for tool in CarlyEmailToolkit().get_tools():
tool.name, tool.description, tool.input_schema, tool.read_only
tool(thread_id="...") # runs it
What is in it
The 26 tools the hosted MCP server serves — inboxes, threads, messages, drafts, attachments, labels, and account verification — with the same names, descriptions and parameter schemas, called over the REST API. Pass names to take only some:
tools = CarlyEmailToolkit().get_tools(["list_messages", "get_thread", "reply_to_message"])
A name that is not a tool raises rather than being dropped.
Which inbox
Every tool takes inbox_id, and most work without it. A key scoped to one
inbox means that inbox. An organization with one inbox means that one. With
several, the tools that read threads and drafts look across all of them, and
every other tool refuses and names the inboxes so the agent can ask which —
the same behaviour as the hosted server.
Errors
A failed call comes back to the model as one bounded line carrying the API's
message and the fix it suggests — an Error: … tool result on the OpenAI
Agents SDK, a handled ToolException on LangChain, a ToolError on LiveKit —
so the agent can act on it next turn instead of the run ending.
Metadata
Release files for carlyemail-toolkit 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| carlyemail_toolkit-0.1.9.tar.gz | 14.5 kB | Without provenance | Details for carlyemail_toolkit-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| carlyemail_toolkit-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for carlyemail_toolkit-0.1.9-py3-none-any.whl |
Total release size: 32.2 kB
Release files / carlyemail_toolkit-0.1.9.tar.gz
| Download URL | carlyemail_toolkit-0.1.9.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
184b94df91404cb901dfa7b0513cb7b37368586ae1a5f742c7a94645af3d028a
|
|
BLAKE2b-256 checksum How to use checksums |
9d39d57f69097a9cbaa7623bfc8d9571f00d505fc1f1519500e65e7607407a8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / carlyemail_toolkit-0.1.9-py3-none-any.whl
| Download URL | carlyemail_toolkit-0.1.9-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3904c214ab258de9acb363284e6db0bb7575bc54e6f23cb1afe607ec3339d1a7
|
|
BLAKE2b-256 checksum How to use checksums |
7a1ea85c93e699e0ed1653ea0cf94f98f3b26daeacd01e49c8c9dd02e1e31f9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for carlyemail-toolkit 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.