Skip to main content
Glama

Refresh data

refresh_data
Idempotent

Pull fresh content now instead of at the next scheduled refresh.

When to use:

  • Before an announcement, so menus and prices are current; after someone edits a sheet that a creative repeats over; after changing a web link's crop with update_items, to see the result.

When NOT to use:

  • Changing a feed's or link's settings: use update_items. A screen that has not picked up a change, or is frozen: use refresh_screens.

What to know:

  • Settings never change. A failing feed is reported in the result, not thrown. Screens showing the data update when a sync succeeds. Needs integration.edit for feeds, media.edit for a web link.

  • A sheet published to the web changes on Google's side up to about 5 minutes after an edit, so a sync straight after an edit can still read the old rows: synced true says the sync ran, not that the edit arrived. Check rowCount with get_items and sync again after a few minutes if it is old.

Parameters:

  • Pass exactly one; none or two is an error.

  • dataSourceId: one ds_… feed from list_items kind data_sources.

  • allDataSources: true syncs every feed you can edit, one after another; one failure does not stop the rest; limited to 5 calls a minute.

  • webLinkId: one med_… web link (list_items kind media, mediaKind web); renders a new snapshot.

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_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
webLinkIdNoThe web link whose picture is taken again. Ids come from list_items kind media.
dataSourceIdNoThe data source to sync now. Ids come from list_items kind data_sources.
allDataSourcesNoSync every data source in the workspace, in place of one id.
syncedFolderIdNoA synced cloud folder (list_items kind synced_folders): copy its new files in now.

Output Schema

NameRequiredDescriptionDefault
okNoallDataSources: how many synced.
errorNoOne feed: why it did not sync.
totalNoallDataSources: how many feeds were tried.
failedNoallDataSources: how many failed.
queuedNoWeb link: true when the new picture is still being made; false when it is ready.
syncedNoOne feed: true when it synced; false with error set when it did not.
renderedNoWeb link: true when the request was accepted.
webLinkIdNoWeb link: the page that was asked to render again.
dataSourceIdNoOne feed: the data source that was synced.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / syncedFolderId
      Added value: +{
      +  "description": "A synced cloud folder (list_items kind synced_folders): copy its new files in now.",
      +  "type": "string"
      +}
  2. Changed12 schema fields changed
    • changedInput schema / properties / allDataSources / description
      Previous value: -"Every data source."New value: +"Sync every data source in the workspace, in place of one id."
    • changedInput schema / properties / dataSourceId / description
      Previous value: -"Data source id."New value: +"The data source to sync now. Ids come from list_items kind data_sources."
    • changedInput schema / properties / webLinkId / description
      Previous value: -"Web link id."New value: +"The web link whose picture is taken again. Ids come from list_items kind media."
    • addedOutput schema / description
      Added value: +"One of three results, by the argument that was passed: one feed, all feeds, or a web link."
    • addedOutput schema / properties / dataSourceId
      Added value: +{
      +  "description": "One feed: the data source that was synced.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / failed / description
      Previous value: -"allDataSources: feeds that failed."New value: +"allDataSources: how many failed."
    • changedOutput schema / properties / ok / description
      Previous value: -"allDataSources: feeds that synced."New value: +"allDataSources: how many synced."
    • addedOutput schema / properties / queued
      Added value: +{
      +  "description": "Web link: true when the new picture is still being made; false when it is ready.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / rendered
      Added value: +{
      +  "description": "Web link: true when the request was accepted.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / synced / description
      Previous value: -"One feed: true when it synced."New value: +"One feed: true when it synced; false with error set when it did not."
    • changedOutput schema / properties / total / description
      Previous value: -"allDataSources: feeds tried."New value: +"allDataSources: how many feeds were tried."
    • addedOutput schema / properties / webLinkId
      Added value: +{
      +  "description": "Web link: the page that was asked to render again.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / allDataSources / description
      Previous value: -"true syncs every data source you can edit."New value: +"Every data source."
    • changedInput schema / properties / dataSourceId / description
      Previous value: -"One data source id (ds_…), from list_items kind data_sources."New value: +"Data source id."
    • changedInput schema / properties / webLinkId / description
      Previous value: -"A web link media id (med_…), from list_items kind media with mediaKind web."New value: +"Web link id."
  4. Added

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, openWorldHint=true), the description adds substantial behavior: settings are never mutated, feed failures are reported in the result rather than thrown, screens update only on a successful sync, and it names the required permissions (integration.edit for feeds, media.edit for web links). It also discloses the 5-calls-per-minute cap on allDataSources and the ~5-minute Google-side propagation delay with the 'synced true does not mean the edit arrived' caveat. It falls just short of a 5 only because it does not say what the result payload looks like beyond the synced/rowCount hints.

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?

The 'When to use / When NOT to use / What to know / Parameters' structure is front-loaded and scannable, with no filler sentences. It is on the long side, but each block carries operational information an agent would otherwise have to guess.

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?

For a mutating, rate-limited, multi-mode tool, the description covers selection rules, permissions, failure semantics, rate limits, and the stale-data pitfall. An output schema exists, so it needn't document return shape, yet it still explains the one ambiguous return signal (synced true) and points to get_items for rowCount verification.

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 per-parameter baseline is 3, but the description adds a constraint the schema cannot express: exactly one of the four must be passed, and none or two is an error (the schema shows required=0 with no oneOf). It also clarifies allDataSources failure isolation and rate limiting and that webLinkId renders a new snapshot, adding meaning beyond the schema text.

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 opens with a specific verb and resource: 'Pull fresh content now instead of at the next scheduled refresh.' It immediately distinguishes itself from sibling tools by naming both update_items (settings changes) and refresh_screens (display issues) as the wrong tool for adjacent jobs.

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?

It has explicit 'When to use' and 'When NOT to use' sections with concrete scenarios (before an announcement, after a sheet edit, after a crop change via update_items) and named alternatives for each exclusion. Nothing is left for the agent to infer.

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