Skip to main content
Glama
TeamUnilytics

Unilytics MCP Server

Official

update_skill

Apply surgical edits, create or replace files, or delete files to update an editable skill and save a new version instantly without a publish step.

Instructions

Save changes to an editable skill — writes a new version (no publish step).

Three composable ways to change files in ONE version. Prefer file_edits for
small changes — it sends only the changed text, not the whole file.

  file_edits   — surgical find/replace on an EXISTING file. Maps path ->
    list of edits, e.g.
        {"reference/style-guide.md": [{"find": "—", "replace": "-", "count": 5}]}
    Each `find` must match exactly `count` times (default 1); a 0-match or a
    count mismatch is rejected so you fix the string rather than write blind.
    Use a longer, unique `find` for a single edit, or set `count` to replace
    all occurrences. THIS IS THE CHEAP PATH for fixing a few characters.

  file_changes — create a new file or whole-file replace. Maps path ->
    full markdown, e.g. {"SKILL.md": "...", "reference/new.md": "..."}.
    Use for new files or large rewrites.

  delete_files — remove files, e.g. ["reference/old.md"]. SKILL.md can't be
    deleted (it is the contract).

FILE LAYOUT (where files go — get_skill surfaces them by these prefixes):
  - reference/*  docs the agent READS (style guides, pipelines, specs).
  - data/*       assets the skill CARRIES, incl. runnable scripts. Put a
                 checker like data/verify_row.py HERE (not reference/) so it
                 travels with the skill and get_skill lists it as runnable —
                 the agent then read_skill_file()s it and EXECUTES it as a gate.

Built-in skills are read-only — update is rejected; create_skill(extends=...)
first, then update that copy.

Args:
    skill_id: The editable skill id (user/... or project/...).
    file_changes: {path: markdown} — create/replace whole files.
    file_edits: {path: [{find, replace, count?}]} — surgical edits to existing files.
    delete_files: [path, ...] — files to remove.
    change_summary: Short note on what changed (for version history).
    expected_version: If set, the save fails with a conflict unless the
        skill is still at this version (safe concurrent editing).
    verbatim_source: When PORTING/refactoring existing content, pass the
        original text. The store returns a fidelity report on the resulting
        files — a FAIL means content was silently condensed (re-port the
        missing segments; don't claim done). Splitting + intentional edits OK.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
configNo
skill_idYes
file_editsNo
delete_filesNo
file_changesNo
change_summaryNo
verbatim_sourceNo
expected_versionNo
Behavior5/5

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

Given annotations provide only a title, this description carries full behavioral disclosure burden. It discloses that the tool writes a new version with no publish step, describes exact matching behavior for file_edits (count must match exactly), explains that SKILL.md is undelatable, and details the fidelity report behavior for verbatim_source. It also reveals version conflict handling via expected_version and read-only enforcement for built-ins.

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 description is long but well-organized into labeled sections (FILE LAYOUT, Args) with bullet lists and examples. Every sentence adds unique value: matching rules, storage location semantics, read-only constraints, and parameter behaviors. The length is justified by the tool's complexity, and key points are front-loaded in the first sentence.

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?

The tool has 8 parameters, nested objects, no output schema, and minimal annotations, meaning the description is the only source of contextual guidance. It covers file placement conventions, limitations (SKILL.md undeletable), version conflict behavior, and fidelity checking for ported content. This provides complete operational knowledge for an agent to use the tool correctly in varied scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 0%, the description fully compensates. It explains the structure and purpose of each parameter with examples: file_edits mapping, file_changes mapping, delete_files array, change_summary purpose, expected_version conflict semantics, and verbatim_source fidelity reporting. This goes far beyond the raw schema, which only lists names and types.

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 'Save changes to an editable skill — writes a new version (no publish step)', which clearly states the action, target resource, and key distinction from publishing. It distinguishes itself from siblings like create_skill (which creates new skills) and delete_skill (which removes skills), and the mention of 'editable skill' clarifies it does not apply to read-only built-ins.

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?

Provides explicit guidance on when to use which parameter: 'Prefer file_edits for small changes' and 'Use for new files or large rewrites' for file_changes. It also explains when NOT to use the tool: 'Built-in skills are read-only — update is rejected; create_skill(extends=...) first, then update that copy.' This directly addresses alternative tools and prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TeamUnilytics/unilytics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server