Skip to main content
Glama

Prepare an order for the person to pay

prepare_order

Prepares a custom melody or strip design order with all its details and returns a link to the Musicboxmelodies cart, where the person reviews it, adds photos if needed, applies discount codes and pays with PayPal. Nothing is charged here. The link works for 7 days. Confirm the song, the variation and the price with the person before calling it. The price is calculated by the site.

Input Schema

NameRequiredDescriptionDefault
timeYesPart of the song to convert, e.g. "0:00 - 1:30" or "whole song".
themeNoStrip designs only.
productYes"custom_melody" (a song arranged in music box style, delivered as audio) or "custom_strip_design" (printable strips for a 15 or 30-note hand-crank box).
song_nameYes
note_countNoStrip designs only: notes of the person's music box.
song_artistYes
variation_idYesFrom get_product_options.
existing_tuneNoStrip designs only: the song is already on our YouTube channel (25% off).
reference_linkNoYouTube or other link to the version the person wants.

Output Schema

NameRequiredDescriptionDefault
summaryYes
cart_urlYes
price_usdYes
expires_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-read-only, non-idempotent, open-world write), the description adds critical non-obvious behavior: 'Nothing is charged here,' the link expires in 7 days, the price is computed by the site, and the customer completes checkout in the cart. These directly inform how the agent should present the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and no-charge fact are front-loaded in the first two sentences, followed by expiry, the confirmation precondition, and pricing. It is dense but every sentence carries information, with only the cart-mechanics clause ('adds photos... pays with PayPal') bordering on detail that could be trimmed.

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?

With an output schema present, return formatting does not need explanation, and the description covers purpose, safety ('nothing is charged'), lifetime, and preconditions. The 9-parameter surface is largely handled by the schema, so nothing essential to correct invocation appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 78%, so the schema already documents most parameters (product, theme, note_count, variation_id, etc.). The description only references 'the song, the variation and the price' and adds no syntax or format detail beyond what the schema provides, so it stays at the high-coverage baseline.

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 states a precise verb+resource ('Prepares a custom melody or strip design order') and its key side effect (returns a cart link for review and PayPal payment). It clearly distinguishes this order-preparation tool from siblings like create_song, get_order_status, or render_audio.

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

Usage Guidelines4/5

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

It gives an explicit precondition: 'Confirm the song, the variation and the price with the person before calling it.' This tells the agent when the call is appropriate, though it never names alternative tools or states when *not* to use it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources