Skip to main content
Glama

generate_text

Generate AI text responses using language models, analyze images with vision capabilities, and process file content for contextual understanding.

Instructions

Generate text using AI language models. Supports file attachments (fileContext for extracted text) and image analysis (imageBase64 for vision, Best/K2.5 model only). Requires a valid paid payment ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paymentIdYesValid payment ID (must be paid)
promptYesThe text prompt or question
modelIdYesThe AI model database ID
systemPromptNoOptional system prompt
maxTokensNoMaximum tokens in response
fileContextNoExtracted text from a file (PDF, DOCX, code, etc.) to include as context
fileNameNoName of the attached file
imageBase64NoBase64 data URI of an image for vision analysis (Best/K2.5 model only)
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds useful context beyond the input schema, such as the payment requirement, file attachment support, and image analysis limitations (e.g., 'Best/K2.5 model only'). However, it doesn't cover other behavioral traits like rate limits, error handling, or response format, leaving gaps for a tool with 8 parameters and no output schema.

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 appropriately sized and front-loaded, starting with the core purpose and then listing key features and requirements. Each sentence adds value, such as specifying capabilities and constraints, with no redundant information. However, it could be slightly more structured by separating usage notes from requirements.

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?

Given the tool's complexity (8 parameters, no output schema, and no annotations), the description is moderately complete. It covers the purpose, key capabilities, and a critical requirement (payment), but lacks details on behavioral aspects like response format, error cases, or performance characteristics. This leaves gaps for an AI agent to fully understand tool behavior without trial and error.

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 100%, so the input schema already documents all parameters thoroughly. The description adds minimal value beyond the schema by mentioning file attachments and image analysis in general terms, but it doesn't provide additional semantic details or clarify parameter interactions (e.g., how 'fileContext' and 'imageBase64' relate to 'modelId'). Baseline 3 is appropriate given high schema coverage.

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's purpose: 'Generate text using AI language models.' It specifies the core action (generate text) and resource (AI language models), which is more specific than just restating the name. However, it doesn't explicitly differentiate from sibling tools like 'generate_3d_model' or 'generate_image' beyond mentioning text generation.

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 provides some implied usage context by mentioning requirements ('Requires a valid paid payment ID') and capabilities ('Supports file attachments... and image analysis...'), but it doesn't explicitly state when to use this tool versus alternatives like 'analyze_image' for vision tasks or 'list_models' for model selection. No clear exclusions or named alternatives are provided.

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/cnghockey/sats4ai'

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