Skip to main content
Glama

Publish skill

skill_publish

Publish a new version of a skill as a change set: files add or replace paths ({ path, text } for text, { path, base64 } for binary), removals drop paths, and every other file of the current version carries over. SKILL.md needs YAML frontmatter with name (equal to name) and description. Pass expectedVersion: 0 to create a new skill (CONFLICT if the name is taken), or the version you read to update it without overwriting someone else's change. With team, the skill belongs to that team; without, to the account's operator.

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>",
      "files": "<files>"
    },
    "name": "skill_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNoOptional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters.
nameYesThe skill name: lowercase letters, digits and single hyphens, as SKILL.md's frontmatter names it.
teamNoThe team (slug or id) whose skill it is. Without it, a name means one of your personal skills.
filesYesFiles added or replaced: { path, text } for text, { path, base64 } for binary; at most 512.
removalsNoPaths of the current version to drop; at most 512.
expectedVersionNoThe version you read (0: the skill must not exist yet); a publish since then is CONFLICT.

Output Schema

NameRequiredDescriptionDefault
skillYes
createdYes
versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on what the person is trying to accomplish. At most 300 characters."New value: +"Optional, accepted and not recorded: this write keeps no workspace history. If you send one, one sentence on the goal this change serves. At most 300 characters."
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive write, and the description adds real context beyond them: files not listed carry over from the current version, SKILL.md frontmatter must include name and description, and a concurrent publish produces CONFLICT. However it does not say what the response contains, whether prior versions remain retrievable after removals, or what authorization the team scope requires, which matters for a non-idempotent write.

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?

It is a single dense paragraph with the core operation front-loaded and no filler sentences; every clause conveys publish semantics, versioning, or ownership. It is on the long side and would read better split into operation, versioning, and scoping lines, but nothing is redundant.

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

Completeness5/5

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

For a 6-parameter write tool with a full schema and an output schema, the description covers the operation model, create-vs-update versioning, conflict behavior, required frontmatter, and team scoping. Return values need not be described because an output schema exists, so nothing an agent needs to call it correctly is missing.

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 semantics the schema only hints at: that files are an add-or-replace overlay rather than a full listing, that unlisted files persist, that expectedVersion is an optimistic-concurrency token whose mismatch is a CONFLICT, and that team controls ownership. That is meaningful meaning beyond the field descriptions.

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 description opens with a specific verb and resource plus the mechanism: 'Publish a new version of a skill as a change set.' The change-set framing (adds/replaces, removals, carry-over) separates it from a plain artifact upload or a read tool like skill_get, so an agent can identify it without opening the schema.

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 concrete decision rules: expectedVersion 0 creates a new skill and returns CONFLICT if the name is taken, otherwise pass the version you read to update safely, and team scopes ownership to a team versus the operator. It stops short of naming an alternative tool or stating when not to publish, so it is clear context rather than full routing guidance.

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.