Skip to main content
Glama

pack

Package a directory of Mockzilla services into a .mockz archive to share or distribute mock setups. The manifest embeds service metadata and git info, enabling others to serve it locally or from a URL.

Instructions

Pack a directory of mockzilla services into a .mockz archive for easier distribution or sharing. The archive carries a manifest (name, description, mounts, modes, git source) so the runtime can register every service without re-walking the tree. Hand the resulting .mockz to anyone — they can serve it with serve_locally, even from a URL. Use this when the user wants to share a working mock setup, snapshot one for a teammate, or publish it.

Defaults: output is <basename>.mockz next to dir. Git metadata (remote, ref, commit) is auto-embedded when dir is inside a git tree — pass skip_git: true to suppress.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirYesDirectory containing services / specs to pack.
nameNoDisplay name embedded in the archive manifest.
outputNoOutput .mockz path. Defaults to <basename>.mockz next to dir.
skip_gitNoDon't auto-embed git remote/ref/commit in the manifest.
descriptionNoFree-text description embedded in the manifest.
min_versionNoMinimum mockzilla version required to load this archive (e.g. '2.5.3'). Useful when the archive relies on newer features.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.20

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It does well: it reveals the manifest contents, the default output location, and the auto-embedding of git metadata with a suppression flag. It doesn't discuss overwrite behavior or what is returned, leaving minor gaps, but the core side effects and defaults are transparent.

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

Conciseness5/5

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

The description is compact and front-loaded: first the action/result, then when to use it, then defaults and edge behavior. Every sentence adds information, with no filler or repetition of structured schema fields.

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 6-parameter tool with no output schema and no annotations, the description covers the key call decisions: required dir, output default, git embedding, and intended usage. It doesn't explicitly state the return value or overwrite policy, but the archive-creation behavior and consumer workflow are sufficiently described.

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. The description adds meaning by explaining the conditional git-metadata behavior (embedded only when dir is inside a git tree) and how skip_git suppresses it, which goes slightly beyond the bare schema. Other parameter defaults are also reiterated and reinforced in context.

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 opening sentence names the action (pack), the input (directory of mockzilla services), and the concrete output (.mockz archive). It unambiguously differentiates this from sibling deploy/search tools by establishing that pack produces a distributable bundle rather than starting or serving anything.

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?

The description explicitly states when to reach for this tool: sharing a mock setup, snapshotting for a teammate, or publishing. It also explains how the result can be consumed via serve_locally. It does not list alternatives or when-not-to-use conditions, but the when-to-use context plus the consumer note is clear.

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