tool-skill

Generate MCP tools, LangChain wrappers, and agent-tool bindings for AI agents.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/tendercoconut174/ai-agent-platform --skill tool-skill-tendercoconut174
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tool-skill
Source: https://github.com/tendercoconut174/ai-agent-platform/tree/main/.cursor/skills/tool-skill
Command: npx skills add https://github.com/tendercoconut174/ai-agent-platform --skill tool-skill-tendercoconut174

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building agent capabilities requires consistent, stateless tools that follow MCP principles, but ad-hoc tool code often lacks structure, typed inputs, and proper registry wiring. This Skill provides the conventions and patterns for creating tools that agents can reliably call. ## Core Features & Use Cases - MCP Tool Generation: Create raw tool functions in shared/mcp/tools/ that accept typed parameters and return structured dicts. - LangChain Wrapper Creation: Generate @tool decorated wrappers in shared/mcp/server.py that expose tools to agents with LLM-friendly descriptions. - Registry & Agent Binding: Add tools to ALL_TOOLS and map them to agent types (research, analysis, generator, code, monitor, chat) in TOOL_REGISTRY, including CrewAI conversion via Tool.from_langchain(). - Use Case: When adding a new capability like a weather API integration, use this Skill to scaffold the raw function, the LangChain wrapper, and the registry entries so research and generator agents can invoke it immediately. ## Quick Start Create a new MCP tool that fetches stock prices and register it for the research and analysis agents.

Frequently Asked Questions about tool-skill

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

FAQPage Schema
How do I add a new MCP tool to a LangChain agent?▼

Create a raw function in shared/mcp/tools/ that returns a dict, then add a @tool decorated wrapper in shared/mcp/server.py that calls it and returns a string. Finally, add the wrapper to ALL_TOOLS and the relevant agent entries in TOOL_REGISTRY.

How do I give CrewAI agents access to LangChain tools?▼

Convert LangChain tools using Tool.from_langchain() in crewai_agents.py. The raw LangChain tools come from TOOL_REGISTRY, which maps each agent type to its allowed tool list.

What is the difference between the raw tool function and the LangChain wrapper?▼

The raw function in shared/mcp/tools/ performs the actual work and returns a structured dict with results or errors. The LangChain @tool wrapper in server.py provides the LLM-facing description and returns a plain string for agent consumption.

Should MCP tools raise exceptions when they fail?▼

No. Tools must handle errors gracefully by returning the error inside the result dict rather than raising. This keeps tools stateless, deterministic, and safe for agents to call without orchestration-level error handling.

Can agents call external APIs directly instead of using tools?▼

No. Agents must not call external APIs directly; all external interaction goes through registered tools. This keeps capabilities simple, stateless, reusable, and centrally controlled via TOOL_REGISTRY.