Skip to main content
Glama

hub_import

Imports a package by name or version from MOGA Hub, verifies the download, copies it into components// (rename or replace as needed), and pins its hash in moga.json.

Instructions

Import a package from MOGA Hub: (its newest version) or @. It is downloaded, checked whole and copied into components// like import_package (as: another tag; replace: overwrite changes made here), pinned by its hash in moga.json packages. The copy is the project's own from then on.

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": {
      "name": "<name>"
    },
    "name": "hub_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNo
nameYes<name> or <name>@<version>
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
replaceNo
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.0
Behavior4/5

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

Annotations only say write, open-world, non-idempotent, non-destructive; the description adds real behavior beyond them: the package is downloaded and integrity-checked, copied to components/<tag>/, pinned by hash in moga.json, and 'replace' overwrites local edits. It does not state what happens on a tag conflict when replace is false, nor any sign-in/authentication requirement despite the openWorldHint.

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?

Three sentences, front-loaded with the action and version forms, then the mechanics, then the ownership consequence; there is little filler. Minor friction from dense phrasing such as 'checked whole' and the parenthetical as/replace clause, which reads like a compressed note.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutating tool with no output schema, the description covers download, verification, install location, hash pinning and replace semantics well. It omits what the call returns, how a tag collision is handled without replace, and whether Hub authentication is required — gaps the annotations and schema do not fill.

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 coverage is 71%, so the baseline is 3. The description does give meaning to the two undocumented parameters ('as: another tag', 'replace: overwrite changes made here'), but it repeats the name format verbatim from the schema and says nothing about basis, message, feedback or confidence, leaving those entirely to the schema text.

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 source ('Import a package from MOGA Hub') and pins down version resolution ('<name>' newest vs '<name>@<version>'). It also distinguishes itself from the sibling import_package by source and by the added Hub behaviors (hash pinning in moga.json, copy becomes project-owned).

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 context for use is clear: importing a Hub-published package rather than a local one, with 'as' and 'replace' framed as the two decisions the caller makes. There is no explicit exclusion or routing advice (e.g. using hub_search or hub_info first to resolve a name/version), so it stops short of full when/when-not guidance.

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