Skip to main content
Glama

save_skill

DestructiveIdempotent

Create or update a skill (procedural playbook). Required: name, steps (plaintext how-to). Optional: description, trigger_hint, brain_id, agent_id (omit = shared across the user's agents), status. Upserts by (brain, agent, name); version-bumps on update.

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

Input Schema

NameRequiredDescriptionDefault
nameYesName of the skill
grundNoWhy this change (goes into the optimisation register, list_optimierungen)
stepsYesPlaintext how-to steps of the skill
statusNoInitial status
user_idNoID of the user
agent_idNoID of the agent
brain_idNoID of the brain
descriptionNoDescription of the skill
trigger_hintNoWhen the skill should be used

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / brain_id / description
      Added value: +"ID of the brain"
    • addedInput schema / properties / description / description
      Added value: +"Description of the skill"
    • addedInput schema / properties / name / description
      Added value: +"Name of the skill"
    • addedInput schema / properties / status / description
      Added value: +"Initial status"
    • addedInput schema / properties / steps / description
      Added value: +"Plaintext how-to steps of the skill"
    • addedInput schema / properties / trigger_hint / description
      Added value: +"When the skill should be used"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag this as a non-readonly, destructive, idempotent write; the description then adds real substance beyond them by disclosing the upsert key '(brain, agent, name)' and that updates version-bump rather than clobber history. That version-bump detail meaningfully qualifies the destructiveHint by signalling that prior versions are retained. It does not say whether a caller's omitted optional fields are preserved or reset on an update, which is the main remaining behavior gap.

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?

One compact paragraph with the action first, then required fields, then optional fields, then the upsert key. Every clause carries distinct information and there is no filler.

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?

For a 9-parameter destructive write with no output schema, the definition covers purpose, required inputs, scope defaults, and update semantics. Missing is the update-merge policy (do omitted optional fields get cleared?) and any note on what the call returns, though the latter is partly forgiven given no output schema exists.

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 earns the bump by partitioning parameters into required (name, steps) versus optional and by explaining the scope consequence of omitting brain_id/agent_id. It does not mention 'grund' or 'user_id', which appear in the schema but not in the prose, leaving a small mismatch.

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?

Opens with a specific verb pair and resource ('Create or update a skill') and immediately glosses the domain term as '(procedural playbook)', so an agent knows what a skill is without opening the schema. Sibling tools like delete_skill and recall_skill are not referenced, so the CRUD position is implied rather than stated.

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?

Usage is implied through the create-or-update framing and the note that omitting brain_id/agent_id makes the skill 'shared across the user's agents', which is genuinely useful routing information. However, there is no explicit when-to-use versus recall_skill or delete_skill, and no stated precondition such as checking for an existing skill before writing.

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.