Skip to main content
Glama

Save a skill

save_skill
Idempotent

Creates or updates one of the workspace's own skills in the Agent Skills format. Send every file of the skill: SKILL.md (YAML frontmatter with name — lowercase-hyphenated, not an official skill's name — and description: what it does and when to use it; optional license, metadata.version, metadata.shortdrama-category) plus any supporting files. Each save that changes something is a new version (metadata.version if newer, else a patch bump); saving identical files changes nothing. Pass expected_version (the version you loaded) to avoid overwriting a newer save. Use it to keep the user's house style, e.g. "Save this drama's dialogue rules as a skill". Show the user the SKILL.md before saving.

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

Input Schema

NameRequiredDescriptionDefault
filesYesThe skill's files: SKILL.md first (with name and description front matter), then any references or assets.
changelogNoWhat changed in this version
expected_versionNoThe version you last read; the write is refused with VERSION_CONFLICT if it changed since.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: version creation rules (metadata.version if newer, else patch bump), the fact that identical saves change nothing (reinforcing idempotentHint), and conflict handling via expected_version with VERSION_CONFLICT refusal. None of that is derivable from readOnlyHint/idempotentHint/destructiveHint alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose leads, then format requirements, then version semantics, then usage example and workflow note — a logical front-loaded ordering. The parentheticals are dense but every clause carries operational information; nothing is redundant with the schema or title.

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?

With annotations, an output schema, and full parameter coverage already supplied, the description covers the remaining risk areas (versioning, conflicts, pre-save user review). Minor gap: it does not state whether omitting a previously saved file removes it from the skill, which matters for a full-replacement save.

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 real meaning: it specifies the required SKILL.md frontmatter keys (name rules, description, optional license, metadata.version, metadata.shortdrama-category) and the intended use of expected_version. It stops short of clarifying how files omitted from a later save are treated.

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 ('Creates or updates one of the workspace's own skills') and pins the format ('Agent Skills format'), which separates it from siblings like import_skill or save_custom_preset. The constraint that the name must not be an official skill's name sharpens the scope further.

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 a concrete use case ('keep the user's house style', with an example) and a workflow rule ('Show the user the SKILL.md before saving'). It never names an explicit alternative or exclusion condition, so it is clear context rather than full when/when-not routing.

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.