Skip to main content
Glama

write_skill_file

Create or replace an additional file in an existing skill by providing the skill slug, relative path, and content.

Instructions

Create or replace one extra file of an existing skill by its relative path.

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>",
      "path": "<path>",
      "content": "<content>"
    },
    "name": "write_skill_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
slugYes
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.6

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses that the operation can overwrite ('replace') and that the target skill must already exist, but it omits permissions, failure behavior, path-safety constraints, size limits, and return behavior.

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?

The definition is a single front-loaded sentence with no redundant wording. Every phrase contributes to scope, action, or prerequisite.

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 simple three-parameter mutation tool, the description covers purpose, overwrite behavior, and the existing-skill prerequisite. Given no annotations and no output schema, it remains thin on safety, path rules, failure modes, and response expectations.

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 needs to compensate. It clarifies that 'path' is relative and that 'slug' identifies an existing skill, but it adds no meaning for 'content' and does not explain the slug pattern or content size limit beyond what the raw schema shows.

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 gives a specific verb ('Create or replace') and resource ('one extra file of an existing skill') with path scope. It implicitly distinguishes this from whole-skill writing and from reading skill files, though it does not explicitly name a sibling alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'of an existing skill' implies the prerequisite that the skill must already exist, and 'extra file' implies use for ancillary files rather than the skill itself. However, it gives no explicit when-to-use guidance versus alternatives such as write_skill, and no exclusions or edge-case routing.

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