Liking cljdoc? Tell your friends :D

mcp.openai

OpenAI-compatible function-tool conversion and MCP tool-call execution.

OpenAI-compatible function-tool conversion and MCP tool-call execution.
raw docstring

execute-tool-callclj

(execute-tool-call routes tool-call)

Execute one OpenAI Chat Completions-style tool_call via its MCP route. Returns a standard tool-role message with the original tool_call_id.

Execute one OpenAI Chat Completions-style tool_call via its MCP route.
Returns a standard tool-role message with the original tool_call_id.
sourceraw docstring

execute-tool-callsclj

(execute-tool-calls routes assistant-message)

Execute an assistant message's tool_calls concurrently and preserve their original order and tool_call_id values.

Execute an assistant message's tool_calls concurrently and preserve
their original order and tool_call_id values.
sourceraw docstring

toolsclj

(tools connections)

Convert {server-name connection} into {:tools [...] :routes {...}}. Prefixes function names with a stable server/tool identifier so tools from separate MCP servers cannot collide.

Convert {server-name connection} into {:tools [...] :routes {...}}.
Prefixes function names with a stable server/tool identifier so tools
from separate MCP servers cannot collide.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close