How function calls work
- Send tool definitions with your model request using the chosen API’s tool schema.
- Read the model’s tool call and its arguments.
- Run the function in your application.
- Return the function result to the model so it can continue.
Connect an MCP server
Add the MCP server to your coding client’s configuration. The client makes the server’s tools available to the model and handles tool execution. Configure MCP servers in the client you use. See the coding tool guides for Floodgate connection settings.Add image and speech tools
Create a script, application function, or MCP tool that:- Accepts a prompt or text and the desired model.
- Sends a request to the Images API or Speech API.
- Saves the returned image or audio and gives the client a file path or result reference.
