Built in Function Tools
This page show built in functions that we provided.
Echo
Echo is design to test / debug and teach you how AI Assistant work. It is a built in function means don't need to implement your own MCP server.
{
"type": "function",
"function": {
"name": "internal_echo",
"description": "Used for testing connectivity, echo back everything it receives",
"parameters": {
"type": "object",
"properties": {
"userInput": {
"description": "whatever user have put in to echo",
"type": "string"
},
"format": {
"description": "the file format this function should echo back, can be txt, csv, json, markdown, uiaction or simulateError",
"type": "string"
}
},
"required": [
"userInput"
]
}
}
}
Examples
CSV
Echo back
Testing123
as csv format
firstname | age | userInput |
---|---|---|
John | 46 | Testing123 |
Jane | 71 | Input 2 |
John | 58 | Input 3 |
Jane | 37 | Input 4 |
Michael | 63 | Input 5 |
Alex | 45 | Input 6 |
Emily | 77 | Input 7 |
David | 55 | Input 8 |
Sarah | 75 | Input 9 |
Chris | 59 | Input 10 |
Laura | 59 | Input 11 |
Nick | 49 | Input 12 long text ... long text |
JSON
Echo back
Testing123
as json format
[
{
"firstname": "John",
"lastname": "Doe",
"age": 46,
"userInput": "Testing123"
},
{
"firstname": "Jane",
"lastname": "Doe",
"age": 71,
"userInput": "Input 2"
},
{
"firstname": "John",
"lastname": "Smith",
"age": 58,
"userInput": "Input 3"
},
{
"firstname": "Jane",
"lastname": "Smith",
"age": 37,
"userInput": "Input 4"
},
{
"firstname": "Michael",
"lastname": "Knight",
"age": 63,
"userInput": "Input 5"
},
{
"firstname": "Alex",
"lastname": "Mercer",
"age": 45,
"userInput": "Input 6"
},
{
"firstname": "Emily",
"lastname": "Johnson",
"age": 77,
"userInput": "Input 7"
},
{
"firstname": "David",
"lastname": "Miller",
"age": 55,
"userInput": "Input 8"
},
{
"firstname": "Sarah",
"lastname": "Williams",
"age": 75,
"userInput": "Input 9"
},
{
"firstname": "Chris",
"lastname": "Jones",
"age": 59,
"userInput": "Input 10"
},
{
"firstname": "Laura",
"lastname": "Brown",
"age": 59,
"userInput": "Input 11"
},
{
"firstname": "Nick",
"lastname": "Rivers",
"age": 49,
"userInput": "Input 12"
}
]
UI Action
Echo back
{"name":"John", "age": 54}
as UIAction format
The ChatBot UI Component on_ui_action
will be called, param
hold the value {"name":"John", "age": 54}
Simulate Error
Echo back
anything
as SimulateError format
An error will raised internally to demo user how LLM handle it
Anything else
Echo back
how are you
This will echo how are you
as text message
Updated 21 days ago