smithery.ai

add-backend-tool

Add a new tool to the backend OpenAI function calling system. Use when user mentions "new tool", "add tool", "backend function", "agent capability", or wants to extend what the AI agent can do.

First seen Mar 22, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,976 B
  • docs SUMMARY.md 217 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Add Backend Tool

Instructions

  1. Read backend/main.py to understand existing tool patterns:

- Find the tools list with function definitions - Review helper functions (readfile, writefile, runterminalcommand, web_search)

  1. Create the helper function:

``python def newtoolname(param1: str, param2: int = 10) -> str: """Docstring explaining the tool.""" try: # Implementation return result except Exception as e: return f"Error: {str(e)}" ``

  1. Add tool definition to the tools list:

``python { "type": "function", "function": { "name": "newtoolname", "description": "What this tool does and when to use it", "parameters": { "type": "object", "properties": { "param1": {"type": "string", "description": "..."}, "param2": {"type": "integer", "description": "..."} }, "required": ["param1"] } } } ``

  1. Add tool invocation handler in the WebSocket message loop:

``python elif funcname == "newtoolname": result = newtool_name(**args) ``

  1. Update mode restrictions if needed:

- Agent mode: full access - Chat mode: add to allowed list only if read-only/safe

Examples

  • "Add a tool to list directory contents"
  • "Create a tool for git operations"
  • "Add web scraping capability"

Guardrails

  • Include proper error handling with try/except
  • Add timeout for any long-running operations
  • Consider security implications (Chat mode restrictions)
  • Never hardcode API keys or secrets
  • Document the tool's purpose in the function docstring