Skip to main content
Glama

kernel_code_skill_save

Save a working kernel_code_run script by name so it can be rerun with kernel_code_run({ skill, vars }) instead of being rewritten; put changing values in input and list them in params.

Instructions

Save a kernel_code_run script that worked, so it can be run again by name with kernel_code_run({ skill, vars }) instead of being written again. Put the values that change between runs in input and list them in params.

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>",
      "description": "<description>",
      "script": "<script>"
    },
    "name": "kernel_code_skill_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesShort slug, lowercase letters, digits, - and _ (e.g. `overdue-tasks-by-project`). Saving an existing name replaces its script.
paramsNoInputs the script reads from `input`: name → what to pass.
scriptYesThe kernel_code_run script, reading its inputs from `input`.
descriptionYesWhat the script does and returns, written so a search finds it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the reuse mechanism and the input/params convention, but says nothing about overwrite/replacement risk (that detail lives only in the schema), visibility of saved skills to other users, or persistence scope.

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?

Two sentences, no filler, and the purpose plus the input/params convention are front-loaded in that order. Every clause earns its place.

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?

The schema is rich and the description covers the core workflow, but for an unannotated write tool it omits replacement/overwrite consequences at the description level and gives no sense of scope or side effects on existing saved skills.

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 baseline is 3, but the description adds real meaning by tying the abstraction together: changing values belong in `input`, and `params` declares them as name → what to pass. That relationship is what makes the tool callable correctly, not just the field names.

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?

States a specific verb and resource ('Save a kernel_code_run script') plus the payoff: reuse by name via kernel_code_run instead of rewriting. It clearly separates itself from the runner sibling, though it does not distinguish itself from kernel_code_skill_get/list/delete in the same family.

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?

Gives a clear trigger: save a script 'that worked', so it can be run again by name. Implicitly excludes throwaway scripts, but offers no explicit when-not guidance or prerequisites (e.g., naming collisions, ownership).

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

Deploy Server

Other Tools