explain_skill_error
Use to normalize skill validation error text into a client-friendly format. Provide the raw error string to get a structured, understandable explanation of the failure.
Instructions
Normalize skill validation failures for the client.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- The actual tool handler: raises a SkillError with the provided error_text and catches it, returning the string representation to normalize skill validation failures for the client.
@mcp.tool() def explain_skill_error(error_text: str) -> str: """Normalize skill validation failures for the client.""" try: raise SkillError(error_text) except SkillError as exc: return str(exc) - src/friday_mcp_server/tools/skills.py:73-79 (registration)The tool is registered via the @mcp.tool() decorator, defined within the register() function which receives the mcp instance.
@mcp.tool() def explain_skill_error(error_text: str) -> str: """Normalize skill validation failures for the client.""" try: raise SkillError(error_text) except SkillError as exc: return str(exc) - SkillError is a custom exception (subclass of ValueError) used by the tool to normalize validation errors.
class SkillError(ValueError): """Base exception for skill validation and installation failures."""