tool-creator

Create secure MCP tools with Pydantic validation, sanitization, rate limiting, and audit logging.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Hashzin-0/Curion --skill tool-creator-hashzin-0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tool-creator
Source: https://github.com/Hashzin-0/Curion/tree/main/.opencode/skills/tool-creator
Command: npx skills add https://github.com/Hashzin-0/Curion --skill tool-creator-hashzin-0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of insecure or poorly validated tools being deployed to MCP servers by providing a repeatable, security-first template and checklist for building executable tools and functions that interact with databases, cloud services, messaging platforms, and filesystems.

Core Features & Use Cases

  • Security-first templates: Pydantic input models, sanitization routines, path and SQL protections, and secrets-safe handling to prevent injection and data leaks.
  • Operational safeguards: Built-in rate limiting, audit logging, timeout configuration, and graceful error handling for production stability and observability.
  • Integration-ready: Boilerplates and examples for databases, cloud providers, messaging APIs, file operations, and CI/CD tasks; ideal for creating query executors, webhook handlers, and deploy managers.
  • Use case: Scaffold a PostgreSQL read-only query tool for MCP that enforces SELECT-only queries, rate limits access, logs invocations for audit, and masks sensitive values in outputs.

Quick Start

Use the tool-creator skill to scaffold a secure MCP PostgreSQL query executor with Pydantic validation, SQL sanitization, rate limiting, and audit logging.

Frequently Asked Questions about tool-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create secure MCP tools with input validation and sanitization?

To create secure MCP tools, use Pydantic input models for strict validation, apply SQL and path sanitization routines, and implement secrets-safe handling to prevent injection attacks and data leaks. This ensures only sanitized, validated inputs reach your database, cloud, or file system integrations.

What's the best way to add rate limiting and audit logging to MCP server tools?

The best way to add rate limiting and audit logging to MCP tools is to apply configurable rate limits and built-in audit logging during tool creation. This enforces production stability by throttling access and recording invocations for observability and compliance.

Can I use Pydantic validation to protect MCP tools that execute PostgreSQL queries?

Yes, Pydantic validation protects MCP tools executing PostgreSQL queries by enforcing strict input models. You can scaffold a read-only query tool that restricts SELECT-only queries, sanitizes SQL inputs, rate limits access, and masks sensitive values in output results.

Does this approach work for securing tools that interface with cloud services and communication APIs?

Yes, this security-first approach works for MCP tools interfacing with cloud services, communication APIs, file systems, and databases. It provides boilerplates and examples for webhook handlers, deploy managers, and messaging integrations requiring safety and observability.

How do I prevent sensitive data leaks when building MCP tools for production?

Prevent sensitive data leaks in MCP tools by implementing secrets-safe handling, masking sensitive values in outputs, and applying graceful error handling. These operational safeguards ensure production stability and prevent accidental exposure of secrets during tool invocation.