Skip to main content
Glama

export_item

Idempotent

Packages a composition, asset, or taste into a portable .moga bundle with its layers, media, translations, tokens, and motion presets; reports missing media.

Instructions

Write a composition or an asset to /.moga, a folder anyone can send to another person or computer and import with import_item { bundle }: with the assets its layers use, the media files they point at, the translations of its strings (locales/), the project tokens it names that MOGA does not define (tokens.json) and the motion presets its taste defines. Returns what went in; missing lists media it points at that are not on disk. kind taste writes the project's taste instead (TASTE.md with its rules and their cases, the rule files in rules/*.md, and its own style package) to /.moga; on the CLI moga export-item taste <to> works too.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "kind": "<kind>"
    },
    "name": "export_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoThe folder to write the bundle in (required)
kindYes
nameNoThe composition or asset (for taste: the bundle's name, default taste)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this as a non-read-only, non-destructive, idempotent local write, and the description adds genuinely useful behavior: the full bundle payload, the return value ('Returns what went in'), and the partial-failure signal ('missing lists media it points at that are not on disk'). It does not address overwrite semantics for an existing bundle path, which is the key risk given idempotentHint=true.

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

Conciseness3/5

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

The primary action is front-loaded, but the body is a very long, clause-stacked run-on that is hard to parse and repeats the taste behavior. The trailing CLI note ('moga export-item taste <to>') is largely irrelevant overhead for an agent invoking the MCP tool.

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?

For a three-parameter write tool with no output schema, the definition covers destination, naming, the three modes, bundle contents, and the shape of the return value including the 'missing' failure list. The main omission is overwrite/conflict behavior on an existing bundle path, which matters given the idempotent annotation.

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?

With schema coverage at 67% and an undescribed enum, the description carries real weight: it explains that 'to' is the destination folder, that 'name' names the composition/asset and defaults to 'taste' for taste bundles, and it characterizes each of the three kind values. Only minor gaps remain, such as whether 'to' must already exist.

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 opens with a concrete verb and resource ('Write a composition or an asset to <to>/<name>.moga') and precisely enumerates what the produced bundle contains (assets, media, locales/, tokens.json, motion presets). It also carves out the distinct 'kind taste' behavior, so an agent can distinguish the three output modes 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 Guidelines4/5

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

It frames the tool's role by naming the inverse operation ('import with import_item'), which tells an agent when this bundle format is the right output, and it states the condition that selects the taste variant. It stops short of contrasting with sibling export_project/export_logs, so the routing guidance is good but not exhaustive.

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

Deploy Server

Other Tools