Skip to main content
Glama
xlsx-mcp-server
by knorq-ai

list_named_ranges

Retrieve all named ranges from an Excel workbook to quickly identify defined names used in formulas, data validation, or references.

Instructions

List all named ranges in the workbook.

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": {
      "file_path": "<file_path>"
    },
    "name": "list_named_ranges"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does little: 'List all' does imply a non-mutating, unfiltered read with no pagination, which is worth some credit. But it says nothing about read-only safety guarantees, behavior when the file is missing or has zero named ranges, or whether defined names from all sheets are included.

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?

One short sentence, front-loaded with the verb and resource, with no filler or redundancy. It is efficient but so terse that it borders on under-specification rather than exemplifying tight structure.

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

Completeness2/5

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

For a simple read tool with a fully documented single parameter the bar is low, but with no output schema the description should say what the listing contains (names only, or name plus refers-to range/sheet scope). It also doesn't cover empty-workbook behavior, leaving the agent to guess at the return shape.

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?

There is a single parameter, file_path, and schema coverage is 100% with a description ('Absolute path to the .xlsx file'), so the schema already fully explains it. The phrase 'in the workbook' only loosely ties the call to that file path without adding format, resolution, or error semantics. Baseline 3 applies.

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?

States a specific verb (List) and resource (named ranges) plus the scope qualifier 'all in the workbook', so the agent knows this is an unfiltered read of the workbook's defined names. It doesn't name the sibling write tools (add_named_range, delete_named_range) to distinguish itself explicitly, which keeps it just below a 5.

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 is only implied by the verb 'List' plus the workbook scope — an agent can infer this is the read-side counterpart to add_named_range/delete_named_range, but nothing in the text says when to pick this over those alternatives or what prerequisites apply. No exclusions, no context about needing an existing file.

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