Skip to main content
Glama

fetch_shared_docs

Download text from public Google Docs, Sheets, and Slides shared in a WhatsApp chat; private files fail with a clear message and saved text is available via get_media_text.

Instructions

Download the text of public Google Docs, Sheets and Slides linked in a chat (https://docs.google.com only).

Private documents fail with a clear message. Text is stored and shown by get_media_text. The download is made from the user's computer, so Google sees the user's IP address.

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": {
      "chat": "<chat>"
    },
    "name": "fetch_shared_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
afterNo
limitNo
beforeNo
accountNoAccount from list_accounts when several WhatsApp numbers are set up; default: default

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare it is network-touching and non-read-only, and the description adds real value on top: the failure mode for private docs, the storage side effect ('Text is stored and shown by get_media_text'), and the privacy consequence that Google sees the user's IP because the download originates from the user's machine. Missing only scale details such as how many links are fetched per call relative to the limit parameter.

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?

Four short sentences, purpose front-loaded, then failure mode, output location, and privacy caveat in that order. Every sentence carries information an agent would not get from the schema or annotations.

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 explained, and the description covers purpose, failure behavior, storage, and privacy. What it does not cover is how the 'before'/'after'/'limit' parameters scope the fetch, which matters for an agent deciding how to iterate over a busy chat.

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

Parameters2/5

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

Schema description coverage is only 20% – just the 'account' parameter is documented. The description never mentions 'after', 'before', or 'limit', so pagination and time-window semantics for three of five parameters are left entirely undefined in both places. Only 'chat' is implied by 'linked in a chat'.

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 ('Download the text of public Google Docs, Sheets and Slides linked in a chat') and narrows the domain explicitly to https://docs.google.com only. That scope plus the pointer to get_media_text distinguishes it from generic download/extract siblings without the agent needing to open another schema.

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?

It gives a clear usage boundary ('public' docs only; private documents fail with a clear message) and names the follow-up tool that surfaces the result. It stops short of naming alternatives such as download_media or extract_file_text and when one should be preferred over this one.

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