add_sheet_named_range

Add a new named range.

writeGoogle Sheets, Docs & Drive

Call it

In an AI client (MCP)

tools/call
{
  "name": "add_sheet_named_range",
  "arguments": {
    "spreadsheet_id": "<spreadsheet_id>",
    "name": "<name>",
    "range_": "<range_>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/add_sheet_named_range \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"spreadsheet_id":"<spreadsheet_id>","name":"<name>","range_":"<range_>"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
spreadsheet_idrequiredstringthe spreadsheet ID (from its URL or get_sheet_metadata).
namerequiredstringName for the named range.
range_requiredstringA1 notation range (e.g. 'Sheet1!A1:D100').

Result

Every tool answers {notification, data, human_action}; data carries:

  • Success confirmation.

Gotchas

  • Every range here must name its tab; an open end is allowed ('Tab!C7:C' runs to the bottom, 'Tab!A:D' is whole columns); a range without a tab ('A1:D10') is refused.

Example

add_sheet_named_range("1ABC...", "MyRange", "Sheet1!A1:D100")

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude