Skip to main content
Glama

import_package

Imports a packed component (.mogapkg) from a file, URL, or base64 data into the project, verifies every hash, copies it under components//, and records it in moga.json.

Instructions

Import a component package (a .mogapkg from pack_component) into this project, from a file (path), a web address (url, https) or its bytes (data, base64). It is checked whole first (every file's hash and the package hash), copied into components// (as: another tag) and recorded in moga.json packages { name, version, hash }: the copy is the project's own, renders never read the package again, and nothing changes when the package is updated or taken down. The same content already here is left as it is (already); another version of the same package replaces one not changed here (replaced); a component changed here, or another one under that tag, needs as or replace. Use it like any project component afterwards (list_components, preview_component).

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": "import_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNoImport under this tag instead of the one it was packed as
urlNohttps://…/<name>-<version>.mogapkg
dataNoThe file, base64
pathNoA .mogapkg file
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
messageNoOne line saying why, kept with the change in the history
replaceNoOverwrite what is under the tag, changes made here included
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behaviour beyond the annotations: the package is verified whole (every file hash plus package hash) before any write, files land in components/<tag>/, an entry is recorded in moga.json packages { name, version, hash }, and the copy is project-owned so renders never re-read the package and later upstream updates or takedowns have no effect. It also spells out the three outcome states and the exact conflict condition requiring 'as' or 'replace', which an agent cannot infer from readOnlyHint/openWorldHint alone.

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 verb-resource-source triad in the first clause and keeps every later sentence load-bearing (verification, destination, conflict handling, reuse). It is a dense run-on with semicolon-chained clauses, so it rewards careful reading more than it rewards skimming.

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 9-parameter mutation with no output schema, the description covers verification, destination, registry recording and conflict resolution — everything an agent needs to choose arguments. It does not describe what the call returns on success or failure, leaving the agent to infer the result shape from the three outcome labels.

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 genuine meaning about the interplay of 'as' and 'replace' (renaming under a different tag, overwriting a local-modified tag) that the schema text does not connect. The remaining parameters (basis, message, feedback, confidence) are covered by the schema and left untouched here, which is reasonable.

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 specific verb and resource with its exact artifact type and origin: 'Import a component package (a .mogapkg from pack_component) into this project', then enumerates the three accepted sources (path, url, data). Naming pack_component makes the producer/consumer pairing explicit, so an agent can tell this apart from generic import tools.

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?

Gives clear context for when to use it (bringing a packed package in) and when it will refuse or need an argument: 'The same content already here is left as it is (already); another version ... replaces one not changed here (replaced); a component changed here ... needs as or replace.' It also points to follow-on tools (list_components, preview_component). It stops short of explicitly excluding near-neighbours such as hub_import or import_file, which is why this is a 4 rather than a 5.

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