Function Calling
China Fuel Price tools (get_fuel_price, get_fuel_price_by_province, calc_fuel_recharge_promo) 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/fuel-price/toolsReturns only tools for fuel-price.
POST
/api/function-calling/chat?includes=fuel-priceBody: { messages, model? }. Filters allowed tools by includes=fuel-price, then executes tool_calls via MCP tools and returns the final reply.
Playground
Send requests and view responses.
RequestGET /api/function-calling/fuel-price/tools
Response
Click "Fetch tools" to load the OpenAI-compatible tools list.