Skip to main content
Glama

Update Skill File

updateSkillFile
DestructiveIdempotent

Update the content of a file in a skill, overwriting the active revision in place — the previous content is not recoverable. Prefer the non-destructive flow when you can: createSkillRevision to open a draft, updateSkillRevisionFile to edit it, promoteSkillRevision to activate it. Only team skills can be edited.

Input Schema

NameRequiredDescriptionDefault
pathYesRelative path to the file inside the skill, e.g. SKILL.md.
contentYesNew UTF-8 text content for the file.
skill_idYesSkill ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds the consequence that annotations cannot express: the previous content is not recoverable because the active revision is overwritten in place. It also adds a permission constraint (team skills only) beyond the structured fields.

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 sentences, zero filler: the destructive consequence comes first, then the safer alternative path, then the eligibility constraint. Each sentence earns its place.

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?

No output schema is needed for a mutation whose effect is fully described; the description covers destructiveness, reversibility, the preferred alternative workflow, and the permission scope. Nothing an agent needs before calling it is missing.

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 100% across all three parameters (path, content, skill_id), so the schema already carries parameter meaning. The description adds no syntax, format, or constraint detail beyond it, making the baseline 3 appropriate.

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 (update) and resource (content of a file in a skill) plus the exact effect ('overwriting the active revision in place'). This clearly separates it from near-neighbors like updateSkillRevisionFile, getSkillFileContent, and updateFileContent.

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

Usage Guidelines5/5

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

Explicitly routes the agent to an alternative non-destructive flow and names the exact three tools that compose it (createSkillRevision, updateSkillRevisionFile, promoteSkillRevision), plus a hard precondition ('Only team skills can be edited'). Both when-to-use and when-not are covered.

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.

Resources