Skip to main content
Glama

create_pivot_table

Creates a pivot table from a source range and places it at a destination cell, with customizable rows, columns, values, and filters.

Instructions

Create a pivot table at a destination cell.

rows, columns, values, and filter_specs use the Sheets API PivotGroup/PivotValue/PivotFilterSpec shapes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNo
valuesNo
columnsNo
filter_specsNo
source_rangeYes
value_layoutNoHORIZONTAL
spreadsheet_idYes
destination_cellYes
Behavior2/5

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

The description indicates the tool creates a pivot table, implying a write/mutation operation, but does not disclose potential side effects such as overwriting existing data, permission requirements, or error conditions. With no annotations provided, the description carries the full burden, and it falls short.

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?

The description is brief (two sentences) and front-loads the core purpose. However, it could be more structured—for instance, grouping parameter details or adding bullet points. Given the conciseness, it scores high but not perfect due to lack of organization.

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?

With 8 parameters (3 required), open-ended array schemas, no output schema, and no annotations, the description is insufficient. It fails to explain parameter usage, the Sheets API shapes referenced, or the expected behavior and return value. This is a significant gap for a complex tool.

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

Parameters2/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 compensate. It mentions that 'rows', 'columns', 'values', and 'filter_specs' use Sheets API shapes, but does not explain the expected structure or provide examples. Required parameters like 'spreadsheet_id', 'source_range', and 'destination_cell' have no description at all. The added value is minimal.

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 verb 'create' and resource 'pivot table' with a location 'at a destination cell'. This uniquely identifies the tool's action among siblings, which include many data manipulation and formatting tools but no other pivot table creation tool.

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?

No guidance is provided on when to use this tool versus alternatives (e.g., 'build_table', 'sort_range'). The description does not mention prerequisites, suitability, or when not to use it. This omission reduces clarity for the agent in selecting the correct tool.

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/richmcpharlin/google-sheets-mcp'

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