Skip to main content
Glama

create_gemini_content

Generate content via Gemini models using native contents, multimodal parts, generation configuration, and tools. Offers a prompt shortcut for simpler calls.

Instructions

Create a TokenLab Gemini generateContent call with native contents, multimodal parts, generation config, and tools. A prompt shortcut remains available for simple calls. Requires TOKENLAB_API_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesPublic TokenLab Gemini-compatible model ID.
toolsNoNative Gemini tools.
promptNoConvenience shortcut for one user text part; do not combine with contents.
contentsNoNative Gemini conversation contents.
toolConfigNoNative Gemini tool configuration.
temperatureNoConvenience temperature setting; do not combine with generationConfig.temperature.
cachedContentNoOptional cached content resource name.
safetySettingsNoNative Gemini safety settings.
generationConfigNoNative Gemini generation configuration.
systemInstructionNoNative Gemini system instruction.
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It states the tool 'creates a call' and requires an API key, but does not indicate whether it is a read or write operation, side effects, idempotency, or cost implications. The term 'create' could be misleading as it does not create a persistent resource.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences long, no redundant information, and leads with the primary action. Every sentence serves a purpose: stating the action, highlighting a shortcut, and noting a prerequisite.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (10 parameters, nested objects, no output schema), the description is too brief. It lacks information on the return format, error handling, or how to structure complex inputs (e.g., multimodal parts). The absence of an output schema makes this gap more significant.

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?

The schema has 100% description coverage, providing context for each parameter. The main description adds a high-level summary (e.g., native contents, prompt shortcut) but does not add significant meaning beyond the schema. It does not clarify constraints like 'do not combine with contents' which are already in the schema.

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 clearly states the tool creates a TokenLab Gemini generateContent call, specifying its capabilities (native contents, multimodal parts, generation config, tools) and a prompt shortcut. It does not explicitly differentiate from sibling tools like create_anthropic_message, but the mention of Gemini and the tool name provide sufficient distinction.

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?

The description mentions a prompt shortcut for simple calls, hinting at when to use the 'prompt' parameter over 'contents'. However, it provides no guidance on when to use this tool over sibling tools (e.g., create_anthropic_message, create_chat_completion) or when not to use it. The requirement of TOKENLAB_API_KEY is a prerequisite but not usage guidance.

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