Skip to main content
Glama

transpose_range

Transpose cell ranges in Excel by swapping rows and columns, writing output to any target cell. Supports optional paste as values only.

Instructions

Transpose a source range (rows↔columns) and write starting at target_cell.

Args: file_path: Path to workbook. sheet_name: Target worksheet name (destination for transposed data). source_range: Range to transpose (on sheet_name by default). target_cell: Top-left cell for the transposed output. source_sheet: Optional source sheet name if different from sheet_name. paste_values_only: If True, paste only resolved values (no formulas).

Returns: dict: Summary including target range written and number of cells.

Notes: - Destructive: overwrites destination cells.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
sheet_nameYes
target_cellYes
source_rangeYes
source_sheetNo
paste_values_onlyNo
Behavior5/5

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

With no annotations provided, the description takes on full behavioral disclosure. It explicitly warns 'Destructive: overwrites destination cells' and explains the paste_values_only option. This provides critical safety and operational context beyond the schema.

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 well-structured with Args, Returns, and Notes sections. Every sentence adds value, and the main purpose is front-loaded. It is appropriately sized for the tool's complexity.

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?

Given 6 parameters, no annotations, and no output schema, the description provides complete context: all parameters explained, return type documented, and destructive behavior disclosed. No critical information is missing.

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?

Schema description coverage is 0%, so the description must fully explain parameters. It does so thoroughly, listing each argument with its meaning (e.g., source_sheet optional, paste_values_only behavior). This exceeds the minimal requirement and compensates for the schema's lack of detail.

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 clearly states the tool's function: 'Transpose a source range (rows↔columns) and write starting at target_cell.' This specific verb+resource distinguishes it from sibling tools like copy_range or clear_range, which focus on different operations.

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?

The description clearly implies when to use this tool (when a transpose is needed) and mentions the source sheet defaulting to sheet_name. However, it does not explicitly name alternative tools or provide exclusionary guidance, so it falls 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.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mbeps/excel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server