Skip to main content
Glama

Google Sheets MCP by InsightfulPipe

Google Sheets Helper

query_contexts
Read-only

Helper for planning InsightfulPipe Google Sheets data queries.

Step 1: request='accounts' – Retrieve workspace_id, brand_id, spreadsheet_id, sheet_id, other source metadata, AND available_requests (all tables you can query).

Step 2: request='actions_details' with actions=['table_a', 'table_b'] – REQUIRED before querying. Returns the exact request body, required identifiers, fields, and notes for each action.

Optional: request='available_actions' – Standalone call to list all available tables/actions (already included in accounts response).

Optional: request='brands' with brand_id + workspace_id to pull brand guidelines.

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": {
      "request": "<request>"
    },
    "name": "query_contexts"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsNo
requestYes
brand_idNo
platformNo
workspace_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The readOnlyHint annotation already tells the agent this is non-mutating, and the description is consistent with that. It adds useful behavior the annotations cannot convey — that accounts returns workspace_id/brand_id/spreadsheet_id/sheet_id *and* available_requests, and that available_actions duplicates that payload — but says nothing about failure modes (e.g. invalid action name, missing identifiers) or response shape beyond field names.

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?

Numbered steps are front-loaded and each line earns its place, including the parenthetical warning that prevents a redundant available_actions call. The brands line is telegraphic — it says to pass two ids but not the condition under which brand guidelines are actually needed.

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?

An output schema exists, so return values need not be detailed, and the workflow ordering plus the enum semantics are enough to drive correct invocation. Two gaps remain: the undocumented `platform` parameter and the absence of any statement about which tool performs the query after actions_details are retrieved.

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?

With 0% schema description coverage, the description carries the full burden and mostly meets it: it defines three of the four request enum values by purpose, gives the format of `actions` (a list of table names), and pairs brand_id with workspace_id for the brands call. The `platform` parameter is never mentioned anywhere, leaving one of five parameters completely undefined.

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 states this is a helper for *planning* Google Sheets data queries and enumerates the four request modes with what each returns, which is specific enough to distinguish it as a discovery/metadata tool rather than an executor. It never names its siblings (query_data, execute_action), so the boundary between 'plan' and 'execute' must be inferred.

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

Usage Guidelines4/5

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

Strong explicit sequencing: Step 1 accounts, Step 2 actions_details marked 'REQUIRED before querying', plus two calls flagged optional with the reason (available_actions is redundant with accounts). What is missing is the handoff — the description says 'before querying' but never states that the actual query runs through a different tool such as execute_action.

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.