Skip to main content
Glama

hub_publish

Publishes a project component to MOGA Hub by packing its version, name, and previews, then listing it for import under the signed-in account; requires sign-in or MOGA_HUB_TOKEN.

Instructions

Publish a project component to MOGA Hub: packs it (pack_component: version, name, title, description, license, with light and dark previews) and sends it; it is listed at once for anyone to import, under the name of whoever signed in. A name belongs to whoever published it first; a version once published never changes: publish a new version instead. Needs an account (hub_sign_in), or MOGA_HUB_TOKEN.

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": {
      "tag": "<tag>",
      "version": "<version>"
    },
    "name": "hub_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagYes
nameNoe.g. @acme/price-ticker (default the tag)
titleNo
licenseNoMIT
previewNo
versionYes
descriptionNo

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?

Adds substantive behavior beyond the annotations: public immediate visibility to anyone, namespace ownership by first publisher, and version immutability. These align with idempotentHint=false and openWorldHint=true rather than contradicting them. However, it does not state whether a failed publish leaves partial state, or what happens if the name is already taken by the caller.

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 action and effect, then appends the essential constraints (ownership, immutability, auth) in a compact chain. The colon-and-parenthesis nesting makes it dense, but nearly every clause carries load-bearing information.

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 side effects, auth, and immutability well. It leaves gaps on the required 'tag' parameter, the semantics of the preview flag, and whether the return tells the caller the resulting name or URL, which matters since publishing is irreversible per version.

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 description coverage is only 14%, but the description does mention most fields - the packed version, name, title, description, license, and previews - which partially compensates. It never explains what 'tag' means (the required identifier the name defaults from) or what toggling preview to false actually does, so meaning is added for some params and missing for the two most consequential ones.

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 ('Publish a project component to MOGA Hub') and immediately explains the mechanism (it packs via pack_component and sends), plus the visible effect (listed at once for anyone to import). This clearly separates it from pack_component (the packing half) and hub_import (the receiving half).

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 the precondition for use (an account via hub_sign_in, or MOGA_HUB_TOKEN) and the key routing rule for repeat operations: 'a version once published never changes: publish a new version instead.' It does not explicitly contrast with hub_import or hub_yank by name, so the agent must infer the publish-vs-consume split.

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