get_available_skills
Discover available AI skills and their use cases by parsing skill metadata, enabling LLMs to identify which capabilities are accessible before requesting detailed information.
Instructions
Get an overview of all available skills.
This tool provides LLMs with a list of available skills and their use cases by parsing the frontmatter (YAML metadata) at the start of each SKILL.md file.
LLMs should rely on this tool to discover what skills are available before requesting detailed skill information.
Returns
list[dict[str, str]] List of skill metadata dictionaries, each containing: - name: The skill identifier (lowercase, hyphens only) - description: When and how to use this skill - path: Location of the skill directory
Examples
skills = get_available_skills() print(skills[0]["name"]) 'single-cell-rna-qc'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
Implementation Reference
- src/skill_to_mcp/tools/_skills.py:23-48 (handler)The handler function for the 'get_available_skills' tool. It is decorated with @mcp_server.tool() and uses SkillParser to retrieve and return a list of available skills.@mcp_server.tool() def get_available_skills() -> list[dict[str, str]]: """Get an overview of all available skills. This tool provides LLMs with a list of available skills and their use cases by parsing the frontmatter (YAML metadata) at the start of each SKILL.md file. LLMs should rely on this tool to discover what skills are available before requesting detailed skill information. Returns ------- list[dict[str, str]] List of skill metadata dictionaries, each containing: - name: The skill identifier (lowercase, hyphens only) - description: When and how to use this skill - path: Location of the skill directory Examples -------- >>> skills = get_available_skills() >>> print(skills[0]["name"]) 'single-cell-rna-qc' """ skills = skill_parser.find_all_skills() return [skill.to_dict() for skill in skills]
- src/skill_to_mcp/mcp.py:30-33 (registration)The registration point where register_skill_tools is imported and called to add the 'get_available_skills' tool (and others) to the FastMCP server.# Register tools with the configured skills directory from skill_to_mcp.tools._skills import register_skill_tools register_skill_tools(mcp_server, skills_dir)