Reference
Errors and limits
HTTP and tool errors returned by the MemoTune MCP server, how to retry safely, and every input and account limit.
Errors reach your client in two ways. Connection problems, such as a missing key, come back as HTTP errors before any tool runs. Problems inside a tool come back as a tool result with isError: true and a plain-English message that the assistant can read and act on.
Connection errors
| HTTP status | Meaning | Fix |
|---|---|---|
401 | The API key is missing, mistyped or deleted, or the account is suspended. | Check the Authorization: Bearer mt_… header, or create a new key in Settings → API Keys. |
403 | The request came from a browser origin that isn't allowed. | Call the server from an MCP client, not from a web page. |
405 | The request used a method other than POST. | The server is stateless and only accepts POST; turn off SSE or GET streams in the client. |
413 | The request body is larger than 64 KB. | Shorten the input. Lyrics are limited to 5,000 characters. |
415 | The request wasn't sent as JSON. | Send Content-Type: application/json. |
5xx | MemoTune had a temporary problem. | Retry after a short wait. |
Tool errors
| Message contains | Cause | What to do |
|---|---|---|
| Not enough credits | The balance doesn't cover a song. | Check get_account, then top up on Pricing. |
| You can have up to 10 music creation tasks in progress | Too many generations are still running. | Wait for some to finish, then try again. |
| prompt is for description mode and must be used alone | prompt was combined with other modes. | Send prompt alone, or switch to the fields of another mode. |
| Use either coverSongId or coverAudioUrl / Use either imageUrl … or a cover source | Two sources were sent. | Keep one source. |
| Image mode picks the style, title, voice and model | style, title, vocalGender or model was sent with imageUrl. | Remove those fields. |
| language is only used in image mode | language was sent without imageUrl. | Write the prompt or lyrics in the language you want instead. |
| style is required / title is required | Custom or cover mode is missing a field. | Add the missing field. |
| Provide lyrics, or set instrumental: true | Custom or cover mode without lyrics. | Add lyrics or make it an instrumental. |
| Instrumental songs cannot have lyrics | instrumental: true was sent with lyrics. | Remove one of them. |
| Song not found or not ready | coverSongId isn't one of your finished songs. | Use an id from get_songs, or send coverAudioUrl. |
| Could not download the image / The link is not a JPEG, PNG or WebP image | imageUrl isn't a public direct link to a supported image up to 10 MB. | Use a direct https:// link to the image file. No credits were charged. |
| Failed to process audio file | coverAudioUrl couldn't be downloaded. | Check that the link is public and points to the audio file. No credits were charged. |
| cannot point to a file stored on MemoTune | imageUrl or coverAudioUrl links to a file on asset.memotune.com. | For your own song, pass its id as coverSongId. For a photo, use a link to the original image. No credits were charged. |
| Submission key does not match this request / This requestId was already used for a different request | A requestId was reused with different input. | Use a new requestId for a different song. |
| Generation not found | The id is wrong or belongs to another account. | Use the id returned by create_song, or list songs without an id. |
| Creation workflow is temporarily unavailable | MemoTune couldn't start the job. | Retry with the same requestId. |
When a generation fails after it started, get_songs returns status: "failed" with an error message, and the credits are refunded automatically.
Retrying safely
- Read-only tools (
get_songs,get_account) can be retried at any time. - For
create_song, send arequestIdand reuse it, with the same input, when you retry. MemoTune returns the original generation instead of charging again. See Safe retries. - While a song is processing, poll
get_songsevery 30–60 seconds rather than callingcreate_songagain.
Limits
| Limit | Value |
|---|---|
| API keys per account | 10 |
| Generations in progress per account | 10 |
Description (prompt) | 800 characters |
Photo (imageUrl) | JPEG, PNG or WebP, up to 10 MB |
| Lyrics | 5,000 characters |
| Style | 800 characters |
| Title | 80 characters |
Songs per get_songs call | 20 |
