Function: mcp-call-tool
mcp-call-tool is a natively compiled function defined in mcp.el.
Signature
(mcp-call-tool CONNECTION NAME ARGUMENTS)
Documentation
Call a tool on the remote CONNECTION with NAME and ARGUMENTS.
CONNECTION is the MCP connection object. NAME is the name of the tool to call. ARGGUMENTS is a list of arguments to pass to the tool.
Source Code
;; Defined in /nix/store/5m747x13pb1ddrvbq9raj91c4q1h1kl0-emacs-packages-deps/share/emacs/site-lisp/elpa/mcp-20260615.940/mcp.el
(defun mcp-call-tool (connection name arguments)
"Call a tool on the remote CONNECTION with NAME and ARGUMENTS.
CONNECTION is the MCP connection object.
NAME is the name of the tool to call.
ARGGUMENTS is a list of arguments to pass to the tool."
(jsonrpc-request connection
:tools/call
(list :name name
:arguments (if arguments
arguments
#s(hash-table)))))