Skip to main content
Glama

Save or list Mirak 2.0 ad projects

mirak_save_project
Destructive

Save a new Miracle Ads (Mirak 2.0) draft project to the owner's Metravane AI workspace or list existing saved drafts (free, 0 credits). When action is save (default), inserts a new version-1 draft row (requires title, min 2 chars) without overwriting or deleting existing projects; repeated save calls create separate draft rows (marked write/non-idempotent), returning ok, project (id, title, mode, format, industry, language, offer_url, attribution_id, state, version, updated_at), studio_url, and credits. When action is list, performs a read-only query of up to 25 newest drafts, returning ok, projects, studio_url, and credits. Use after mirak_plan_ad or mirak_repair_scene to persist drafts; use mirak_create_pack for multi-hook performance packs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mirak_save_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoMiracle Ads creation mode saved on the draft (default quick_ad): quick_ad, live_director, product_demo, premium_director, performance_pack, ad_remake, campaign_builder, or smart_repurpose.
briefNoCreative brief text stored in the project draft (up to 3000 characters).
titleNoProject title (required when action is save, 2 to 160 characters; ignored when action is list).
actionNoOperation mode: save (default) inserts a new draft project; list returns up to 25 newest saved drafts without writing.
formatNoAd format family ID (default direct_response; e.g. real_demo, direct_response, ugc, cinematic, saas, local_services, ecommerce, nonprofit).
industryNoBusiness industry tag (default small_business; e.g. saas, ecommerce, restaurant, local_services).
languageNoDraft language and Studio locale: en (default), ht (Haitian Creole), fr (French), or es (Spanish).
offer_urlNoOptional destination HTTPS URL associated with the ad project.
attribution_idNoOptional mirak_cid attribution identifier from mirak_plan_ad (minimum 3 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: states that saves never overwrite or delete existing projects, that repeated saves create separate rows, and discloses return keys (ok, project, studio_url, credits) plus the 25-draft listing cap. One tension remains: annotations declare destructiveHint=true while the description stresses 'without overwriting or deleting existing projects' — it labels the operation 'write/non-idempotent' but never explicitly reconciles why a destructive hint is set.

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?

Front-loads the two modes and their effects, then routing advice, with no filler sentences. The middle sentences are long and parenthetical-heavy (return-key lists, mode enumerations), which makes it dense but not wasteful.

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?

For a 9-parameter, dual-mode tool with no output schema, the description supplies what an agent needs: mode semantics, required fields per mode, mutation behavior, result keys, result-size cap, and cost. Nothing material to correct invocation is missing.

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 100%, so the baseline is 3, but the description adds conditional semantics the schema doesn't spell out — title is required only when action=save and ignored on list, and attribution_id is sourced 'from mirak_plan_ad' with a minimum length. Defaults for action, mode, format, industry and language are restated rather than newly explained, which keeps this from a 5.

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?

States a concrete verb+resource ('Save a new Miracle Ads (Mirak 2.0) draft project... or list existing saved drafts') and explicitly names both modes, including the default. An agent can distinguish save vs list behavior from the description alone, without opening the schema.

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?

Gives explicit sequencing ('Use after mirak_plan_ad or mirak_repair_scene to persist drafts') and an explicit alternative with its selection condition ('use mirak_create_pack for multi-hook performance packs'). It also flags the cost difference (free, 0 credits) and when the list mode applies (read-only, no writing).

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