Skip to main content
Glama

api_call

Send any Gemini API request the SDK supports to use new models or features before dedicated tools exist; media outputs are saved to disk.

Instructions

Raw Interactions API gateway: send ANY request the SDK supports; media outputs are saved. Use it for brand-new models/features before a dedicated tool exists (see docs_search for schemas).

model or agent: one is required. input: text or a content list ([{"type":"text","text":"..."}]). files: local files appended to the input. response_format / generation_config / tools / environment / agent_config: passed through as-is. beta: use the v1beta client (default).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "api_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
betaNo
agentNo
filesNo
inputNo
modelNo
toolsNo
filenameNo
force_newNo
backgroundNo
environmentNo
agent_configNo
response_formatNo
generation_configNo
system_instructionNo
previous_interaction_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does add real context beyond the schema: media outputs are saved, beta defaults to the v1beta client, several config objects are passed through unmodified, and one of model/agent is required. It does not cover permissions/auth requirements, rate limits, error or validation behavior, or what happens with background/force_new/previous_interaction_id, which matters for a mutation-capable 15-parameter gateway.

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?

Front-loaded with the core purpose and the key routing rule in the first two sentences, followed by compact per-parameter notes. Dense but nearly every clause carries information; the terse 'model or agent: one is required' style is efficient rather than wasteful, though the bullet-less run-on grouping slightly hurts scannability.

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 15-parameter, zero-coverage, no-annotation, no-output-schema gateway, the description does an above-average job on purpose and on the highest-traffic parameters, but it leaves five parameters undocumented and says nothing about return shape beyond 'media outputs are saved'. An agent could call it, but not confidently for the advanced options.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 15 parameters, so the description must compensate and it only partly does. It adds genuine meaning for input (text vs. a [{"type":"text","text":"..."}] content list), files (local files appended to input), the passthrough group (response_format/generation_config/tools/environment/agent_config), and beta, but filename, force_new, background, previous_interaction_id, and system_instruction are left entirely unexplained.

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 first clause gives a specific verb and resource ('Raw Interactions API gateway: send ANY request the SDK supports') and immediately scopes the output behavior ('media outputs are saved'). It also distinguishes itself from the large sibling set by naming when it applies ('brand-new models/features before a dedicated tool exists') and points at docs_search for schemas, so an agent can separate it from gemini_chat, generate_image, agent_run, etc.

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

Usage Guidelines4/5

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

Explicit when-to-use is given: for new models/features that lack a dedicated tool, with docs_search named as the way to obtain request schemas. The phrase 'before a dedicated tool exists' implicitly routes the agent to dedicated siblings when one is available, but there is no explicit 'do not use this for X' exclusion and no guidance on preferring a specific sibling.

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