Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by akilja24

search_custom

Search the web or images through Google Custom Search and filter results by site, date, file type, language, country, and safe-search level. Use it to find targeted web or image results for a query.

Instructions

Performs a search using Google Custom Search JSON API.

Args: user_google_email (str): The user's Google email address. Required. q (str): The search query. Required. num (int): Number of results to return (1-10). Defaults to 10. start (int): The index of the first result to return (1-based). Defaults to 1. safe (Literal["active", "moderate", "off"]): Safe search level. Defaults to "off". search_type (Optional[Literal["image"]]): Search for images if set to "image". site_search (Optional[str]): Restrict search to a specific site/domain. site_search_filter (Optional[Literal["e", "i"]]): Exclude ("e") or include ("i") site_search results. date_restrict (Optional[str]): Restrict results by date (e.g., "d5" for past 5 days, "m3" for past 3 months). file_type (Optional[str]): Filter by file type (e.g., "pdf", "doc"). language (Optional[str]): Language code for results (e.g., "lang_en"). country (Optional[str]): Country code for results (e.g., "countryUS").

Returns: str: Formatted search results including title, link, and snippet for each result.

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": {
      "user_google_email": "<user_google_email>",
      "q": "<q>"
    },
    "name": "search_custom"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes
numNo
safeNooff
startNo
countryNo
languageNo
file_typeNo
search_typeNo
site_searchNo
date_restrictNo
user_google_emailYes
site_search_filterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.13.1

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the load: it discloses that results are formatted with title, link and snippet, and it documents each parameter's accepted value format. However, it says nothing about authentication scope beyond the email argument, whether a Google Custom Search engine ID must be pre-configured, or about the JSON API's query quotas and rate limits — material operational facts for a third-party API wrapper.

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?

Docstring style with a one-line purpose followed by a scannable per-parameter list; given 0% schema coverage, each Args line earns its place. The trailing Returns block is largely redundant since an output schema already exists, but it is a minor cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter third-party API wrapper with no annotations, the parameter documentation is solid and the return values are covered by both text and output schema. What is missing is contextual: prerequisites (configured search engine), quota/rate-limit behavior, and any routing guidance relative to sibling search tools, which leaves the definition adequate but incomplete for reliable invocation.

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 compensate, and it does: all twelve parameters get meaningful semantic notes, defaults, ranges (num 1-10), and concrete value syntax such as "d5" for five days and the "e"/"i" include-exclude semantics. The remaining gap is inter-parameter behavior — it does not state that site_search_filter is only meaningful when site_search is set, or how start interacts with num.

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?

States a specific verb and resource — performs a search against the Google Custom Search JSON API — so the agent knows this is a general web search operation rather than a Drive/Gmail/document search. It never differentiates itself from the sibling search_custom_siterestrict, which overlaps heavily given this tool's own site_search parameters, leaving the choice between them ambiguous from the description alone.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance at all; the text jumps straight into an Args list. An agent must infer that this is the general web-search option versus the many search_* siblings, and nothing says when site_search should be preferred over the separate site-restrict variant.

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