Skip to main content
Glama

skill

Create and discover agent skills with structured entries. Use natural-language queries to surface relevant procedures, references, patterns, and lessons. Record outcomes to track effectiveness.

Instructions

Substrate-native agent skill catalog — define, surface, record outcomes.

Skills are structured catalog entries (skill_id, applies_to, body, type) — different from loose how-to memories (use procedure for those). Writes go to the skill_substrate namespace so every yantrikdb consumer (this MCP, yantrikdb-hermes-plugin, Lane B SDK, WisePick) sees the same catalog.

Schema-validated at write time:

  • skill_id: lowercase dot-separated segments, e.g. "workflow.git.commit_clean"

  • body: 50–5000 chars

  • applies_to: 1–10 lowercase_underscore identifiers (no hyphens)

  • skill_type: one of procedure | reference | lesson | pattern | rule

ACTIONS:

  • "define": Create a skill (needs skill_id, body, skill_type, applies_to).

  • "surface": Find relevant skills (needs query). Returns ranked by score.

  • "outcome": Append a use outcome (needs skill_id, succeeded).

  • "get": Fetch a single skill by id.

  • "list": Catalog browse (filter by applies_to / skill_type).

EXAMPLES:

  • skill(action="define", skill_id="workflow.git.commit_clean", body="Before commit: run pytest, run lint, write a clear " "subject + body. Never include co-authored-by unless asked.", skill_type="procedure", applies_to=["git", "release"])

  • skill(action="surface", query="how to commit cleanly")

  • skill(action="outcome", skill_id="workflow.git.commit_clean", succeeded=True, note="caught a flake8 issue pre-push")

Args: action: "define", "surface", "outcome", "get", "list". skill_id: Dot-separated id (for define/get/outcome). body: Skill body, 50–5000 chars (for define). skill_type: procedure|reference|lesson|pattern|rule (for define). applies_to: Non-empty identifier list ≤10 entries (for define; optional filter for surface/list). triggers: Optional list of trigger phrases (for define). on_conflict: "reject" (default) or "replace" if skill_id exists. version: Optional semver-shaped version string. supersedes: Optional skill_id this one replaces. query: Natural-language search (for surface). top_k: Max results for surface. succeeded: Outcome boolean (for outcome). note: Optional outcome note. limit: Max results for list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNo
noteNo
limitNo
queryNo
top_kNo
actionYes
versionNo
skill_idNo
triggersNo
succeededNo
applies_toNo
skill_typeNoprocedure
supersedesNo
on_conflictNoreject

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate readOnlyHint=false, destructiveHint=false, etc. The description adds context: writes go to `skill_substrate` namespace, schema-validated at write time, and details each action's effects. It also explains the 'on_conflict' behavior. Some behavioral aspects (e.g., rate limits, concurrency) are not mentioned, but the description goes beyond annotations.

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

Conciseness4/5

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

The description is structured well: brief purpose, concept explanation, action list, examples, and args. It is front-loaded with the core role. While somewhat lengthy, every section adds value given the tool's complexity (multiple actions, 14 parameters). Could be slightly trimmed without losing clarity.

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?

Given the tool's complexity and the presence of an output schema, the description covers the key aspects: actions, parameter constraints, validation rules, and examples. It does not explicitly mention error handling or edge cases, but the examples and schema provide enough context for typical use.

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?

The input schema has 14 parameters with 0% description coverage, but the description's 'Args:' section thoroughly documents each parameter, including constraints like 'dot-separated segments', '50–5000 chars', and '1–10 lowercase_underscore identifiers'. This adds essential meaning that the schema alone lacks.

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 clearly states the tool is a 'Substrate-native agent skill catalog' and lists five actions (define, surface, outcome, get, list). It distinguishes this tool from the sibling 'procedure' by explicitly noting they are different and directing users to use `procedure` for loose how-to memories. The verb 'manage' is implied through the actions.

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?

The description explicitly contrasts with 'procedure' and provides examples for each action, giving clear context on when to use each action. However, it does not provide explicit guidance on when not to use this tool in favor of other siblings (e.g., memory, recall), leaving some ambiguity.

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/yantrikos/yantrikdb-mcp'

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