Unbnd logoUnbnd

Function Calling

Finance tools match the sidebar taxonomy: stocks (multi-market snapshot + TASI exchange index/company/hourly), funds (six-digit OHLCV vs NAV daily + overview stock-list; OHLCV indicators support legacy cold-start and indicatorWarmupDays), precious metals use XAUUSD on the market daily tools — same tool names as POST /api/mcp/finance.

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/finance/tools

Returns only tools for finance.

POST/api/function-calling/chat?includes=finance

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

Playground

Send requests and view responses.

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