1. Start with read-only tools
Do not let early tests create, delete, send, purchase or modify real data. Use deterministic read-only tools first.
MCP and tool calling
MCP servers and OpenAI-compatible tool calls both depend on clear schemas. Use TKEN for gateway-level smoke tests when your model route supports the tool-calling behavior your agent requires.
{
"model": "MiniMax-M2.7",
"messages": [
{"role": "user", "content": "Check order status for order_123."}
],
"tools": [
{
"type": "function",
"function": {
"name": "lookup_order",
"parameters": {
"type": "object",
"properties": {
"order_id": {"type": "string"}
},
"required": ["order_id"]
}
}
}
]
}
Tool calling is not only an endpoint question. You need to verify model support, schema adherence, retry behavior, timeout handling and how your app executes or rejects a proposed tool call.
Do not let early tests create, delete, send, purchase or modify real data. Use deterministic read-only tools first.
Validate generated arguments against the expected schema before your backend executes a tool call.
Decide whether to retry, ask the user, switch model routes or stop when a tool call is missing, malformed or unsafe.
Use a harmless schema, confirm the returned tool call shape and only then test more complex agent workflows.