Skip to main content
Glama

sheets_create_chart

Idempotent

Create charts in Google Sheets from specified data ranges. Choose chart type, set overlay position, and customize axes, legend, and title.

Instructions

Create a chart in a Google Sheets spreadsheet. Sheet names with spaces should be quoted in ranges (e.g., "My Sheet"!A1:B5). Position uses overlayPosition with anchorCell containing sheetId, rowIndex, and columnIndex.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoChart title (optional)
legendNoLegend configuration
seriesYesArray of data series for the chart
altTextNoAlternative text for accessibility
leftAxisNoLeft (Y) axis configuration
positionYesChart position settings with overlay position. Use overlayPosition.anchorCell.sheetId to specify the sheet.
subtitleNoChart subtitle (optional)
chartTypeYesType of chart to create
rightAxisNoRight (Y) axis configuration
domainAxisNoDomain (X) axis configuration
domainRangeNoOptional domain range in A1 notation (e.g., "A2:A5" or "My Sheet"!A2:A5). If not provided, column A will be used
spreadsheetIdYesThe ID of the spreadsheet (found in the URL after /d/)
backgroundColorNoChart background color
Behavior3/5

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

Annotations declare idempotentHint=true and destructiveHint=false, and the description does not contradict these. The description adds context about range quoting and overlayPosition structure, but does not disclose side effects, permissions, or return value behavior, which with annotations present leaves the safety profile adequately covered.

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 only three sentences, front-loaded with the core purpose, and every sentence adds meaningful guidance. 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.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (13 parameters, nested objects), the description focuses on the most error-prone aspects. While it does not explain all options like axes or legends, the schema descriptions cover those. The absence of an output schema is mitigated by the clear annotation hints.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds value beyond the schema by centralizing the quoting rule for sheet names with spaces and clarifying the nested overlayPosition structure with anchorCell fields, which helps avoid common mistakes.

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 clearly states 'Create a chart in a Google Sheets spreadsheet' with a specific verb and resource. It does not explicitly distinguish from sibling tools like sheets_update_chart or sheets_delete_chart, but the verb 'create' makes the primary purpose clear.

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?

The description implies usage for creating charts but does not provide explicit when-to-use versus alternatives such as updating or deleting charts. It includes useful tips about quoting sheet names and using overlayPosition, but these are more parameter handling than usage guidance.

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/freema/mcp-gsheets'

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