Skip to main content
Glama

export_to_gsheet

Destructive

Export a Mycorr table to Google Sheets. destination is new_spreadsheet (always works) or existing_spreadsheet with a spreadsheet_id (URL or id) and a new_tab/overwrite_tab target. For a new sheet with one connected account, table_id and destination are all you need.

An EXISTING sheet works only if Mycorr created it or the user picked it in the Mycorr app before (Google's per-file drive.file scope); any other id errors, telling the user to pick it in the app. Ask the user for its URL and tab name, or call list_exportable_spreadsheets to let them pick.

ACCOUNT: saved_connection_id auto-picks when one Sheets account is connected. With several, the call SUCCEEDS with status: "choose_account" and the list: NOT a failure, so do not say anything failed. Show the accounts, ask which, call again with that saved_connection_id, and reuse an account already settled in this flow without asking again. With none, the error tells the user to connect one in the app.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table_id": "<table_id>",
      "destination": "<destination>"
    },
    "name": "export_to_gsheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
table_idYesMyCorr table id to export.
destinationYesNew spreadsheet (recommended) or an existing one you picked in the app.
saved_connection_idNoGoogle connection to write with; auto-picked when there is only one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses the Google `drive.file` per-file scope constraint, that an invalid id errors with a pick-in-app message, and that a multi-account situation returns a `choose_account` status that must NOT be reported as failure — a crucial behavioral trait. Slightly short of 5 because the irreversible nature of `overwrite_tab` is only implied through the destination wording rather than called out as data loss.

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?

Front-loads the core action and destination semantics, then moves to the gating constraints and the account flow in labeled blocks. Dense but every paragraph carries operational information; the account paragraph is the wordiest but its content is non-obvious and earns its space.

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?

No output schema exists, and the description compensates by describing the `choose_account` return shape explicitly. Together with the scope limits, error behavior, and account auto-selection rules, an agent has everything needed to call this correctly and interpret the response.

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 coverage is already 100%, yet the description adds real meaning: `spreadsheet_id` accepts a full URL or a bare id, `saved_connection_id` is auto-picked when one account exists and should be reused once settled in the flow, and the two required params suffice for a new sheet. Minor gap: no guidance on how `title` is handled if it collides with an existing name.

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?

States a specific verb and resource ("Export a Mycorr table to Google Sheets") and immediately disaggregates the two destination modes (new_spreadsheet vs existing_spreadsheet with new_tab/overwrite_tab), so the agent can picture the operation before opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit about when each mode applies: new_spreadsheet "always works", existing_spreadsheet only when Mycorr created it or the user picked it in the app, with a named alternative (`list_exportable_spreadsheets`) and the recovery path when an id fails. Also states the minimum viable call for the common case (table_id + destination with one connected account).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources