Skip to main content
Glama

Create table

create_table

Convert a header range into a formatted Excel Table with optional filter buttons, styles, and row stripes for filterable structured data.

Instructions

Turn a range into a formatted Excel Table (ListObject) with optional filter buttons.

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": {
      "sheet": "<sheet>",
      "cell_range": "<cell_range>",
      "table_name": "<table_name>"
    },
    "name": "create_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile path or preloaded name (list_configured_files). Omit if only one file is preloaded.
sheetYesSheet name (case-sensitive).
backupNoSave a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true).
reasonNoWhy; kept in the change log (XLSX_MCP_CHANGE_LOG=true).
cell_rangeYesRange including the header row, e.g. "A1:D10". Headers must be non-empty and unique.
style_nameNoExcel table style, e.g. "TableStyleMedium9".TableStyleMedium9
table_nameYesWorkbook-unique name: letters, digits, _ or ., starting with a letter or _.
show_filterNoShow filter buttons in the header row.
show_row_stripesNoShade alternate rows.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.4.0
    • addedInput schema / properties / backup / description
      Added value: +"Save a .bak copy first. Default: XLSX_MCP_AUTO_BACKUP (true)."
    • addedInput schema / properties / cell_range / description
      Added value: +"Range including the header row, e.g. \"A1:D10\". Headers must be non-empty and unique."
    • addedInput schema / properties / path / description
      Added value: +"File path or preloaded name (list_configured_files). Omit if only one file is preloaded."
    • addedInput schema / properties / reason
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Why; kept in the change log (XLSX_MCP_CHANGE_LOG=true).",
      +  "title": "Reason"
      +}
    • addedInput schema / properties / sheet / description
      Added value: +"Sheet name (case-sensitive)."
    • addedInput schema / properties / show_filter / description
      Added value: +"Show filter buttons in the header row."
    • addedInput schema / properties / show_row_stripes / description
      Added value: +"Shade alternate rows."
    • addedInput schema / properties / style_name / description
      Added value: +"Excel table style, e.g. \"TableStyleMedium9\"."
    • addedInput schema / properties / table_name / description
      Added value: +"Workbook-unique name: letters, digits, _ or ., starting with a letter or _."
  2. Addedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare openWorldHint=false and destructiveHint=false, so the safety profile is largely covered, and the description is consistent with them (it adds a table object rather than removing data). Beyond that it discloses little: nothing about what happens on a duplicate table_name, whether an existing table in the range is replaced, or that the change is logged via the 'reason' parameter — though the schema covers backup and change-log behavior.

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 the core action first and the notable option second. There is no filler, hedging, or repetition of schema content.

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?

With a rich 9-parameter schema at full coverage, an output schema, and annotations, the description only needs to establish the action and object, which it does. Minor gap: it says nothing about failure modes (invalid/duplicate table names, overlapping existing tables), which an agent creating a table would benefit from knowing before calling.

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 every one of the nine parameters is already documented with defaults, formats, and naming constraints. The description adds no parameter meaning beyond restating show_filter as 'optional filter buttons'; it never touches style_name, table_name, or cell_range semantics. Baseline 3 applies when the schema carries the full load.

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?

The description names a specific verb ('Turn a range into') and a precise resource ('formatted Excel Table (ListObject)'), plus the ListObject synonym that disambiguates it from generic formatting tools. It does not explicitly contrast with siblings, but no sibling (create_chart, create_sheet, set_cell_style) could be confused with this operation.

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: 'turn a range into' suggests an existing populated range must already exist, and 'optional filter buttons' hints at the common default. There is no explicit when-to-use/when-not-to-use guidance, no mention of prerequisites such as unique non-empty headers (left to the schema), and no pointer to alternatives like set_cell_style for plain formatting.

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