Skip to main content
Glama

refresh_cache

Read-only

Invalidates cached Google Workspace data for a spreadsheet, doc, folder, or calendar—or all caches—so the next access fetches fresh content.

Instructions

Invalidate caches, forcing a fresh fetch on next use.

Args: spreadsheet_id: Invalidate sheet structure and data cache for this spreadsheet. doc_id: Invalidate doc content cache for this Google Doc file ID. folder_id: Invalidate Drive folder listing cache for this folder ID. calendar_id: Invalidate calendar metadata cache for this calendar ID. If none are provided, invalidates all caches (sheets, data, folders, docs, calendars, and the Gmail mailbox's own send-as addresses).

Returns: Confirmation of what was invalidated

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "refresh_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNo
folder_idNo
calendar_idNo
spreadsheet_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the actual semantics — caches are invalidated so the next use refetches — and enumerates the full blast radius of the no-argument default (sheets, data, folders, docs, calendars, and Gmail send-as addresses). That default-is-everything disclosure is the most important behavioral fact here. It does not mention that subsequent calls may be slower or consume extra API quota, and there is mild tension between 'invalidate' and readOnlyHint=true, though the tool changes only cached state rather than stored data.

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-loaded with a one-line purpose, then a clean per-argument list, then the default behavior folded into the last argument's note. Every line carries information. The 'Returns' line is redundant given the tool has an output schema, but it is a single short sentence.

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?

For a zero-required-parameter invalidation tool, the definition covers purpose, per-parameter scope, and default behavior, which is essentially all an agent needs to call it correctly. Return values are already covered by the output schema, so the brief 'Returns' note is a bonus rather than a necessity.

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 0%, so the description must carry the parameter burden, and it does: each of the four optional arguments is tied to a concrete resource and a concrete cache (sheet structure and data, doc content, folder listings, calendar metadata). It also documents that all-null is a meaningful, supported invocation. Minor gap: it does not say whether the arguments can be combined in one call.

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 opening line gives a specific verb and object ('Invalidate caches') plus the observable effect ('forcing a fresh fetch on next use'), so an agent knows exactly what the call accomplishes. It does not explicitly contrast with the sibling cache tools (get_cache_ttl, set_cache_ttl), though the verb 'invalidate' is naturally distinct from reading or setting TTL.

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?

Usage is implied through the per-argument scoping: each argument names the resource family you want refreshed, and the description states that omitting all of them invalidates everything. That default is genuinely useful guidance. However, there is no explicit statement of when to reach for this versus adjusting the cache TTL or simply re-reading, nor any warning about the cost of a full flush.

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

Deploy Server

Other Tools