Skip to main content
Glama

create_pivot_table

Generate pivot tables in Excel worksheets to organize, summarize, and analyze large datasets by specifying rows, columns, values, and aggregation functions.

Instructions

Create pivot table in worksheet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agg_funcNomean
columnsNo
data_rangeYes
filepathYes
rowsYes
sheet_nameYes
valuesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. 'Create pivot table' implies a write/mutation operation, but the description doesn't specify whether this modifies existing data, creates a new worksheet, requires specific file permissions, or has any side effects. It provides minimal behavioral context beyond the basic action implied by the name.

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 extremely concise at just 5 words, with zero wasted language. It's front-loaded with the core action and doesn't include any unnecessary elaboration. While this conciseness comes at the cost of completeness, the description itself is structurally optimal for its length.

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?

Given a complex 7-parameter tool with 0% schema description coverage and no annotations, the description is severely incomplete. While an output schema exists (which helps with understanding returns), the description doesn't address the tool's behavioral characteristics, parameter meanings, or usage context. For a data transformation tool of this complexity, the minimal description leaves too many gaps for effective agent use.

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

Parameters1/5

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

With 0% schema description coverage for all 7 parameters, the description provides absolutely no information about what the parameters mean or how they should be used. The description doesn't mention any parameters at all, leaving the agent to guess the purpose of 'agg_func', 'columns', 'data_range', etc. This is a critical gap given the complexity of pivot table creation.

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 'Create pivot table in worksheet' clearly states the verb ('Create') and resource ('pivot table in worksheet'), making the purpose immediately understandable. It distinguishes this from sibling tools like create_table or create_chart by specifying the type of table being created. However, it doesn't explicitly differentiate from all possible alternatives (like whether this is different from creating a pivot table through other means).

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (like needing an existing workbook/worksheet), when this tool is appropriate versus other data manipulation tools, or any constraints on its use. The agent must infer usage from the tool name and parameters alone.

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

Related 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/haris-musa/excel-mcp-server'

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