Skip to main content
Glama

aistudio_generate_music

Generate custom music tracks in Google AI Studio from a text prompt specifying genre, mood, BPM, instruments, and structure; optionally save to a chosen audio path.

Instructions

Generate a music track in Google AI Studio (Lyria / Media Studio).

Args: prompt: Genre, mood, BPM, instruments, and structure description. output_path: Optional output audio file path. use_browser: True (default) uses AI Studio Media in Chrome.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "aistudio_generate_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
output_pathNo
use_browserNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does reveal the execution mechanism ('uses AI Studio Media in Chrome') and that use_browser defaults to true, which is useful, but it says nothing about authentication requirements, whether the call blocks or returns a job handle, duration/rate limits, or the consequences of a failed browser session.

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?

One purpose sentence followed by a compact Args block; every line carries information and the purpose is front-loaded. No filler or redundant restatement of the tool name.

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?

An output schema exists, so return-value explanation is not required, and the three parameters are covered. However, for a browser-automation generation tool with no annotations, the omission of auth prerequisites and sync-vs-async/polling behavior leaves material gaps for correct invocation.

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 description coverage is 0%, and the description compensates by explaining all three parameters: it details what belongs in 'prompt' (genre, mood, BPM, instruments, structure), marks 'output_path' as optional, and states the default and effect of 'use_browser'. The main gap is that it never explains what use_browser=false does instead of driving Chrome.

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 opens with a specific verb and resource ('Generate a music track') plus the platform ('Google AI Studio (Lyria / Media Studio)'), which clearly separates it from image/video/tts siblings by resource type. It stops short of explicitly naming a sibling or stating the boundary, so it is clear but not maximally differentiating.

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 when-to-use guidance: nothing says when to pick this over aistudio_generate_video or aistudio_tts, nor what prerequisites exist. The presence of aistudio_browser_login and aistudio_check_job among siblings implies an auth and job-polling flow that the description never mentions, leaving the agent to infer the operating context.

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