Skip to main content
Glama
lmdat

@lmdat/google-sheets-oauth-mcp

by lmdat

Ghi đè dữ liệu vào Google Sheet

sheets_write

Overwrite a specific range in a Google Sheet with new values, replacing old content entirely.

Instructions

Ghi đè giá trị vào 1 range cụ thể. Dữ liệu cũ trong range sẽ bị thay thế hoàn toàn.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeYesRange theo A1 notation, ví dụ "Sheet1!A1:C3". Có thể chỉ ghi tên sheet (vd "Sheet1") để lấy/ghi cả sheet.
valuesYesMảng 2 chiều, mỗi mảng con là 1 hàng. Ví dụ: [["Tên","Tuổi"],["Đạt",30]]
spreadsheet_idYesID của Google Sheet — lấy từ URL (docs.google.com/spreadsheets/d/<ID>/edit) hoặc dùng tool drive_list_spreadsheets để tìm theo tên.
value_input_optionNoUSER_ENTERED: Sheet tự parse như khi anh gõ tay (công thức, ngày tháng...). RAW: giữ nguyên string.USER_ENTERED
Behavior3/5

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

With no annotations provided, the description carries full burden. It correctly discloses the key behavioral trait: old data is completely replaced. However, it lacks details on side effects (e.g., formatting preservation), error handling, permissions, or rate limits. The value_input_option behavior is in the schema but not described here.

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 with two short sentences that cover the core functionality without any unnecessary words. It is front-loaded with the key action and effect.

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 4 parameters, no output schema, and no annotations, the description is too minimal. It fails to explain what happens if the range is invalid, whether the sheet is auto-created, error cases, or the return value. For a mutation tool, more context is needed to ensure safe and correct usage.

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

Parameters3/5

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

Schema description coverage is 100% for the 4 parameters, so the schema already documents each parameter's purpose. The description adds no additional meaning beyond the schema, meeting the baseline of 3 per the guidelines.

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 overwrites values in a specific range and that old data is completely replaced. The verb 'ghi đè' (overwrite) is specific, and the resource 'range trong Google Sheet' is identified. It distinguishes from sibling tools like sheets_append (appends) and sheets_clear (clears).

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 overwriting data but does not explicitly state when to use this tool versus alternatives like sheets_append for appending. No conditions or exclusions are mentioned. Guidance is implicit rather than explicit.

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/lmdat/google-sheet-oauth-mcp'

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