curl --request POST \
--url https://app.goosybear.ai/api/v1/tools/data.analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"question": "<string>",
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"change_table": true,
"fill_column": "<string>",
"keep_as_table": "<string>",
"workspace": "<string>"
}
'import requests
url = "https://app.goosybear.ai/api/v1/tools/data.analyze"
payload = {
"question": "<string>",
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"change_table": True,
"fill_column": "<string>",
"keep_as_table": "<string>",
"workspace": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
question: '<string>',
file_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
change_table: true,
fill_column: '<string>',
keep_as_table: '<string>',
workspace: '<string>'
})
};
fetch('https://app.goosybear.ai/api/v1/tools/data.analyze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.goosybear.ai/api/v1/tools/data.analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'question' => '<string>',
'file_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'table_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'change_table' => true,
'fill_column' => '<string>',
'keep_as_table' => '<string>',
'workspace' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.goosybear.ai/api/v1/tools/data.analyze"
payload := strings.NewReader("{\n \"question\": \"<string>\",\n \"file_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"change_table\": true,\n \"fill_column\": \"<string>\",\n \"keep_as_table\": \"<string>\",\n \"workspace\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.goosybear.ai/api/v1/tools/data.analyze")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"question\": \"<string>\",\n \"file_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"change_table\": true,\n \"fill_column\": \"<string>\",\n \"keep_as_table\": \"<string>\",\n \"workspace\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.goosybear.ai/api/v1/tools/data.analyze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"question\": \"<string>\",\n \"file_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"change_table\": true,\n \"fill_column\": \"<string>\",\n \"keep_as_table\": \"<string>\",\n \"workspace\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"status": "done",
"job_run_id": "<string>",
"file_name": "<string>",
"workspace": "<string>",
"working_in": {
"label": "<string>",
"note": "<string>",
"workspace": "<string>",
"source": "call-override"
},
"summary": "<string>",
"kept_table": {
"table_id": "<string>",
"name": "<string>",
"rows": 123,
"board_id": "<string>",
"board_item_id": "<string>"
},
"changed": {
"rows_changed": 123,
"rows_added": 123,
"rows_removed": 123,
"columns_added": 123,
"columns_removed": 123,
"columns_renamed": 123
},
"table": {
"columns": [
{
"key": "<string>",
"header": "<string>",
"numeric": true
}
],
"rows": [
{}
]
},
"chart": {
"title": "<string>",
"x_key": "<string>",
"points": [
{}
],
"series": [
{
"key": "<string>",
"label": "<string>",
"slot": 123
}
],
"display": {
"chart_kind": "bar",
"stacked": true,
"value_format": "number"
},
"spec": {
"chartType": "bar",
"title": "<string>",
"subtitle": "<string>",
"categories": [
"<string>"
],
"series": [
{
"name": "<string>",
"values": [
123
],
"points": [
{
"x": 123,
"y": 123,
"size": 1
}
],
"boxes": [
[
"<unknown>"
]
],
"ohlc": [
[
"<unknown>"
]
]
}
],
"yCategories": [
"<string>"
],
"cells": [
{
"x": "<string>",
"y": "<string>",
"value": 123
}
],
"links": [
{
"source": "<string>",
"target": "<string>",
"value": 123
}
],
"nodes": [
{
"name": "<string>",
"value": 1,
"children": [
"<unknown>"
]
}
],
"value": 123,
"min": 123,
"max": 123,
"totalLabel": "<string>",
"width": 123,
"height": 123,
"style": {
"palette": [
"<string>"
],
"positiveColour": "<string>",
"negativeColour": "<string>",
"stacked": true,
"smooth": true,
"horizontal": true,
"showLegend": true,
"showLabels": true,
"valueFormat": "number",
"currency": "<string>"
}
}
},
"fill": {
"column": "<string>",
"rows": 123,
"estimate_cents": 123
},
"instruction": "<string>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}Call data.analyze
Work over every row of one of the member’s data tables or CSV files: answer a question about it, change the table itself, copy it, or fill a column from outside it. Goosy writes and runs a small Python analysis on every row in a sealed sandbox, checks it, and returns a summary, a preview table and, when a trend or comparison reads better drawn, a chart. A change ask (‘remove the duplicates’, ‘split the name column into first and last’) changes the member’s table in place as one version, so ‘undo’ puts it back; pass change_table. A copy is made only when the member asks for one: pass keep_as_table and the result is written whole into a new table, the first left as it is. A file attached or dropped in chat can be read beside the table by passing its file_id with table_id. A fill (‘find each shop’s website’, ‘add the owner’s email from our CRM’) passes fill_column: it asks the member’s own connections, or the web when nothing connected fits, for each row’s value, writes rows into the table as they are found and leaves a row blank when nothing is found. It runs in the background: it answers running at once with the rows asked and an estimated cost, the member can keep working or leave, says stop to end it with what was filled kept, and hears a finish line when it ends. A column the result needs, one being filled or one joined in from a file, is added by the run itself together with its first values, so the table never holds it empty; name it in fill_column or the question. Every model call, run and lookup is charged to the workspace as the member’s use; state a big fill’s estimate as you start it. An answer or a change usually lands within a minute or two; past that it answers running, and calling again with the same table and ask returns the result. A run still going leaves the table open: a chart or question of it asked meanwhile is its own call, answered over the rows as they stand. Not for reading or filtering a table’s rows as they stand, which data.query does, a table’s columns and size, which data.describe gives, bringing rows in from a connected service, which data.import does, or a document’s text, which knowledge.search finds.
Every result names the workspace it ran in. Say which workspace the answer is about. When the account has more than one workspace and none is selected, this tool refuses with workspace_ambiguous and lists the choices — offer them, never pick one.
curl --request POST \
--url https://app.goosybear.ai/api/v1/tools/data.analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"question": "<string>",
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"change_table": true,
"fill_column": "<string>",
"keep_as_table": "<string>",
"workspace": "<string>"
}
'import requests
url = "https://app.goosybear.ai/api/v1/tools/data.analyze"
payload = {
"question": "<string>",
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"change_table": True,
"fill_column": "<string>",
"keep_as_table": "<string>",
"workspace": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
question: '<string>',
file_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
change_table: true,
fill_column: '<string>',
keep_as_table: '<string>',
workspace: '<string>'
})
};
fetch('https://app.goosybear.ai/api/v1/tools/data.analyze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.goosybear.ai/api/v1/tools/data.analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'question' => '<string>',
'file_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'table_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'change_table' => true,
'fill_column' => '<string>',
'keep_as_table' => '<string>',
'workspace' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.goosybear.ai/api/v1/tools/data.analyze"
payload := strings.NewReader("{\n \"question\": \"<string>\",\n \"file_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"change_table\": true,\n \"fill_column\": \"<string>\",\n \"keep_as_table\": \"<string>\",\n \"workspace\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.goosybear.ai/api/v1/tools/data.analyze")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"question\": \"<string>\",\n \"file_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"change_table\": true,\n \"fill_column\": \"<string>\",\n \"keep_as_table\": \"<string>\",\n \"workspace\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.goosybear.ai/api/v1/tools/data.analyze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"question\": \"<string>\",\n \"file_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"change_table\": true,\n \"fill_column\": \"<string>\",\n \"keep_as_table\": \"<string>\",\n \"workspace\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"status": "done",
"job_run_id": "<string>",
"file_name": "<string>",
"workspace": "<string>",
"working_in": {
"label": "<string>",
"note": "<string>",
"workspace": "<string>",
"source": "call-override"
},
"summary": "<string>",
"kept_table": {
"table_id": "<string>",
"name": "<string>",
"rows": 123,
"board_id": "<string>",
"board_item_id": "<string>"
},
"changed": {
"rows_changed": 123,
"rows_added": 123,
"rows_removed": 123,
"columns_added": 123,
"columns_removed": 123,
"columns_renamed": 123
},
"table": {
"columns": [
{
"key": "<string>",
"header": "<string>",
"numeric": true
}
],
"rows": [
{}
]
},
"chart": {
"title": "<string>",
"x_key": "<string>",
"points": [
{}
],
"series": [
{
"key": "<string>",
"label": "<string>",
"slot": 123
}
],
"display": {
"chart_kind": "bar",
"stacked": true,
"value_format": "number"
},
"spec": {
"chartType": "bar",
"title": "<string>",
"subtitle": "<string>",
"categories": [
"<string>"
],
"series": [
{
"name": "<string>",
"values": [
123
],
"points": [
{
"x": 123,
"y": 123,
"size": 1
}
],
"boxes": [
[
"<unknown>"
]
],
"ohlc": [
[
"<unknown>"
]
]
}
],
"yCategories": [
"<string>"
],
"cells": [
{
"x": "<string>",
"y": "<string>",
"value": 123
}
],
"links": [
{
"source": "<string>",
"target": "<string>",
"value": 123
}
],
"nodes": [
{
"name": "<string>",
"value": 1,
"children": [
"<unknown>"
]
}
],
"value": 123,
"min": 123,
"max": 123,
"totalLabel": "<string>",
"width": 123,
"height": 123,
"style": {
"palette": [
"<string>"
],
"positiveColour": "<string>",
"negativeColour": "<string>",
"stacked": true,
"smooth": true,
"horizontal": true,
"showLegend": true,
"showLabels": true,
"valueFormat": "number",
"currency": "<string>"
}
}
},
"fill": {
"column": "<string>",
"rows": 123,
"estimate_cents": 123
},
"instruction": "<string>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}Authorizations
An API key minted at Settings › API & MCP. Send it as Authorization: Bearer <key>. A key carries its holder's own permissions, resolved on every call — revoking a membership closes the key's reach immediately. Keep it in an environment variable (GOOSY_API_KEY), never in a committed file.
Headers
Body
What the member wants from the rows, in their words and as specific as they were: the measure, the grouping and the period ('total revenue by month in 2026'), the change to make ('remove duplicates by website'), or what to fill and from where ('find each shop's website').
1 - 1000The id of the member's CSV or TSV file in this workspace's storage, as an attachment or a file listing gives it. Alone, the file is what is analysed; with table_id, it is read beside the table (to join or look up against).
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Response
The call was admitted and dispatched. ok says whether the tool succeeded — a refusal the tool itself produced is still a 200, exactly as it is a successful JSON-RPC result over MCP.
- Option 1
- Option 2
The tool ran and answered.