Whatever message this page gives is out now! Go check it out!

callTool

Last update:
May 18, 2026
Invokes a single MCP tool by name on the connected MCP server, passing structured arguments and returning the tool's response.

Description

The callTool function invokes a single MCP tool by name on the connected MCP server, passing structured arguments and returning the tool's response. It is the primary way for your ColdFusion application to execute MCP tools.

Returns

A struct representing the JSON-RPC result.

History

New in ColdFusion 2025.0.08

Syntax

callTool(string toolName, struct method)

Parameters

callTool parameters
FieldData typeRequiredDescription
toolNameStringYesThe name of the tool to invoke. This must match one of the tool names returned by listTools() for that MCP server.
methodStructYesA struct containing the method name along with the parameters to be called.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page