Przejdź do treści
Biblioteka skilli
AI i agenci · Budowanie i kod

agenticx-tool-creator

/agenticx-tool-creator

Pomaga tworzyć własne narzędzia w AgenticX: dekorator funkcji, integracja narzędzi MCP, rejestry narzędzi i zdalny dostęp, w tym serwery MCP z zewnętrznych API.

Repozytorium
cuecards ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pomaga tworzyć własne narzędzia w AgenticX: dekorator funkcji, integracja narzędzi MCP, rejestry narzędzi i zdalny dostęp, w tym serwery MCP z zewnętrznych API.

Oryginalny opis (EN)

Guide for creating custom tools in AgenticX including function decorator tools, MCP tool integration, tool registries, and remote tool access. Use when the user wants to create tools for agents, integrate external APIs as tools, build MCP servers, or extend agent capabilities with custom functions.

Jak działa

  1. Tool Architecture
  2. Function Decorator Tools
  3. Class-Based Tools
  4. Tool Registry
  5. MCP Integration
  6. Skill-Based Tools
  7. Tool Design Guidelines
  8. Advanced: Tool Context
Sekcje z nagłówków SKILL.md, w oryginale · 139 linii, 430 słów
Podgląd SKILL.md
---
name: agenticx-tool-creator
description: Guide for creating custom tools in AgenticX including function decorator tools, MCP tool integration, tool registries, and remote tool access. Use when the user wants to create tools for agents, integrate external APIs as tools, build MCP servers, or extend agent capabilities with custom functions.
metadata:
  author: AgenticX
  version: "0.3.9"
---

# AgenticX Tool Creator

Guide for building tools that extend agent capabilities.

## Tool Architecture

AgenticX tools inherit from `BaseTool` and are consumed by agents during execution. Three approaches exist:

1. **Function decorator** (`@tool`) — fastest for simple tools
2. **Class-based** (extend `BaseTool`) — for complex or stateful tools
3. **MCP remote tools** — for external services via Model Context Protocol

## Function Decorator Tools

```python
from agenticx.tools import tool

@tool
def search_web(query: str) -> str:
    """Search the web for information.

    Args:
        query: The search query string.

    Returns:
        Search results as text.
    """
    # implementation
    return f"Results for: {query}"

@tool
def read_file(path: str) -> str:
    """Read contents of a local file."""
    with open(path) as f:
        return f.read()
```

The `@tool` decorator reads the function signature and docstring to generate the tool schema automatically. The docstring **is** the tool description the LLM sees.

## Class-Based Tools

For tools needing initialization, state, or complex logic:

```python
from agenticx.core import BaseTool

class DatabaseQuery(BaseTool):
    name = "database_query"
    description = "Query the project database."

    def __init__(self, connection_string: str):
        super().__init__()
        self.conn = connect(connection_string)

    def _run(self, sql: str) -> str:
        return self.conn.execute(sql).fetchall()
```

## Tool Registry

Register and discover tools globally:

```python
from agenticx.core import ToolRegistry

registry = ToolRegistry()
registry.register(search_web)
registry.register(read_file)

# List all registered tools
for t in registry.list_tools():
    print(f"{t.name}: {t.description}")
```

## MCP Integration

AgenticX supports the Model Context Protocol for remote tool access.

### Connecting to an MCP Server

```python
from agenticx.protocols import MCPClient

client = MCPClient(server_url="http://localhost:3000")
tools = client.list_tools()

# Use MCP tools like local tools
result = client.call_tool("search", {"query": "AI agents"})
```

### Building an MCP Server

AgenticX agents can be exposed as MCP-compatible services:

```python
from agenticx.protocols import MCPServer

server = MCPServer(host="0.0.0.0", port=3000)
server.register_tool(search_web)
server.register_tool(read_file)
server.start()
```

## Skill-Based Tools

Skills (SKILL.md bundles) are also exposed as tools via `SkillTool`:

```python
from agenticx.tools.skill_bundle import SkillBundleLoader, SkillTool

loader = SkillBundleLoader()
skill_tool = SkillTool(loader=loader)
# Agents can invoke: skill_tool("list") or skill_tool("read <skill-name>")
```

## Tool Design Guidelines

1. **Clear docstrings** — the LLM uses the docstring to decide when to call the tool
2. **Type hints** — always annotate parameters and return types
3. **Error handling** — return descriptive error messages, don't raise bare exceptions
4. **Minimal scope** — one tool, one purpose
5. **Idempotent when possible** — safe to retry without side effects
6. **Test independently** — verify tools work before attaching to agents

## Advanced: Tool Context

Tools can access execution context:

```python
@tool
def contextual_tool(query: str, _context: "ToolContext" = None) -> str:
    """A tool that uses execution context."""
    if _context:
        user = _context.user
        session = _context.session_id
    return f"Processed: {query}"
```

Wersje

W bazie nie ma innych skilli o nazwie agenticx-tool-creator.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 4e7b4bb6927f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100agenticx-agent-builder
    Pomaga tworzyć i konfigurować agentów AgenticX z rolami, celami, narzędziami, dostawcami LLM i strategiami wykonania oraz budować systemy wieloagentowe.
  • 100agenticx-agent-builder
    Pomaga tworzyć i konfigurować agentów AgenticX z rolami, celami, narzędziami, dostawcami LLM i strategiami wykonania oraz budować systemy wieloagentowe.
  • 100mcp-builder
    Buduje serwery MCP, które dają Claude nowe możliwości: dodawanie narzędzi i integrację zewnętrznych usług.
  • 100mcp-cli
    Obsługuje serwery MCP z linii poleceń: wyświetla dostępne serwery i narzędzia oraz wywołuje narzędzia MCP, by korzystać z zewnętrznych API i źródeł danych.
  • 100mcp-tool-scout
    Wykrywa serwery MCP i czyta schematy narzędzi przed ich wywołaniem, aby wybrać właściwe narzędzie MCP.
  • 90claude-agent-sdk-tool-integration
    Integruje narzędzia, uprawnienia i serwery MCP z agentami Claude przy użyciu Agent SDK.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.