Access Google Gemini models for multimodal AI, text generation, and reasoning. Analyze text, images, and documents; enable Google Search grounding and Python code execution; generate embeddings for semantic search; and explore available models and token usage.
Amp is an agentic coding tool for the terminal and the web. It adds remote MCP servers to your local settings or to your Amp account, and signs in to them with OAuth.
This guide connects Gemini to Amp through MewCP, so Amp can use Gemini's 10 tools, like create_interaction, start_deep_research and get_interaction, without your Gemini credentials ever reaching the app.
Your Gemini API key is stored encrypted and injected only at call time. Your agent never holds it, so it can never leak it, log it or paste it into a prompt.
More apps
Manage repositories, pull requests, issues, branches and development workflows on GitHub. Automate software delivery and collaborate across engineering projects.
Connect to external APIs, webhooks and internet services through standard HTTP requests. Build integrations with virtually any platform that exposes a web-based interface.
Give AI coding agents access to a curated library of real-world website designs, screenshots, design systems, and reusable UI components. Search visual references, find similar designs, analyze layouts, extract colors and typography, compare websites, and retrieve copy-ready JSX components for building better interfaces
Manage deployments, projects, domains and application infrastructure on Vercel. Automate releases, monitor environments and operate modern web applications.
Other clients
Gemini works the same way in every client below. Pick yours for its own guide.
Free to start.
Scope access to the exact Gemini tools and accounts you allow, work and personal side by side. Anything outside that scope is refused at call time, even when the model asks for it.
Each call is logged: what ran, on which account, and whether it worked. Failures come back structured, so the agent knows whether to retry instead of guessing.
Every app sits behind one secure MCP URL, and there is no server for you to deploy or keep running. Add an integration in the dashboard and it is live on the next call, with no config to change and no new credentials to wire up. Tools load only when a task needs them, so your agent stays fast and focused however many apps you connect.
Start amp. A browser window opens; sign in and approve access. No API key needed.
Start a new chat and ask: "List the tools you can use from MewCP." You should see your connected apps. amp mcp doctor shows the server status.
Sends a prompt (text plus optional file links) to a Gemini text model and returns the finished interaction: its `id`, `status`, `steps` and token `usage`; the answer is the `text` of the `model_output` step. Pass an earlier `id` as `previous_interaction_id` to continue a conversation server-side. Files go in only as public HTTPS or pre-signed links (up to 15 MB each, no login or paywall); local files and private links are not supported. Text output only: image blocks (such as code-execution charts) are dropped from the returned steps. With `google_search` the model decides what to search (each query is billed on Gemini 3+ models after 5,000 free per month); Google's terms require you to show the answer with its `url_citation` annotations and the `search_suggestions` from the `google_search_result` step, unmodified. `code_execution` runs Python in Google's sandbox (fixed libraries, no installs, 30 s per run). Status `incomplete` means the output was cut short, e.g. by `max_output_tokens`.
Starts Gemini's Deep Research agent (preview) in the background on a research question; the agent plans, searches the web, reads sources and writes a detailed cited report. Returns immediately with the interaction `id` and `status: in_progress`; it does not wait for the report. Poll get_interaction with that `id` every 30-60 seconds until `status` is `completed` or `failed`; most tasks finish within 20 minutes, at most 60. The report is the text of the last step, with citations to show and review alongside it (Google Search terms apply). COSTLY: about $1-3 per task (`max=true`: about $3-7), so use it only for real research, not quick questions. Text only (charts are off). Stop a running task with cancel_interaction.
Retrieves a stored interaction by id and returns its `status`, `steps`, and token `usage`. Use it to poll background jobs such as start_deep_research until `status` leaves `in_progress` (`completed`, `failed` or `cancelled`); once completed, the answer or report is the text of the last `model_output` step, with citation annotations to show alongside it. Only stored interactions can be fetched. Text output only: image blocks are dropped from the returned steps.
Cancels a background interaction that is still running (e.g. a start_deep_research task) and returns the interaction as it was before and after the cancel; its `status` becomes `cancelled`. Only applies to background interactions still `in_progress`. Get the `id` from start_deep_research, or check the current status first with get_interaction. NOTE: this stops the job for good; it cannot be resumed. The response includes both the before and after state so you have a full record of what changed.
DESTRUCTIVE — REQUIRES EXPLICIT USER CONFIRMATION BEFORE CALLING. Permanently deletes a stored interaction (its stored request and response) by id. This action is irreversible — the interaction's input, output and history cannot be recovered, and it can no longer be fetched or continued with previous_interaction_id. NEVER call this tool autonomously or as part of an automated flow. You MUST stop, tell the user exactly what will be deleted and that it is permanent, and wait for their explicit written confirmation before proceeding. Returns the deleted `id` and `deleted: true`.
Lists the models available through the Gemini API. Returns each model's resource name, base model ID, version, token limits, supported generation methods, thinking support, and default sampling parameters, plus `nextPageToken` when more pages exist. Returns 50 models per page by default and at most 1000 per page; pass `nextPageToken` back as `page_token`, keeping `page_size` the same, to get the next page.
Gets metadata for one Gemini model. Returns its resource name, base model ID, version, display name, input and output token limits, supported generation methods, thinking support, and default temperature, max temperature, topP and topK. Get valid model IDs from list_models.
Runs a model's tokenizer on input content and returns the total token count plus per-modality counts, without generating anything. Models may tokenize differently, so pass the same model you will generate with.
Generates an embedding vector for one piece of content using a Gemini embedding model (e.g. `gemini-embedding-001`, `gemini-embedding-2`; generation models are not supported), for semantic search, classification, and clustering. Returns the vector in `embedding.values` plus prompt token usage per modality (`gemini-embedding-001` returns no usage). Only `parts[].text` is counted. Task type changes the vector, so for retrieval with `gemini-embedding-001` embed queries with taskType RETRIEVAL_QUERY and corpus text with RETRIEVAL_DOCUMENT, and use the same choice every time you embed the same kind of text. `gemini-embedding-2` does not use taskType: put the task in the text instead, e.g. `task: search result | query: <text>` for queries and `title: none | text: <text>` for documents. Default size is 3072 dimensions; set `outputDimensionality` (768, 1536 or 3072 recommended) to shrink it. `gemini-embedding-001` vectors below 3072 are not normalized, so normalize them yourself before comparing. Use list_models to find models whose supportedGenerationMethods include embedContent.
Evaluates one or more structured decision questions (yes/no probability `noul`, multiple choice `choice`, or graded `score`) against one shared input and returns one calibrated answer per question keyed by your question IDs, plus token usage; nothing is stored. Each question is answered independently against the same input, so batch related checks into one call. If `prompt_feedback.block_reason` is set, the input was blocked by the input policy and `answers` is empty.