Skip to main content
Glama

Fill cells

fill_range
Destructive

Fill cells from a source block like dragging a fill handle: repeat formulas, values, and formatting across a range, or continue series patterns (1,2,3 → 4,5,6).

Instructions

Fill cells from a source block, like dragging the fill handle or pasting onto a bigger selection: the source's formulas (relative references shift), values and formatting repeat across the destination. Use it after writing one row or column of formulas to extend them across a table, instead of sending every column. With continue_series, patterns continue instead (1, 2, 3 → 4, 5, 6; Jan → Feb; dates). The destination's previous contents are saved for undo_last. Returns any formula errors found after filling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pasteNoall = formulas, values and formatting; formulas = formulas and values without formatting; values = results as plain values; formats = formatting onlyall
sourceYesThe cells to fill from, e.g. "Model!O25:O97"
accountNoGoogle account to use: an email or unique part of one (e.g. "acme.com"). Default: the account that can open the spreadsheet, else the default account.
allow_largeNoRequired for fills over 10000 cells
destinationYesThe cells to fill, e.g. "Model!P25:AE97" (it may include the source). For continue_series it must sit right after, or right before, the source in the same rows or columns
spreadsheetYesGoogle Sheets link or spreadsheet ID. The name of a spreadsheet used with Sheets MCP before also works
continue_seriesNoExtend the pattern in the source (like the fill handle) instead of repeating it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.9

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantive behavior beyond the annotations: it discloses that the destination's previous contents are saved for undo_last, which confirms and deepens the destructiveHint=true signal, and it notes that formula errors found after filling are returned. These are exactly the traits an agent needs to reason about a destructive mutation.

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

Conciseness4/5

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

Front-loads the core behavior, then usage guidance, then the continue_series variant and side effects. Four dense sentences that mostly earn their place, though it borders on long for the amount of structured data already present.

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

Completeness5/5

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

With no output schema, the description usefully reports what is returned (formula errors), covers the recoverability of the destructive write, and explains the mode/parameter behavior. Combined with full schema coverage and accurate annotations, an agent has everything needed to invoke it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics: it explains continue_series with concrete examples (1, 2, 3 → 4, 5, 6; Jan → Feb; dates) and clarifies relative-reference shifting that the schema only gestures at.

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?

States a specific verb and resource ('Fill cells from a source block') with an evocative analogy ('like dragging the fill handle or pasting onto a bigger selection') and spells out exactly what propagates: formulas with relative-reference shifting, values, and formatting. This clearly separates it from sibling tools like write_range, append_rows, or format_range.

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

Usage Guidelines4/5

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

Gives a concrete when-to-use ('after writing one row or column of formulas to extend them across a table, instead of sending every column') and describes the continue_series alternative path with examples. It lacks an explicit 'when not to use' or a named sibling alternative, so it stops short of a 5.

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