Skip to main content
Glama

Сгенерировать музыку или аудио (Lyria и др.)

generate_music

Generate music from a text prompt with Lyria models, choosing clip or full track, and save the audio to disk; specify genre, mood, tempo, instruments, vocals, duration, and optional reference image.

Instructions

Генерирует музыку моделями с аудиовыходом (google/lyria-3-clip-preview — клип ~30 с, google/lyria-3-pro-preview — полноценный трек) через Infergate POST /chat/completions и сохраняет аудиофайл на диск. Промпт: жанр, настроение, темп, инструменты, вокал или инструментал, длительность. Можно приложить картинку как референс настроения. Платный вызов, цены — в каталоге infergate.ru/models.

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": "generate_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
extraNoДополнительные поля запроса /chat/completions, передаются как есть
modelNoПо умолчанию google/lyria-3-clip-preview
promptYesОписание музыки: жанр, настроение, темп (BPM), инструменты, вокал/инструментал, для чего трек
streamNoПотоковый режим (SSE). По умолчанию true — Infergate отдаёт аудио только так
output_dirNo
filename_prefixNo
reference_imageNoКартинка-референс: локальный путь, URL или data: URI

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description still discloses the important behaviors: it performs a real network call to Infergate, it writes an audio file to disk, and it is a paid call with a pricing reference. Not covered: default destination behavior when output_dir is omitted, overwrite behavior, or failure modes — the gaps keep it short of a 5.

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?

Three front-loaded sentences: what it does and with which models, how to shape the prompt, then the cost caveat. No filler, and the pricing link sits last where a low-priority note belongs.

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?

No output schema and no annotations, so the description has to carry the load, and it does cover the core: generation mode, model choice, output persistence, and cost. It stops short of explaining what the tool returns (e.g., the saved file path) or streaming implications, which leaves a reader guessing about the immediate result.

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 71%, so the schema already documents most parameters. The description adds meaning beyond it by explaining the tradeoff between the two model values (~30s clip vs full track) and by reframing reference_image as a mood reference, which is more actionable than the schema's bare 'reference image' text.

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?

Names a concrete verb and resource (music generation), identifies the two specific models with their differentiating traits (clip ~30s vs full track), and states the backend path (Infergate POST /chat/completions) plus the side effect (saving an audio file to disk). This is enough to separate it from generate_speech and generate_video siblings purely on the resource produced.

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 prompt guidance (genre, mood, tempo, instruments, vocals/instrumental, duration) and the note that an image can be attached as a mood reference implicitly steer usage, and naming the paid nature hints at a cost tradeoff. However there is no explicit when-to-use / when-not statement and no mention of alternative tools such as generate_speech for narration audio.

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