Skip to content
Back to skills

2580 Create Tools 579a85b0

ASecurity

You can create custom tools to work with the `tool` parameter of the `agentmake` function. An `agentmake` tool takes actions to resolve user requests through function calling. Each tool is defined in a Python file (`.py`) specifying the following variables: The JSON schema describing the parameters for function calling. - If you want to pass the whole conversation for the tool to process, assign an empty dictionary (`{}`) to `TOOL_SCHEMA`. In this case, `agentmake` passes the `messages` param...

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
ai-agentspythongitapibackend

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2580-create_tools_579a85b0 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2580 Create Tools 579a85b0?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2580 Create Tools 579a85b0
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2580-create-tools-579a85b0/badge)](https://www.skillsdirectory.com/skills/tools-only-2580-create-tools-579a85b0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# How to Create a Tool?

You can create custom tools to work with the `tool` parameter of the `agentmake` function.

An `agentmake` tool takes actions to resolve user requests through function calling.

Each tool is defined in a Python file (`.py`) specifying the following variables:

### 1. `TOOL_SCHEMA` (Required)

The JSON schema describing the parameters for function calling.
- If you want to pass the whole conversation for the tool to process, assign an empty dictionary (`{}`) to `TOOL_SCHEMA`. In this case, `agentmake` passes the `messages` parameter to `TOOL_FUNCTION`.

### 2. `TOOL_FUNCTION` (Required)

The function object called by the tool.

**Arguments:**
1.  **Structured Output:** Unpacked arguments from the dictionary generated according to `TOOL_SCHEMA`.
2.  **`**kwargs`:** REQUIRED. The `agentmake` function passes runtime parameters (e.g., `backend`, `model`, `api_key`) providing the ability to run nested `agentmake` calls within your tool.

**Return Values:**
- **Empty string (`""`)**: User request resolved without needed chat extension. Any printed output is taken as the assistant's response.
- **Non-empty string**: Provides context to extend the chat conversation.
- **`None`**: Fall back to regular chat completion (useful for error handling).

### 3. `TOOL_SYSTEM` (Optional)

System message for running the tool.
- Specify a string for the system message.
- Assign an empty string `""` to avoid using a tool system message.
- Omit to use the default `agentmake` tool system message.

### 4. `TOOL_DESCRIPTION` (Optional)

Description of the tool.
- Optional if the tool description is already specified within `TOOL_SCHEMA`.

---

**Example Structure:**

```python
def my_tool_function(param1, **kwargs):
    # Tool logic
    return "Result"

TOOL_SCHEMA = {
    "type": "object",
    "properties": {
        "param1": {"type": "string"}
    }
}

TOOL_FUNCTION = my_tool_function
```

For practical examples, check our built-in tools at [https://github.com/eliranwong/agentmake/tree/main/agentmake/tools](https://github.com/eliranwong/agentmake/tree/main/agentmake/tools).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.