Tools, Runtimes, and Services
Use this sub-skill when a task needs CAMEL agents to call tools, expose tools through services, or execute code in a controlled runtime. It covers camel.toolkits, FunctionTool, toolkit get_tools() patterns, MCPToolkit, OpenAPIToolkit, CodeExecutionToolkit, TerminalToolkit, camel.runtimes, camel.interpreters, CAMEL agent MCP service patterns, and camel.services.agent_openapi_server.
Do not use this sub-skill for provider/model credentials or model backend selection; route that to the model/provider sub-skill. Do not use it for retrieval-specific memory/RAG tools beyond high-level routing; route retrieval work to ../memory-rag-and-data/SKILL.md when available. Do not use it for multi-agent loop design except to show how the agent receives tools.
Fast Routing
- For custom Python functions and tool schemas, read references/api-reference.md and optionally run scripts/inspect_tool_schema.py.
- For selecting a built-in toolkit or optional extra, read references/toolkit-catalog.md.
- For MCP, OpenAPI, terminal/code execution, runtimes, interpreters, AgentOpenAPI, or service deployment patterns, read references/runtime-service-patterns.md.
- For failures around schemas,
external_tools, missing extras, API credentials, MCP startup, Docker/browser/runtime availability, sandbox safety, or OpenAPI auth, read references/troubleshooting.md.
Minimal Patterns
from camel.agents import ChatAgent
from camel.toolkits import FunctionTool, SearchToolkit
def add(a: int, b: int) -> int:
"""Add two integers."""
return a + b
agent = ChatAgent(tools=[FunctionTool(add), *SearchToolkit().get_tools()])
from camel.toolkits import MCPToolkit
async with MCPToolkit(config_dict={"mcpServers": {"demo": {"command": "python", "args": ["server.py"]}}}) as toolkit:
agent = ChatAgent(tools=toolkit.get_tools())
Safety Defaults
Prefer pure schema inspection before live calls, treat browser/Docker/terminal/runtime tools as side-effecting, and keep secrets in environment variables or service config outside skill content. For code execution, start with internal_python or a sandboxed runtime, explicitly decide require_confirm, and never enable unsafe_mode=True for untrusted model-generated code without an external sandbox and human approval.
1---2name: tools-runtimes-and-services3description: "Attach Python functions, CAMEL toolkits, MCP/OpenAPI tools,4 runtime-backed execution, interpreters, and service routes to CAMEL agents5 safely."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/tools-runtimes-and-services9 disco-role: operating10license: Apache 2.011---1213# Tools, Runtimes, and Services1415Use this sub-skill when a task needs CAMEL agents to call tools, expose tools through services, or execute code in a controlled runtime. It covers `camel.toolkits`, `FunctionTool`, toolkit `get_tools()` patterns, `MCPToolkit`, `OpenAPIToolkit`, `CodeExecutionToolkit`, `TerminalToolkit`, `camel.runtimes`, `camel.interpreters`, CAMEL agent MCP service patterns, and `camel.services.agent_openapi_server`.1617Do not use this sub-skill for provider/model credentials or model backend selection; route that to the model/provider sub-skill. Do not use it for retrieval-specific memory/RAG tools beyond high-level routing; route retrieval work to `../memory-rag-and-data/SKILL.md` when available. Do not use it for multi-agent loop design except to show how the agent receives tools.1819## Fast Routing2021- For custom Python functions and tool schemas, read [references/api-reference.md](references/api-reference.md) and optionally run [scripts/inspect_tool_schema.py](scripts/inspect_tool_schema.py).22- For selecting a built-in toolkit or optional extra, read [references/toolkit-catalog.md](references/toolkit-catalog.md).23- For MCP, OpenAPI, terminal/code execution, runtimes, interpreters, AgentOpenAPI, or service deployment patterns, read [references/runtime-service-patterns.md](references/runtime-service-patterns.md).24- For failures around schemas, `external_tools`, missing extras, API credentials, MCP startup, Docker/browser/runtime availability, sandbox safety, or OpenAPI auth, read [references/troubleshooting.md](references/troubleshooting.md).2526## Minimal Patterns2728```python29from camel.agents import ChatAgent30from camel.toolkits import FunctionTool, SearchToolkit3132def add(a: int, b: int) -> int:33 """Add two integers."""34 return a + b3536agent = ChatAgent(tools=[FunctionTool(add), *SearchToolkit().get_tools()])37```3839```python40from camel.toolkits import MCPToolkit4142async with MCPToolkit(config_dict={"mcpServers": {"demo": {"command": "python", "args": ["server.py"]}}}) as toolkit:43 agent = ChatAgent(tools=toolkit.get_tools())44```4546## Safety Defaults4748Prefer pure schema inspection before live calls, treat browser/Docker/terminal/runtime tools as side-effecting, and keep secrets in environment variables or service config outside skill content. For code execution, start with `internal_python` or a sandboxed runtime, explicitly decide `require_confirm`, and never enable `unsafe_mode=True` for untrusted model-generated code without an external sandbox and human approval.