Unbnd logoUnbnd

Function Calling

Exchange rate tools (get_exchange_rate, convert_currency) are exposed as OpenAI-compatible functions for LLM chat.

The same tools as MCP are exposed in OpenAI-compatible format. Send the tools list to an LLM so it can return tool_calls; your gateway then executes them (e.g. via POST /api/mcp).

Endpoints

GET/api/function-calling/exchange-rate/tools

Returns only tools for exchange-rate.

POST/api/function-calling/chat?includes=exchange-rate

Body: { messages, model? }. Filters allowed tools by includes=exchange-rate, then executes tool_calls via MCP tools and returns the final reply.

Playground

Send requests and view responses.

RequestGET /api/function-calling/exchange-rate/tools
Response
Click "Fetch tools" to load the OpenAI-compatible tools list.