Append Structured Sheet Row (Google Sheets / Webhook)
append_structured_sheet_rowValidates structured JSON from calls, reports, or ops data, then appends a deterministic row to Google Sheets or a webhook for reliable logging and reporting.
Instructions
Validates structured JSON from call transcripts, financial reports, or ops pipelines and appends a deterministic row to Google Sheets API v4 or a downstream webhook (n8n / Make / REST).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"summary": "<summary>"
},
"name": "append_structured_sheet_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Structured labels for segmentation (e.g., ['q4', 'enterprise', 'margin-alert']). | |
| dryRun | No | When true, validates schema and returns the formatted row/payload without writing externally. | |
| source | Yes | Origin system or pipeline name (e.g., 'deepgram-call', 'stripe-pnl', 'meta-ads'). | |
| metrics | No | Validated scalar key-value metrics (e.g., { revenueUsd: 12450, grossMarginPct: 68.4 }). | |
| summary | Yes | Concise human-readable summary of the call transcript, report, or event. | |
| metadata | No | Additional structured JSON context (call ID, account ID, owner, etc.). | |
| timestamp | No | ISO-8601 UTC timestamp. Defaults to current server time. | |
| recordType | No | Normalized record category for downstream filtering and BI dashboards. | ops_log |
| sheetRange | No | A1 notation range for Google Sheets append (default: 'Sheet1!A:G'). | Sheet1!A:G |
| webhookUrl | No | Target HTTPS webhook URL (falls back to OPS_SHEET_WEBHOOK_URL env var). | |
| destination | No | Target sink: 'google_sheets' (Google Sheets API v4) or 'webhook' (n8n / Make / REST). | webhook |
| spreadsheetId | No | Google Spreadsheet ID (required for destination='google_sheets' unless GOOGLE_SHEETS_DEFAULT_ID is set). | |
| idempotencyKey | No | Optional idempotency key forwarded as X-Idempotency-Key header in webhook mode. |