name: matimo_create_tool
version: '1.0.0'
description: Create a new tool definition on disk. Validates the YAML, forces draft status and requires_approval, and writes the tool to the target directory.
requires_approval: true
tags:
  - matimo
  - meta
  - creation

parameters:
  name:
    type: string
    required: true
    description: Name for the new tool (snake_case, no path traversal)
  yaml_content:
    type: string
    required: true
    description: The YAML content of the tool definition
  target_dir:
    type: string
    required: false
    description: Directory to create the tool in (default ./matimo-tools)
  proposed_by:
    type: string
    required: false
    description: Identifier of who proposed this tool
  justification:
    type: string
    required: false
    description: Reason for creating this tool

execution:
  type: function
  code: './matimo_create_tool.js'

output_schema:
  type: object
  properties:
    success:
      type: boolean
    path:
      type: string
    riskLevel:
      type: string
    status:
      type: string
    message:
      type: string
