Skip to main content
Glama

add_name

Define a named range or formula in a workbook to simplify cell references for calculations and data analysis.

Instructions

Define a named range (named formula) in the workbook, e.g. name "TaxRate" for "=Sheet1!$B$1".

Input Schema

NameRequiredDescriptionDefault
refYesReference formula, e.g. "=Sheet1!$A$1:$D$10".
nameYesName to define, e.g. "TaxRate".
commentNoOptional description.
workbookIdNoTarget workbook ID from list_workbooks. Optional when only one workbook is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only restates the operation. It does not say whether an existing name is overwritten or errors, whether workbookId is required when multiple workbooks are connected, or what the call returns on success.

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?

A single front-loaded sentence with the example inline, so nothing is wasted. It is slightly under-specified for a mutation tool rather than over-long.

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

Completeness3/5

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

For a simple four-parameter tool with full schema coverage and no output schema, the description is minimally sufficient to permit a correct call. It stops short of covering duplicate-name behavior and multi-workbook targeting, which are the two things an agent could still get wrong.

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 four parameters including the optional comment and workbookId are already documented in the schema. The description reinforces the name/ref pairing with an example but adds no syntax or validation details beyond that; baseline 3 applies when the schema does the heavy lifting.

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

Purpose4/5

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

Specific verb 'Define' plus resource 'named range (named formula)' and a concrete example mapping "TaxRate" to "=Sheet1!$B$1". No sibling tool in the Excel family overlaps with named-range creation, so the agent can distinguish it without extra effort, though the description never says so explicitly.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no alternatives (e.g. execute_exceljs for bulk operations), and no prerequisites such as needing a connected workbook or what happens if the name already exists. The example implies the intended scenario but provides no routing or exclusion rules.

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