Skip to main content
Glama
ZatesloFL

Google Workspace MCP Server

by ZatesloFL

search_custom

Enhance search functionality by querying Google Custom Search JSON API with advanced filters such as date restrictions, file types, and language preferences. Ideal for precise, context-specific results.

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.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the API but doesn't describe rate limits, authentication requirements (beyond the user_google_email parameter), error handling, or performance characteristics. The Returns section describes output format, but behavioral traits like network dependencies or pagination are omitted.

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 description is well-structured with clear sections (Args, Returns) and uses bullet-like formatting for parameters. It's appropriately sized for a 12-parameter tool, though some sentences could be more front-loaded (e.g., the core purpose is stated first, but parameter details dominate).

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?

Given the tool's complexity (12 parameters, no annotations, but has output schema), the description is fairly complete. It explains parameters thoroughly and includes output format, though it lacks behavioral context (e.g., error cases, rate limits). The output schema reduces the need for return value details, but more operational guidance would help.

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

Parameters5/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 fully compensate. It provides detailed parameter documentation with examples (e.g., 'd5' for date_restrict, 'lang_en' for language), default values, and constraints (e.g., '1-10' for num). This adds substantial meaning beyond the bare schema, making parameters understandable.

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 clearly states the specific action ('Performs a search') and resource ('using Google Custom Search JSON API'), distinguishing it from sibling tools like search_docs or search_drive_files. It precisely identifies the search engine being used, which is crucial for differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives like search_custom_siterestrict or other search tools in the sibling list. It lacks context about prerequisites (e.g., Google authentication setup) or typical use cases, leaving the agent with no usage direction.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZatesloFL/google_workspace_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server