Skip to main content
Glama

Publish skill

stack_publish_skill

Publish a skill to the STACK marketplace, where other operators can find it. Three execution modes:

  • open (default): the publisher agent named by agent_id processes invocations through stack_list_pending_invocations and stack_complete_invocation.

  • sealed: STACK runs the provided execution_steps or script in an isolated container. No agent is involved.

  • source: the code is shared with the invoker, who runs it locally. No agent is involved.

Skills never receive credentials. credential_mode may only be "none".

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>",
      "description": "<description>",
      "version": "<version>",
      "input_schema": "<input_schema>",
      "output_schema": "<output_schema>",
      "trust_level_required": "<trust_level_required>"
    },
    "name": "stack_publish_skill"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSkill name in slug format
tagsNoTags for discovery
versionYesSemver version
agent_idNoAgent that handles invocations. Required for open mode. Not used for sealed/source.
descriptionYesWhat this skill does
dependenciesNoDependencies to install (e.g. "axios lodash" for JS, "requests pandas" for Python)
input_schemaYesJSON Schema for input. { "type": "object", "properties": {} } accepts any object.
output_schemaYesJSON Schema for output. { "type": "object", "properties": {} } accepts any object.
execution_modeNoopen (requires agent_id), sealed (STACK runs code), source (code shared with invoker)
credential_modeNoOnly none is supported. Skill code never receives credentials.
execution_stepsNoMulti-step execution pipeline. LLM settings go in nested llm_config; legacy flat fields are normalized into it.
execution_scriptNoScript source code for sealed single-step skills
execution_runtimeNoScript runtime for sealed skills
required_credentialsNoMust be empty. Skill code never receives credentials.
trust_level_requiredYesL0=any, L1=verified human, L2=verified identity

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses the key behavioral facts: publication makes the skill publicly discoverable to other operators, sealed mode executes inside an isolated container, source mode hands code to the invoker, and no skill ever receives credentials. It omits failure behavior, name/version collision handling, and whether a published skill can be updated or withdrawn.

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?

The purpose is front-loaded in one sentence, then modes are laid out as scannable bullets with the default called out. There is mild duplication of schema facts (agent_id requirement, credential_mode restriction), but each line aids mode selection.

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 15-parameter mutation with nested execution_steps and no output schema, the description covers the mode-selection logic well but says nothing about what a successful publish returns (skill ID/handle) or how validation errors surface. An agent must infer the outcome and error contract from the schema alone.

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 would be 3, but the description adds cross-parameter meaning the schema cannot express: agent_id applies only to open mode, execution_steps/script apply to sealed mode, and credential_mode is constrained to 'none' because skills never see credentials. Dependencies, trust_level_required, and the execution_steps step types get no extra explanation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Publish a skill to the STACK marketplace') and enumerates the three execution modes, so the action is unambiguous. It does not differentiate itself from similarly named publish siblings such as stack_publish_network_revocation, so it stops short of a 5.

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 gives clear mode-selection guidance: open is the default and requires the publisher agent to service calls through stack_list_pending_invocations/stack_complete_invocation, while sealed and source involve no agent. It does not state when to prefer publishing over other lifecycle operations, but the internal decision context is explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.