Skip to main content
Glama
KitchenSink4AI

io.github.nometalalchemist/kitchensink4xl

Set Dimensions

set_dimensions
DestructiveIdempotent

Set column widths, row heights, hide rows/columns, group into collapsible outlines, and approximate autofit in Excel sheets.

Instructions

Set column widths and row heights, hide rows or columns, group them into collapsible outline levels, and service an autofit request. column_widths maps column letters or indices to widths in Excel character units; row_heights maps row numbers to heights in points; autofit_columns sizes columns to content as a best-effort APPROXIMATION (true autofit needs Excel via the com pack).

Grouping is Excel's outline: group_rows and group_columns take spans of {start, end, level 1-7, collapsed}, the collapse bracket a budget or financial model is built around; ungroup_rows and ungroup_columns clear a span's level and unhide it; outline_summary {below, right} says which side the total sits on. Read the current outline back from get_workbook_metadata, which reports it per sheet when a sheet has one. A hazardous workbook refuses unless allow_loss is true. Auto-backup to .ks4xl-backups; atomic verified save. Refuses while open in Excel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sheetNo
backupNo
hide_rowsNo1-based row numbers.
allow_lossNo
group_rowsNoOutline spans, {start, end, level 1-7, collapsed}. Rows take numbers, columns take letters or numbers.
verify_comNo
row_heightsNo
hide_columnsNoColumn letters, e.g. ['A', 'C'].
ungroup_rowsNoOutline spans, {start, end, level 1-7, collapsed}. Rows take numbers, columns take letters or numbers.
column_widthsNo
group_columnsNoOutline spans, {start, end, level 1-7, collapsed}. Rows take numbers, columns take letters or numbers.
autofit_columnsNoColumn letters, e.g. ['A', 'C'].
outline_summaryNo
ungroup_columnsNoOutline spans, {start, end, level 1-7, collapsed}. Rows take numbers, columns take letters or numbers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. Changed11 schema fields changedv1.1.0
    • changedInput schema / properties / autofit_columns / anyOf
      Previous value: -[
      -  {
      -    "items": {},
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / autofit_columns / description
      Added value: +"Column letters, e.g. ['A', 'C']."
    • addedInput schema / properties / group_columns
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "properties": {
      +          "collapsed": {
      +            "type": "boolean"
      +          },
      +          "end": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              }
      +            ]
      +          },
      +          "level": {
      +            "maximum": 7,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "start": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "start"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Outline spans, {start, end, level 1-7, collapsed}. Rows take numbers, columns take letters or numbers."
      +}
    • addedInput schema / properties / group_rows
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "properties": {
      +          "collapsed": {
      +            "type": "boolean"
      +          },
      +          "end": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              }
      +            ]
      +          },
      +          "level": {
      +            "maximum": 7,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "start": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "start"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Outline spans, {start, end, level 1-7, collapsed}. Rows take numbers, columns take letters or numbers."
      +}
    • changedInput schema / properties / hide_columns / anyOf
      Previous value: -[
      -  {
      -    "items": {},
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / hide_columns / description
      Added value: +"Column letters, e.g. ['A', 'C']."
    • changedInput schema / properties / hide_rows / anyOf
      Previous value: -[
      -  {
      -    "items": {},
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / hide_rows / description
      Added value: +"1-based row numbers."
    • addedInput schema / properties / outline_summary
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / ungroup_columns
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "properties": {
      +          "collapsed": {
      +            "type": "boolean"
      +          },
      +          "end": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              }
      +            ]
      +          },
      +          "level": {
      +            "maximum": 7,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "start": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "start"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Outline spans, {start, end, level 1-7, collapsed}. Rows take numbers, columns take letters or numbers."
      +}
    • addedInput schema / properties / ungroup_rows
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "properties": {
      +          "collapsed": {
      +            "type": "boolean"
      +          },
      +          "end": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              }
      +            ]
      +          },
      +          "level": {
      +            "maximum": 7,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "start": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "start"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Outline spans, {start, end, level 1-7, collapsed}. Rows take numbers, columns take letters or numbers."
      +}
  3. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

The description discloses important behavioral traits beyond annotations: a hazardous workbook refuses unless allow_loss is true, auto-backup to .ks4xl-backups, atomic verified save, refuses while open in Excel, and autofit is only an approximation. This complements the destructiveHint and idempotentHint annotations, with no contradiction.

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?

The description is dense but purposeful. It front-loads the overall purpose, then organizes parameter semantics and behavioral caveats in separate sentences. For a 15-parameter tool, the length is justified and no sentence is filler.

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?

The description covers all major operation groups, safety behavior, backup, and where to read outline state. A few optional parameters like verify_com and the exact effect of backup: false are left implicit, and path/sheet defaults are not stated, but the combination of schema and description is largely sufficient for a tool this complex.

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

Parameters5/5

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

With only 47% schema description coverage, the description does the heavy lifting: it defines column_widths in Excel character units, row_heights in points, the group/ungroup span shape with levels 1-7, ungroup behavior, and outline_summary's {below, right} meaning. These are exactly the semantics missing from the schema.

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?

The description states a specific verb and resource: 'Set column widths and row heights, hide rows or columns, group them into collapsible outline levels, and service an autofit request.' This enumerates the exact operations and distinguishes it from siblings like set_cell, format_cells, and modify_grid_structure.

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?

It gives useful context, such as grouping being 'the collapse bracket a budget or financial model is built around,' and points to get_workbook_metadata for reading back the current outline. It also notes true autofit requires the com pack, offering an alternative path. It does not explicitly compare against all sibling tools, but the guidance is clear enough.

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