Skip to main content
Glama

AbletonMCP

by chaudepark
validation.py756 B
"""Data validation utilities for Ableton MCP Server.""" from typing import Any, Dict def validate_note_data(note_data: dict[str, Any]) -> bool: """Validate note data structure.""" required_fields = ["pitch", "start_time", "duration"] return all(field in note_data for field in required_fields) def validate_track_index(track_index: int, max_tracks: int) -> bool: """Validate track index is within bounds.""" return 0 <= track_index < max_tracks def validate_clip_index(clip_index: int, max_clips: int) -> bool: """Validate clip index is within bounds.""" return 0 <= clip_index < max_clips def validate_tempo(tempo: float) -> bool: """Validate tempo is within reasonable range.""" return 20.0 <= tempo <= 999.0

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/chaudepark/ableton-mcp'

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