mcp-tool-definition

Define MCP tools with mandatory inputSchema and optional outputSchema JSON schemas.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/abhishekmmgn/skills --skill mcp-tool-definition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-tool-definition
Source: https://github.com/abhishekmmgn/skills/tree/main/mcp/mcp-tool-definition
Command: npx skills add https://github.com/abhishekmmgn/skills --skill mcp-tool-definition

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Defining MCP tools with consistent, self-documenting schemas helps teams design, validate, and audit tool behavior for AI agents.

Core Features & Use Cases

  • JSON Schema-based tool definitions with mandatory inputSchema and optional outputSchema and annotations to ensure clear contracts
  • Enables self-documenting tools that constrain behavior, validation, and side effects for safer agent use
  • Use Case: Define a Jira ticket-creation tool schema that standardizes required fields and expected outputs

Quick Start

Define a new MCP tool by adding a JSON object with fields like name, description, inputSchema, and optional outputSchema and annotations to your tool repository.

Frequently Asked Questions about mcp-tool-definition

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

FAQPage Schema
How do I define MCP tools with JSON schema for AI agents?

To define MCP tools with JSON schema, you create a JSON object containing a mandatory inputSchema along with optional outputSchema and annotations. This enforces clear contracts by constraining behavior, validation, and side effects for safer agent use.

What is self-documentation in MCP tool definitions?

Self-documentation in MCP tool definitions means specifying mandatory inputSchema, optional outputSchema, and annotations to standardize required fields and expected outputs. This creates clear contracts that help teams design, validate, and audit tool behavior for AI agents.

How do I validate AI agent tool definitions across software projects?

You validate AI agent tool definitions by enforcing a mandatory inputSchema and optional outputSchema with annotations in your JSON objects. This standardizes required fields and expected outputs, ensuring consistent tool behavior validation across software projects and teams.

Does this MCP tool definition approach work for standardizing Jira ticket creation schemas?

Yes, this MCP tool definition approach works for standardizing Jira ticket creation schemas by enforcing a mandatory inputSchema and optional outputSchema. It standardizes required fields and expected outputs to ensure clear contracts for AI agent tool behavior.

What are the limitations of relying only on inputSchema for MCP tools?

Relying only on an inputSchema for MCP tools limits your ability to document expected outputs and annotations. Adding an optional outputSchema and annotations creates self-documenting tools that better constrain behavior, validation, and side effects for safer agent use.