Skip to main content
Glama

generate_audio

Convert text to speech using Google Cloud TTS API to create audio files for Anki flashcards, returning base64 encoded audio data.

Instructions

Generate audio file from text using Google Cloud Chirp TTS API and return base64 encoded audio data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to convert to speech
languageNoLanguage code (e.g., 'cmn-cn' for Chinese, 'en-US' for English)cmn-cn
voiceNoVoice name (e.g., 'cmn-CN-Chirp3-HD-Achernar' for Chinese HD voice)cmn-CN-Chirp3-HD-Achernar
Behavior2/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 mentions the API used and output format, but lacks critical details such as rate limits, authentication requirements, error handling, or whether this is a read-only or mutating operation. For a tool that likely involves external API calls, this is a significant gap.

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 a single, efficient sentence that front-loads the core functionality ('generate audio file from text') and includes essential details (API and output format) without unnecessary elaboration. Every word earns its place.

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 complexity of a TTS tool with external API integration, no annotations, and no output schema, the description is insufficient. It doesn't cover behavioral aspects like performance, limitations, or error cases, and the lack of output schema means the return value format (base64) is mentioned but not fully specified (e.g., encoding details).

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 schema already documents all three parameters thoroughly. The description doesn't add any meaningful parameter semantics beyond what's in the schema (e.g., it doesn't explain default value implications or provide examples beyond the schema's descriptions). Baseline 3 is appropriate when the schema does the heavy lifting.

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 verb ('generate') and resource ('audio file from text'), specifying the technology used ('Google Cloud Chirp TTS API') and the output format ('base64 encoded audio data'). However, it doesn't explicitly differentiate from sibling tools like 'generate_and_save_audio', which appears to be a related but distinct operation.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention the sibling tool 'generate_and_save_audio', which seems to serve a similar purpose but with different behavior (saving vs. returning base64 data). No context or exclusions 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/amidvidy/anki-mcp'

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