Skip to main content
Glama

Generate Content

post_generateContent

The official Google Gemini API endpoint for generating content using Gemini models. This endpoint supports multimodal inputs, including text, images, audio, video, and documents, depending on the capabilities of the selected model. It also supports conversation history, system instructions, function calling, structured JSON output, safety settings, and configurable generation parameters. Group: Google Endpoints. Billing per call: Credits: metered.

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body. Example: {"model":"gemini-4-argon","contents":[{"role":"user","parts":[{"text":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}]}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/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 burden. It does add genuine behavioral context beyond the schema: per-call metered credit billing, multimodal input support, and feature coverage (conversation history, system instructions, function calling, structured JSON output, safety settings). It omits other behavior an agent needs, such as authentication requirements, streaming vs. non-streaming, and failure modes.

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?

Purpose is front-loaded in the first sentence, followed by capability detail and then metadata. The 'Group: Google Endpoints. Billing per call: Credits: metered.' tail is terse and functional rather than padded, so nearly every sentence earns its place.

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?

This is a high-complexity generation endpoint with a nested free-form body, no annotations, and no output schema. The description covers capability scope and cost well, but because no output schema exists it should say more about the shape of the response, and it says nothing about auth or streaming behavior.

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

Parameters4/5

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

Schema coverage is 100% and there is a single free-form 'body' parameter documented mainly by an example. The description meaningfully extends that by enumerating what the body can carry — multimodal parts, conversation history, system instructions, function calling, structured JSON output, safety settings, generation parameters — which an agent cannot infer from the example alone.

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 description states a specific verb and resource ('Google Gemini API endpoint for generating content using Gemini models') and lists the capabilities it covers. It distinguishes itself from siblings only implicitly, by calling itself the 'official Google Gemini API endpoint' versus the OpenAI-style post_chat_completions/post_responses, but never names those alternatives explicitly.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no routing against the many overlapping siblings (post_chat_completions, post_responses, post_embeddings, post_moderations). The only usage-adjacent statement is that multimodal input depends on 'the capabilities of the selected model,' which is a constraint rather than an instruction on when to pick this endpoint.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources