Skip to main content
Glama

skills

Manage versioned agent instruction bundles: list, create, update, version, archive, and attach on-demand resources for tenant or platform agents.

Instructions

Manage agent skills (versioned instruction bundles with progressive disclosure — catalog in-prompt, bodies via the read_skill tool). action: list (all skills; filter with agent_kind/business_id) | get (skill + versions + latest version's resources; needs skill_id) | create (needs slug, display_name, description, agent_kind, content; optional business_id for a tenant skill, always_on) | update (metadata patch; needs skill_id — also archive/unarchive by passing status="archived"|"active"|"draft" and/or is_active; setting status="archived" forces is_active=False alongside it, mirroring the portal's "Archive skill" button (admin/skill_handlers.py::skill_archive), which always writes both columns together since core/skills.py's live resolver requires BOTH is_active=True AND status="active" to serve a skill) | create_version (needs skill_id, content; optional notes) | list_resources (skill_id [+ version_id]) — the version's bundled files (filename, content_type, size; no bodies) | add_resource (skill_id, filename, content [+ version_id, content_type]) — attach a file the agent can read on demand; same 64 KB cap and replace-by-filename behaviour as the portal | delete_resource (skill_id, resource_id, confirm=true).

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": {
      "action": "<action>"
    },
    "name": "skills"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
slugNoSkill slug (lowercase, hyphens).
notesNocreate_version: notes for the new version.
actionYesOperation to run: list | get | create | update | create_version | list_resources | add_resource | delete_resource. The tool description lists what each action needs.
statusNoactive | draft | archived (archived also sets is_active=false).
confirmNofalse (default) = dry run: report what WOULD change and change nothing. true = execute.
contentNoSkill body (create/create_version) or resource file text (add_resource).
filenameNoadd_resource: file name (re-adding the same name on the same version replaces it).
skill_idNoagent_skills UUID (skills action=list).
always_onNoInject the skill every turn instead of on demand.
is_activeNoActive flag (archive forces false).
agent_kindNoAgent kind the skill serves (list: filter).
version_idNoResource actions: the skill version the file belongs to ('' = the newest version).
business_idNoTenant skill: owning business ('' = platform).
descriptionNoOne-line catalog description of the skill.
resource_idNodelete_resource: the agent_skill_resources row.
content_typeNoadd_resource: MIME type (default text/markdown).
display_nameNoSkill name shown in the catalog.
linked_data_source_idsNoKB sources the skill links to.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose several non-obvious traits: archived status forces is_active=False because the live resolver requires both flags, resources return metadata only with no bodies, add_resource enforces a 64 KB cap and replaces by filename, and delete_resource is shown with confirm=true (consistent with the schema's dry-run default). It stops short of stating permission/admin requirements, whether create is idempotent on slug collision, or what a dry-run report looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The pipe-delimited action list is front-loaded and scannable, but the archive parenthetical is bloated: it cites admin/skill_handlers.py and core/skills.py and restates the is_active coupling that the schema already documents, which is implementation trivia rather than decision-relevant guidance. For eight actions the length is defensible, but that stretch does not earn its place.

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?

An output schema exists, so return values need not be explained, and 19 parameters are fully covered by the schema plus the per-action requirements in the description. The remaining gap is list behavior — no indication of pagination, ordering, or result cap for an action that reads all skills, which matters at tenant scale.

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 adds value by mapping parameters to actions — an agent can tell that business_id means 'tenant skill' only on create, that version_id defaults to the newest version for resource actions, and that status and is_active are coupled. Some of this repeats schema text (the status/is_active coupling and filename replace-by-name are already in the field descriptions), which keeps it from a 5.

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?

Opens with a concrete definition of the resource (versioned instruction bundles with progressive disclosure: catalog in-prompt, bodies via read_skill) and then names each of the eight actions with its verb and object (list skills, get skill + versions + resources, create, update, create_version, list_resources, add_resource, delete_resource). An agent can identify both the domain and the exact operation without opening the schema.

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?

Each action carries its required inputs inline (e.g. 'get ... needs skill_id', 'create needs slug, display_name, description, agent_kind, content'), and the opening sentence routes body retrieval to the sibling read_skill tool, which is real when-to-use guidance. What is absent is disambiguation among the management actions themselves — nothing says when to use create_version versus update, or why attach a resource rather than inline content.

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