The idea: a model needs a way to act
A model can write an answer from its input. A tool lets it inspect a file, calculate a value, or ask a service for information. Mini-a includes utilities; MCP is a common protocol for connecting additional tool servers.
Start with built-in file utilities:
mini-a useutils=true goal="Use the file tools to read README.md and summarize this project in three bullets."
Run this in a directory containing a README. The agent must call a file-reading tool to inspect the README. If the task cannot find a file, check the current directory and the path before enabling shell access.
For one MCP connection, try the bundled time server:
mini-a usetools=true mcp="(type: ojob, options: (job: mcps/mcp-time.yaml))" goal="Use the time tool to report the current UTC time."
Expect a tool-backed time answer. An MCP connection error happens before the model can use that service; test the server with mcptest=true. Explore the server catalog next, then MCP proxying when you need several servers.
MCP Integration
MCP (Model Context Protocol) is an open standard that defines how LLMs discover and invoke external tools. Instead of hard-coding tool integrations, mini-a uses MCP servers that expose capabilities through a uniform interface.
mini-a ships with 35 built-in MCP servers covering common tasks such as file operations, web browsing, databases, Kubernetes, finance, office documents, full-text search, A2A agent bridging, OpenAF helpers, and more. Any of them can also be deployed as a standalone containerized HTTP service — see Deploying MCP Servers in Docker & Kubernetes.
STDIO vs HTTP Mode
| Mode | How It Works | Best For |
|---|---|---|
| STDIO | Launches the MCP server as a local child process, communicating over stdin/stdout | Local tools, development, single-user setups |
| HTTP | Connects to a remote MCP server over HTTP/SSE | Shared servers, cloud deployments, team setups |
# STDIO mode (default for built-in servers)
mini-a usetools=true
# HTTP mode (connect to a remote MCP server)
mini-a usetools=true mcp="(type: remote, url: 'https://mcp.example.com/mcp')"
For a complete list of available MCP servers and their capabilities, see the MCP Catalog.
MCP Proxy and Programmatic Tool Calling
When many tools are active, mcpproxy=true can collapse them into a single proxy-dispatch tool to reduce prompt bloat.
mini-a goal="compare release dates across APIs" \
usetools=true mcpproxy=true \
mcp="[(cmd: 'ojob mcps/mcp-time.yaml'), (cmd: 'ojob mcps/mcp-fin.yaml')]" \
useutils=true
Large proxy calls can spill arguments/results to files with argumentsFile and resultToFile=true, and mcpproxytoon=true can serialize spilled object payloads in TOON format for easier scanning.
mini-a can optionally start a localhost bridge that lets generated scripts list/search/call MCP tools in loops and batches.
mini-a useshell=true usetools=true mcpprogcall=true \
mcp="[(cmd: 'ojob mcps/mcp-time.yaml'), (cmd: 'ojob mcps/mcp-web.yaml')]"
Useful controls include mcpprogcallport, mcpprogcallmaxbytes, mcpprogcallresultttl, mcpprogcalltools, and mcpprogcallbatchmax.
Mini-A now prefers scripts when loops, conditional calls, batches or local result processing would save model round trips; simple single requests still use direct MCP calls. With mcpproxy=true, scripts use the downstream tool name from /list-tools. If two connections expose the same name, add a top-level "connection": "c1" (the listed alias) to the call or batch entry. mcpprogcalltools=toolA,toolB limits both discovery and execution, and wrapping a forbidden tool in proxy-dispatch doesn’t grant access. Scripts need useshell=true. Built-in sandboxes expose only the bridge’s private temporary directory, and sandboxnonetwork=true can block the localhost bridge.
When a restrictive tool policy is active, pass proxy call arguments inline, because argumentsFile is rejected there. Rejected utility calls now return targeted corrections (up to three issues with field paths, expected types and small examples) instead of generic errors.
To try an MCP server before wiring it into a goal, run the interactive tester with mini-a mcptest=true mcp="(cmd: 'ojob mcps/mcp-time.yaml')". It lists tools, calls them through guided prompts, and its Show mcp= parameter string option prints the active connection as a SLON string that you can paste straight into mini-a mcp="...".
Choose Show capabilities to inspect the negotiated protocol and available tasks, input requests, skills, resources and prompts. For a script or CI check, run the following from a Mini-A checkout. It checks one connection, verifies advertised skill manifests and exits nonzero on failure. See tasks, input requests and skills to try the example interactively.
mini-a mcptest=true mcptestreport=true mcp="(cmd: 'ojob examples/mcp-report-preview.yaml')"
Flexible Tool System
mini-a provides three categories of tools that the agent can use to accomplish goals:
1. Shell Commands
When enabled, the agent can execute shell commands directly on the host system. Disabled by default for security.
mini-a useshell=true
2. Built-in Utilities
File operations, text search, directory listing, and other common utilities that do not require spawning a shell.
When enabled, Mini Utils provides init, filesystemQuery, filesystemModify, and markdownFiles.
mini-a useutils=true
Use utilsallow and utilsdeny to control which utils are exposed to the agent:
# Expose only specific utils
mini-a useutils=true utilsallow="filesystemQuery,markdownFiles"
# Hide specific utils (applied after utilsallow)
mini-a useutils=true utilsdeny="filesystemModify"
When running in console mode, useutils=true also includes the userInput tool, which enables interactive console prompts (ask, choose, struct) for gathering structured input from the user.
For docs-aware workflows, enable:
mini-a useutils=true mini-a-docs=true
Reading documents and images
useutils=true exposes readDocument and inspectImage in both ordinary and standard utility catalogs. They honor utilsroot, utilsallow, and utilsdeny; shell or write access is not required.
mini-a useutils=true utilsroot=/path/to/files goal="Summarize report.docx and budget.xlsx"
mini-a useutils=true utilsroot=/path/to/files goal="Inspect diagram.png and explain its labels"
readDocument({path, maxChars?, maxBytes?}) extracts text and metadata using the Tika oPack, installed lazily unless preinstalled. Defaults are 30,000 extracted characters and 20 MiB input. Check truncated before treating the result as complete. OCR and embedded-attachment extraction are disabled; spreadsheet text does not promise formula evaluation or cell layout. These size limits do not bound parser memory or execution time.
inspectImage({path, prompt?, detail?, maxBytes?}) sends PNG/JPEG to the vision model’s promptImage interface: modelvisual, then OAF_VISUAL_MODEL, then the main model. Select the slot with /model visual; /models shows it. The default input limit is 10 MiB with a fixed 25-megapixel ceiling; detail defaults to high. It requires a vision-capable model and adapter and does not switch models on failure. debugvisualch records image-analysis traffic, including wiki ingestion. Only the textual result enters agent history.
3. MCP Tools
Extensible tools provided by MCP servers — both built-in and custom.
mini-a usetools=true
Tool Configuration Summary
| Parameter | What It Enables | Default |
|---|---|---|
useshell |
Shell command execution | false |
useutils |
Built-in file and search utilities | true |
mini-a-docs |
Auto-set docs root for Mini Utils markdownFiles when utilsroot is unset |
false |
usetools |
MCP tool servers | true |
shellmaxbytes |
Truncate oversized shell output to keep context stable | 8000 |
shellallowpipes |
Allow shell pipes/redirection/control operators | false |
All three can be combined. When the agent receives a goal, it selects the appropriate tool type based on the task.