Skip to main content
Glama

ai_assist

Analyze your current pattern or audio to receive creative critique, suggest complementary patterns, or generate and merge new layers like drums, bass, or melody for instant playback.

Instructions

Gemini-backed pattern assistance. task=feedback returns creative critique on the current pattern (optionally with audio analysis). task=suggest analyzes the currently playing audio and suggests a complementary Strudel pattern as text (not auto-executed). task=jam generates a fresh layer (drums/bass/melody/pad/texture) and merges it into the current pattern, then auto-plays. All three share Gemini auth + rate limiting. Example: ai_assist({ task: "jam", layer: "bass" }). Requires GEMINI_API_KEY env var. For non-AI pattern generation use generate_part; for full compositions use compose.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesWhich AI task
includeAudioNotask=feedback: include audio analysis (default false)
styleNotask=feedback/suggest: style hint
roleNotask=suggest: role the suggested pattern fills (default complement)
layerNotask=jam: layer type to generate
style_hintNotask=jam: style guidance
auto_playNotask=jam: start playback after merge (default true)
session_idNoOptional session ID (#108). Omit to use default session.
Behavior4/5

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

The description discloses auth requirements, rate limiting, task-specific behaviors (e.g., jam merges and auto-plays, suggest returns text), and the optional audio analysis for feedback. However, it does not detail error handling or side effects of invalid inputs.

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 concise (7 sentences), front-loaded with the overall purpose, and structured clearly by task. No redundant information.

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

Completeness5/5

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

Given the complexity of the tool (8 parameters, 3 tasks), the description covers all tasks, authentication, sibling alternatives, and provides a usage example. It adequately compensates for the lack of output schema by describing return behaviors.

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?

Input schema has 100% coverage, so baseline is 3. The description adds meaning by explaining how parameters relate to each task (e.g., includeAudio for feedback, layer for jam) and provides context beyond the schema.

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?

The description clearly states the tool is a Gemini-backed pattern assistant with three distinct tasks (feedback, suggest, jam). It differentiates from siblings by recommending generate_part for non-AI generation and compose for full compositions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is provided: when to use each task, prerequisites (GEMINI_API_KEY), and alternatives (generate_part, compose). An example invocation is given.

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/williamzujkowski/live-coding-music-mcp'

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