Skip to main content
Glama

aistudio_prompt

Run text or multimodal prompts in Google AI Studio, attach local files, and optionally use Google Search grounding via a signed-in browser or Gemini API key.

Instructions

Run a text or multimodal prompt in Google AI Studio (chat playground or Gemini API).

Args: prompt: The prompt or question to run. model: Optional model name (e.g. 'gemini-4-hydrogen', 'gemini-4-neon'). system_instruction: Optional system instruction. files: Optional list of local file paths (images, PDFs, audio, video) to attach. google_search: Enable Google Search grounding when True. temperature: Optional sampling temperature (API mode). use_browser: True (default) uses your signed-in Chrome session at aistudio.google.com; False uses GEMINI_API_KEY.

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": {
      "prompt": "<prompt>"
    },
    "name": "aistudio_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
modelNo
promptYes
temperatureNo
use_browserNo
google_searchNo
system_instructionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the two execution backends, that browser mode reuses the signed-in Chrome session at aistudio.google.com while the alternative path needs GEMINI_API_KEY, and that google_search triggers grounding. It does not cover cost/quota implications, rate limits, or whether browser mode fails when unauthenticated, which keeps it out of the top band for a tool with zero annotation safety profile.

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 purpose line is front-loaded and followed by a compact per-argument list, so an agent can scan it quickly. The Args block is not redundant because the schema has zero description coverage; it is slightly mechanically formatted rather than prioritized, but nothing is wasted.

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?

For a 7-parameter prompt-execution tool with an output schema already defined, the definition covers each input, both backends, and grounding behavior. The remaining gap is around failure/auth preconditions (e.g., needing aistudio_browser_login first, or missing API key handling), which an agent would want before invoking.

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 compensate entirely, and it does: all seven parameters are explained with real added meaning, including that files are local paths for images/PDFs/audio/video, that model takes names like 'gemini-4-hydrogen', that temperature applies only in API mode, and the default/fallback semantics of use_browser. This is meaning beyond the bare JSON types.

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?

The opening sentence gives a specific verb and resource ('Run a text or multimodal prompt in Google AI Studio') and names the two execution surfaces (chat playground vs Gemini API). Sibling differentiation is implicit only: the mention of multimodal prompt handling is distinguishable from aistudio_generate_image, aistudio_tts, and aistudio_transcribe by the verb, but the description never states the boundary explicitly.

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

Usage Guidelines3/5

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

Usage context is implied through 'chat playground or Gemini API' and the use_browser explanation, which tells the agent which backend it is talking to. However, there is no explicit when-to-use versus when-to-use-a-sibling guidance, and no prerequisites such as 'requires a signed-in Chrome session' or 'requires GEMINI_API_KEY to be set for browser=False' stated as a decision rule.

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