Skip to main content
Glama

Append Structured Sheet Row (Google Sheets / Webhook)

append_structured_sheet_row

Validates 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

NameRequiredDescriptionDefault
tagsNoStructured labels for segmentation (e.g., ['q4', 'enterprise', 'margin-alert']).
dryRunNoWhen true, validates schema and returns the formatted row/payload without writing externally.
sourceYesOrigin system or pipeline name (e.g., 'deepgram-call', 'stripe-pnl', 'meta-ads').
metricsNoValidated scalar key-value metrics (e.g., { revenueUsd: 12450, grossMarginPct: 68.4 }).
summaryYesConcise human-readable summary of the call transcript, report, or event.
metadataNoAdditional structured JSON context (call ID, account ID, owner, etc.).
timestampNoISO-8601 UTC timestamp. Defaults to current server time.
recordTypeNoNormalized record category for downstream filtering and BI dashboards.ops_log
sheetRangeNoA1 notation range for Google Sheets append (default: 'Sheet1!A:G').Sheet1!A:G
webhookUrlNoTarget HTTPS webhook URL (falls back to OPS_SHEET_WEBHOOK_URL env var).
destinationNoTarget sink: 'google_sheets' (Google Sheets API v4) or 'webhook' (n8n / Make / REST).webhook
spreadsheetIdNoGoogle Spreadsheet ID (required for destination='google_sheets' unless GOOGLE_SHEETS_DEFAULT_ID is set).
idempotencyKeyNoOptional idempotency key forwarded as X-Idempotency-Key header in webhook mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already disclose readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false. The description adds that input is validated before writing and that the row format is deterministic, which is useful, but it does not state auth requirements, failure/error behavior, or that repeated calls will append duplicate rows (consistent with idempotentHint=false).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler: the validation behavior comes first, followed by the two destination options. Nothing is repeated from the title or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter, nested-object tool with no output schema, the description covers the core action, validation, and both destination modes. The rich schema and annotations carry the remaining detail; only auth/error behavior and duplicate-append semantics are left unaddressed, which is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 13 parameters are already documented in the schema. The description adds no format, default, or interaction detail beyond what the schema provides (e.g., it doesn't clarify destination/spreadsheetId dependency or dryRun semantics), so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs specific verbs (validates, appends) with a specific resource (a deterministic row) and names both sinks (Google Sheets API v4 or webhook targets n8n/Make/REST). This is far more precise than the sibling tools' domains, so an agent can tell what this tool does without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied by the listed source types (call transcripts, financial reports, ops pipelines) but there is no explicit when-to-use or when-not-to-use guidance, and no named alternative among the siblings. The agent must infer that this is the write path while fetch_external_api_metrics and send_ops_alert are the read/alert paths.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.