Skip to main content
Glama

Genkit MCP

Official
by firebase
search-and-urls.prompt934 B
--- title: Search Grounding and URL Context description: read this to understand how to ground results on Google search or automatically ingest URLs in prompts to understand their contents --- When using Gemini models, you can add configuration to automatically ground the prompt in Google search: ```ts const {text} = await ai.generate({ model: googleAI.model('gemini-2.5-flash'), // this includes the "built-in" search grounding tool config: { tools: [ {googleSearch: {}}, ] } }) ``` If your prompt contains URLs that you want the model to read and understand, you can add the URL context tool: ```ts const {text} = await ai.generate({ model: googleAI.model('gemini-2.5-flash'), // this includes the "built-in" url fetching tool config: { tools: [ {urlContext: {}}, ] } }) ``` You can use either or both of these tools to improve the "groundedness" of your generated model responses.

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/firebase/genkit'

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