{
  "role": "ai-data-analyst",
  "source": "https://aiinthewild.com/ai-employees/ai-data-analyst/",
  "note": "Tool definitions in JSON Schema. Wire each one to your own systems. Functions marked approval: true should only create drafts or requests for a person to approve.",
  "functions": [
    {
      "name": "list_tables",
      "description": "List approved tables and their descriptions.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "search": {
            "type": "string",
            "description": "Keyword"
          }
        },
        "required": []
      }
    },
    {
      "name": "run_query",
      "description": "Run a read-only query and return up to 1,000 rows.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "sql": {
            "type": "string",
            "description": "Read-only SQL"
          }
        },
        "required": [
          "sql"
        ]
      }
    },
    {
      "name": "get_metric_definition",
      "description": "Read the agreed definition of a business metric.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "metric": {
            "type": "string",
            "description": "Metric name"
          }
        },
        "required": [
          "metric"
        ]
      }
    }
  ]
}