Skip to main content
Glama

Save skill

save_skill

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 tenant's agents), status. Upserts by (brain, agent, name); version-bumps on update. Gated by agent_tool_permissions when agent_id is passed.

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
nameYes
stepsYes
statusNo
agent_idNo
brain_idNo
descriptionNo
trigger_hintNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false); the description adds material context beyond them — the upsert key, that updates create a version bump rather than silently overwriting, and that agent-scoped writes are permission-gated. It stops short of saying whether omitted optional fields are preserved or cleared on update, which matters for a non-idempotent upsert.

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?

Front-loaded with the verb and resource, then Required/Optional inventory, then upsert and gating semantics — a dense, scannable shape with no filler sentences.

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 7-parameter mutation tool with no output schema and no annotation detail, the description covers identity, required inputs, scoping, and permission gating well enough to call safely. Remaining gaps are field-level semantics for status and trigger_hint, which is a modest shortfall for a low-complexity flat schema.

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?

With 0% schema description coverage, the description does real work: it marks name/steps as required, clarifies steps is plaintext how-to, and gives agent_id its sharing semantics. However, description, trigger_hint, brain_id and status are named but not explained — status in particular has no stated values — so half the parameters still carry no meaning beyond their names.

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+resource ('Create or update a skill') and immediately glosses the resource as a 'procedural playbook', which is not inferable from the name. The upsert key '(brain, agent, name)' further pins down what identity means, distinguishing it from the read-side sibling recall_skill.

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?

Makes clear this is the write path for skills and gives concrete context: omit agent_id for tenant-wide sharing, and expect permission gating when agent_id is supplied. It does not explicitly route to an alternative (e.g., recall_skill for retrieval), but the when-to-use context is unambiguous.

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