retool rpc function definition should use jsonschema for it's syntax.
There is a standard way to define a schema, and there are already examples of it being used as a specification for function calls. I expect ReTool RPC to adopt this in the near future.