smart_add_data
Checks existing headers first, then adds data to Google Sheets as JSON import or new rows based on header presence.
Instructions
Step 1: ALWAYS call get_keys first to check headers. Step 2: Based on keys result, either import_json (no headers) or create rows (has headers). This tool requires get_keys to be called first in the same conversation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| headers | Yes | Headers obtained from get_keys tool - REQUIRED parameter from previous get_keys call | |
| endpoint | Yes | The SheetsDB API endpoint |