Skip to main content
Glama

write_skill

Create or update a reusable skill by slug when a user asks to save a procedure or workflow; provide full SKILL.md instructions in body.

Instructions

Create or update a skill by slug. Call it when the user asks to save a reusable procedure or workflow. body is the full SKILL.md instructions; extra files go through write_skill_file.

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": {
      "slug": "<slug>",
      "body": "<body>"
    },
    "name": "write_skill"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
nameNo
slugYes
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.6

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose upsert semantics ('create or update by slug') plus where extra files belong. It does not say what happens to an existing skill's content when the slug already exists (full overwrite vs. merge), nor whether any permissions or confirmation are required before mutating.

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?

Three short sentences, front-loaded with the action and identity key, then the trigger, then the payload/routing note. Nothing is redundant or padded.

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 mutating upsert tool with no annotations, no output schema, and 0% schema description coverage, the description covers the core call path but leaves gaps: the overwrite consequence, the meaning of name/description, and what is returned on success are all unaddressed.

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 0%, so the description must compensate: it does explain that slug is the identity key and that body holds the complete SKILL.md text. The name and description parameters receive no meaning at all from the description or the schema, leaving half the parameters undocumented.

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 gives a specific verb pair and resource ('Create or update a skill by slug') and immediately scopes the payload ('body is the full SKILL.md instructions'). It also distinguishes itself from the sibling write_skill_file by routing extra files there, so an agent can pick between the two without opening either 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 states an explicit trigger: call it when the user asks to save a reusable procedure or workflow, and it names the alternative for file attachments. It stops short of saying when NOT to use it — notably no guidance on skill vs. the sibling write_memory for durable knowledge.

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