Skip to main content
Glama

Generate content (Gemini-compatible)

create_gemini_content

Generate content using the native Gemini GenerateContent API with support for tools, safety settings, and generation configuration.

Instructions

Generate content (Gemini-compatible) Generates content using the native Gemini GenerateContent shape. This route is exposed only when the model details advertise Gemini requests and a same-protocol route is currently available. ProtoJSON lowerCamelCase and original proto snake_case field names are preserved. Unknown fields are forwarded best-effort and support is determined by the selected provider. Authentication: Use ?key= query parameter, x-goog-api-key header, or Authorization: Bearer header.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesModel name (e.g., gemini-2.5-pro)
toolsNoGemini tools. Tool types and combinations are interpreted by the selected service.
contentsYesConversation contents
toolConfigNoGemini tool configuration such as functionCallingConfig.
tool_configNoOriginal proto field-name spelling of toolConfig.
cachedContentNoGemini cached content resource name for compatible models.
cached_contentNoOriginal proto field-name spelling of cachedContent.
safetySettingsNo
safety_settingsNoOriginal proto field-name spelling of safetySettings.
generationConfigNo
generation_configNoOriginal proto field-name spelling of generationConfig.
systemInstructionNo
system_instructionNoOriginal proto field-name spelling of systemInstruction.
Behavior4/5

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

Annotations indicate a write operation (readOnlyHint=false) with no destructiveness. The description adds authentication requirements, preservation of field naming styles (lowerCamelCase and snake_case), and best-effort forwarding of unknown fields. It does not detail rate limits or idempotency.

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 description is efficient, front-loading purpose and conditions, but could be more structured with bullet points for readability. No superfluous sentences.

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?

Given the complexity (13 parameters, nested objects) and absence of output schema, the description covers key contextual details: route availability, naming conventions, authentication, and forwarding behavior. It lacks provider-specific error handling or rate limit information, but remains fairly complete.

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 77% (high), so the description does not need to redocument parameters. It adds value by explaining authentication parameters (key, headers), naming convention duality, and provider-specific support for unknown fields.

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 title and description clearly state this tool generates content using the Gemini GenerateContent shape, distinguishing it from siblings like create_chat_completion and create_anthropic_message which serve different model families.

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?

The description specifies the route is exposed only when model details advertise Gemini requests and a same-protocol route is available, setting a clear precondition. It also explains naming conventions and authentication methods, though it lacks explicit exclusions or alternatives.

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

Install Server

Other Tools

Latest Blog Posts

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/hedging8563/tokenlab-mcp-server'

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