# Tools

Tool nodes an Agent, Tool Router or Tool Chain can call, including sub-agents and MCP servers.

Source: https://glamorous-boar.cloudvent.net/nodes/tools/

---

{/* Generated by scripts/agenticmind/generate-node-docs.mjs from the AgenticMind node registry. Do not edit by hand. */}

A tool node outputs a `Tool` handle: a name, a description the model reads, a JSON Schema for its arguments and the permissions it needs. Wire it into an Agent's `tools` input, so the canvas shows exactly what an agent can do. Arguments are validated against the schema before the tool runs, and tool errors go back to the model so it can recover.

| Node | Category | Summary |
|---|---|---|
| [Auto Ontology Tool](#auto-ontology-tool) | Tools | Lets an Agent search business terms and ask questions through Auto Ontology. |
| [Calculator Tool](#calculator-tool) | Tools | Lets an agent do exact arithmetic (safe expression evaluator, no code execution). |
| [Code Interpreter Tool](#code-interpreter-tool) | Tools | Lets an agent write and run Python or JavaScript in a sandbox (Docker by default). |
| [Date & Time Tool](#date-time-tool) | Tools | Lets an agent look up the current date and time in any timezone. |
| [Knowledge Search Tool](#knowledge-search-tool) | Tools | Lets an agent search your indexed documents (connect the same Embedding Model and Vector Store). |
| [MCP Call](#mcp-call) | Tools | Calls one tool on a Model Context Protocol server directly (no model). |
| [MCP Server](#mcp-server) | Tools | Connects to a Model Context Protocol server and gives an agent all of its tools. |
| [Memory Tool](#memory-tool) | Tools | Lets an Agent recall long-term memories, or save new ones when 'consent' is true. |
| [SQL Tool](#sql-tool) | Tools | Lets an Agent query a database read-only; the schema is included so it knows the tables. |
| [Subagent](#subagent) | Tools | An agent offered as a tool: a supervisor Agent delegates tasks to it (explicit, bounded handoff). |
| [Web Fetch Tool](#web-fetch-tool) | Tools | Lets an agent read public web pages, restricted to the domains you allow. |
## Auto Ontology Tool

`agenticmind.semantic.tool_ontology` · version 1.0.0

Lets an Agent search business terms and ask questions through Auto Ontology.

**Typical use.** Gives an agent `search_terms` and `ask_question` actions over an NVIDIA Auto Ontology semantic layer.

| Input | Type | Required | Description |
|---|---|---|---|
| `ontology` | Ontology | yes |  |

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** `network`, `credentials`
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `name` | string | `business_data` | Name |
| `description` | string | see below | Description |
| `max_rows` | integer | `50` | Max Rows |
| `timeout_seconds` | number | `300` | Timeout Seconds |

<CodeBlock language="text" filename="Default description">

```
Query the company's governed business data through its semantic layer. action=search_terms looks up business terms by name; action=ask_question answers a question with SQL and rows (slow: tens of seconds, so ask one well-formed question).
```

</CodeBlock>

## Calculator Tool

`agenticmind.agents.tool_calculator` · version 1.0.0

Lets an agent do exact arithmetic (safe expression evaluator, no code execution).

**Typical use.** Exact arithmetic for agents through a safe AST evaluator (no `eval`, no code execution). Models are unreliable at arithmetic; this tool fixes that.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** none
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `name` | string | `calculator` | Name the model uses to call the tool. |
| `description` | string | see below | Tells the model when and how to use this tool. |

<CodeBlock language="text" filename="Default description">

```
Evaluate an arithmetic expression exactly, e.g. '25 * 0.6' or 'sqrt(2) + 3**2'. Supports + - * / // % **, parentheses, sqrt, log, log10, exp, sin, cos, tan, abs, round, min, max, pi and e. Use it for any calculation.
```

</CodeBlock>

## Code Interpreter Tool

`agenticmind.agents.code_tool` · version 1.0.0

Lets an agent write and run Python or JavaScript in a sandbox (Docker by default).

**Typical use.** Lets an agent write and run Python or JavaScript in the sandbox. Tracebacks come back as tool errors, so the agent can fix its code and retry. Needs Agent 1.2.0 or newer.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** none
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `name` | string | `run_code` | Name the model uses to call the tool. |
| `description` | string | see below | Tells the model when and how to use this tool. |
| `language` | `python` · `javascript` | `python` | Language |
| `timeout_seconds` | number | `30` | Timeout Seconds |
| `memory_mb` | integer | `256` | Memory Mb |

<CodeBlock language="text" filename="Default description">

```
Runs code in a sandbox and returns its result and printed output. Use it for exact calculations, data processing and checking your reasoning; each call starts fresh.
```

</CodeBlock>

## Date & Time Tool

`agenticmind.agents.tool_datetime` · version 1.0.0

Lets an agent look up the current date and time in any timezone.

**Typical use.** Lets an agent read the current date and time in any IANA time zone, so it does not guess the date from its training data.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** none
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `name` | string | `current_datetime` | Name the model uses to call the tool. |
| `description` | string | see below | Tells the model when and how to use this tool. |

<CodeBlock language="text" filename="Default description">

```
Get the current date and time. Optionally pass an IANA timezone such as 'Europe/Oslo' or 'Asia/Dhaka'.
```

</CodeBlock>

## Knowledge Search Tool

`agenticmind.agents.tool_knowledge_search` · version 1.0.0

Lets an agent search your indexed documents (connect the same Embedding Model and Vector Store).

**Typical use.** Gives an agent a `search_documents` tool over your indexed documents. Connect the same Embedding Model and Vector Store used by Index Documents.

| Input | Type | Required | Description |
|---|---|---|---|
| `model` | EmbeddingModel | yes |  |
| `store` | VectorStoreHandle | yes |  |

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** none
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `name` | string | `search_documents` | Name the model uses to call the tool. |
| `description` | string | see below | Tells the model when and how to use this tool. |
| `top_k` | integer | `5` | Top K |

<CodeBlock language="text" filename="Default description">

```
Search the indexed documents for passages relevant to a query. Use it for any question about the documents' content. Returns numbered passages with their source file, page and section.
```

</CodeBlock>

## MCP Call

`agenticmind.agents.mcp_call` · version 1.0.0

Calls one tool on a Model Context Protocol server directly (no model).

**Typical use.** Calls one MCP tool directly, without a model, with default arguments merged with the `arguments` input.

| Input | Type | Required | Description |
|---|---|---|---|
| `arguments` | JSON | no | Tool arguments object |

| Output | Type | Description |
|---|---|---|
| `result` | Any | Structured result, or parsed JSON / text |
| `text` | String |  |
| `is_error` | Boolean |  |

- **Control branches:** `done`
- **Permissions:** `network`, `subprocess`, `credentials`
- **Execution policy:** timeout 300s, max attempts 1, not idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `transport` | `stdio` · `http` | `stdio` | stdio: start a local command. http: connect to a Streamable HTTP URL. |
| `command` | string |  | Executable, e.g. npx, uvx, python or docker. |
| `args` | array |  | Arguments, e.g. ["-y", "@modelcontextprotocol/server-everything"]. |
| `env` | object |  | Extra environment variables for the command (non-secret). |
| `secret_env` | secret ref |  | Environment variables filled from secrets, e.g. &#123;"GITHUB_TOKEN": &#123;"$secret": "GITHUB_TOKEN"&#125;&#125;. |
| `cwd` | string |  | Cwd |
| `url` | string |  | Streamable HTTP endpoint, e.g. http://localhost:8000/mcp. |
| `bearer_token` | secret ref |  | Sent as 'Authorization: Bearer …' |
| `headers` | object |  | Extra HTTP headers (non-secret). |
| `timeout_seconds` | number | `60` | Per tool call. |
| `tool` | string |  | Name of the MCP tool to call. |
| `arguments` | object |  | Default arguments; the 'arguments' input is merged on top. |
| `fail_on_tool_error` | boolean | `true` | Fail the node when the tool reports an error (else output it). |

## MCP Server

`agenticmind.agents.mcp_tools` · version 1.0.0

Connects to a Model Context Protocol server and gives an agent all of its tools.

**Typical use.** Connects to a Model Context Protocol server (a local command over stdio, or a Streamable HTTP URL) and gives an agent all of its tools. Use `name_prefix`, `include_tools` and `exclude_tools` to control what the agent sees.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `tools` | Tool | The server's tools (connect to an Agent) |
| `catalog` | JSON | Name, description and input schema per tool |

- **Control branches:** `done`
- **Permissions:** `network`, `subprocess`, `credentials`
- **Execution policy:** timeout 120s, max attempts 2, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `transport` | `stdio` · `http` | `stdio` | stdio: start a local command. http: connect to a Streamable HTTP URL. |
| `command` | string |  | Executable, e.g. npx, uvx, python or docker. |
| `args` | array |  | Arguments, e.g. ["-y", "@modelcontextprotocol/server-everything"]. |
| `env` | object |  | Extra environment variables for the command (non-secret). |
| `secret_env` | secret ref |  | Environment variables filled from secrets, e.g. &#123;"GITHUB_TOKEN": &#123;"$secret": "GITHUB_TOKEN"&#125;&#125;. |
| `cwd` | string |  | Cwd |
| `url` | string |  | Streamable HTTP endpoint, e.g. http://localhost:8000/mcp. |
| `bearer_token` | secret ref |  | Sent as 'Authorization: Bearer …' |
| `headers` | object |  | Extra HTTP headers (non-secret). |
| `timeout_seconds` | number | `60` | Per tool call. |
| `name_prefix` | string |  | Prepended to tool names (e.g. 'github' → github_create_issue); avoids clashes. |
| `include_tools` | array |  | Only these tools (empty = all). |
| `exclude_tools` | array |  | Never these tools. |

## Memory Tool

`agenticmind.agents.tool_memory` · version 1.0.0

Lets an Agent recall long-term memories, or save new ones when 'consent' is true.

**Typical use.** Gives an agent long-term memory: `recall` mode searches memories, `save` mode stores new ones but only when the `consent` input is true.

| Input | Type | Required | Description |
|---|---|---|---|
| `consent` | Boolean | no | save mode: saving works only when this is true |
| `namespace` | String | no | Overrides the config |

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** none
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `mode` | `recall` · `save` | `recall` | recall: the agent may search memories. save: it may store new ones. |
| `name` | string | `recall_memory` | Name the model uses to call the tool. |
| `description` | string | see below | Tells the model when and how to use this tool. |
| `namespace` | string | `default` | Memory group, e.g. one per end user. Recall only sees memories in the same namespace. |
| `top_k` | integer | `5` | Top K |
| `retention_days` | integer | `365` | Days to keep (0 = until deleted). |

<CodeBlock language="text" filename="Default description">

```
Search long-term memory for facts the user shared in earlier conversations (preferences, names, details). Use it before saying you don't know something about the user.
```

</CodeBlock>

## SQL Tool

`agenticmind.semantic.tool_sql` · version 1.0.0

Lets an Agent query a database read-only; the schema is included so it knows the tables.

**Typical use.** Gives an agent a read-only `query_database` tool with the database schema embedded in its description.

| Input | Type | Required | Description |
|---|---|---|---|
| `database` | Database | yes |  |

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** `filesystem`, `database`, `credentials`, `artifacts`
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `name` | string | `query_database` | Name |
| `description` | string | see below | Description |
| `max_rows` | integer | `50` | Max Rows |

<CodeBlock language="text" filename="Default description">

```
Run one read-only SQL SELECT against the business database and get rows back. Only the tables below exist; errors explain what to fix.
```

</CodeBlock>

## Subagent

`agenticmind.agents.subagent` · version 1.0.0

An agent offered as a tool: a supervisor Agent delegates tasks to it (explicit, bounded handoff).

**Typical use.** Wraps an agent as a tool, so a supervisor Agent can delegate a task to it (`{task, context}`). Handoffs are traced, depth is capped at 3, and the sub-agent's tokens and cost count toward the supervisor's budget.

| Input | Type | Required | Description |
|---|---|---|---|
| `tools` | Tool (many) | no | The subagent's own tools |

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** `credentials`
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `provider` | `openrouter` · `openai` · `anthropic` · `gemini` · `azure_openai` · `bedrock` · `mistral` · `groq` · `deepseek` · `together` · `xai` · `huggingface` · `ollama` · `openai_compatible` · `mock` | `openrouter` | Model provider (needs a model that supports tool calling). |
| `model` | string | `google/gemini-3.8-flash` | Model |
| `api_key` | secret ref |  | API key secret, e.g. OPENROUTER_API_KEY |
| `instructions` | string | see below | System instructions. |
| `architecture` | `function_calling` · `react` · `plan_and_execute` | `function_calling` | function_calling: the model calls tools natively (parallel calls allowed) until it answers. react: Thought → Action → Observation steps written as text, visible in the trace and usable with models without native tool calling. plan_and_execute: write a short plan first, run each step with tools, then combine the results. |
| `parallel_tool_calls` | boolean | `true` | Run the tool calls the model makes in one turn at the same time. |
| `max_plan_steps` | integer | `5` | Most steps a plan may have. |
| `max_turns` | integer | `4` | Maximum model calls for one delegated task. |
| `max_tool_calls` | integer | `6` | Max Tool Calls |
| `token_budget` | integer | `30000` | Token Budget |
| `cost_budget_usd` | number | `0.1` | Cost Budget Usd |
| `on_limit` | `fail` · `return_partial` | `return_partial` | return_partial: hand back what the subagent has (with its stop reason) so the supervisor can decide. fail: report the delegation as failed. |
| `tool_timeout_seconds` | number | `30` | Tool Timeout Seconds |
| `temperature` | number | `0.2` | Temperature |
| `max_tokens` | integer | `1500` | Max Tokens |
| `reasoning_effort` | `default` · `none` · `minimal` · `low` · `medium` · `high` · `xhigh` · `max` | `default` | Thinking effort for reasoning models: default keeps the model's own setting; none/minimal/low answer fastest. Applied on OpenRouter, OpenAI, Azure OpenAI, Anthropic and Gemini 3+. |
| `base_url` | string |  | Base Url |
| `name` | string | `researcher` | Name the model uses to call the tool. |
| `description` | string | see below | Tells the model when and how to use this tool. |
| `timeout_seconds` | number | `120` | Time limit for one delegated task. |

<CodeBlock language="text" filename="Default instructions">

```
You are a careful assistant. Use the available tools whenever they help answer accurately, and never invent tool results. When you use document search results, mention the source file and section. Answer concisely.
```

</CodeBlock>

<CodeBlock language="text" filename="Default description">

```
A research specialist. Give it one clear task (and any context it needs); it returns its findings.
```

</CodeBlock>

## Web Fetch Tool

`agenticmind.agents.tool_web_fetch` · version 1.0.0

Lets an agent read public web pages, restricted to the domains you allow.

**Typical use.** Lets an agent read public web pages, restricted to `allowed_domains` (required). Private and cloud-metadata addresses are blocked and every redirect is re-checked. Set `AGENTICMIND_HTTP_USER_AGENT` with contact details for sites such as Wikipedia.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `tool` | Tool |  |

- **Control branches:** `done`
- **Permissions:** none
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `name` | string | `fetch_web_page` | Name the model uses to call the tool. |
| `description` | string | see below | Tells the model when and how to use this tool. |
| `allowed_domains` | array |  | Domains the agent may fetch from, e.g. ['wikipedia.org']. Subdomains are included. Required: the agent cannot reach any other site. |
| `max_chars` | integer | `8000` | Max Chars |
| `timeout_seconds` | number | `15` | Timeout Seconds |

<CodeBlock language="text" filename="Default description">

```
Fetch the text of a public web page by URL. Only pages on the allowed domains can be fetched.
```

</CodeBlock>
