Function: mcp-sync-list-tools
mcp-sync-list-tools is a natively compiled function defined in mcp.el.
Signature
(mcp-sync-list-tools CONNECTION &optional CALLBACK ERROR-CALLBACK)
Documentation
Get a list of tools from the MCP server using the provided CONNECTION.
CALLBACK is a function to call with the result. ERROR-CALLBACK is a function to call on error.
Source Code
;; Defined in /nix/store/5m747x13pb1ddrvbq9raj91c4q1h1kl0-emacs-packages-deps/share/emacs/site-lisp/elpa/mcp-20260615.940/mcp.el
(defun mcp-sync-list-tools (connection &optional callback error-callback)
"Get a list of tools from the MCP server using the provided CONNECTION.
CALLBACK is a function to call with the result.
ERROR-CALLBACK is a function to call on error."
(mcp--list-items connection :tools/list :tools '-tools callback error-callback 'sync))