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

firstnameageuserInput
John46Testing123
Jane71Input 2
John58Input 3
Jane37Input 4
Michael63Input 5
Alex45Input 6
Emily77Input 7
David55Input 8
Sarah75Input 9
Chris59Input 10
Laura59Input 11
Nick49Input 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