ibmi-mcp-tool-builder

ibmi-mcp-tool-builder is a skill for Claude Code, Codex from IBM/ibmi-mcp-server. It costs 127 tokens per session (2,539 once invoked), scanned A, original, Apache-2.0.

A guide for creating custom YAML database tools for the IBM i MCP Server. IBM i is an enterprise computer platform, Db2 for i is its database system, and YAML is a human-readable configuration format.

In plain words
What is it for?
Designing, prototyping, writing, and validating read or approved write tools that query Db2 for i through an MCP server.
Why use it?
It turns a requested database question into a parameterised SQL tool and checks the result against the server's required format. It also covers testing the SQL on IBM i before use.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Designing, prototyping, writing, and validating read or approved write tools that query Db2 for i through an MCP server.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ibm/ibmi-mcp-server/ibmi-mcp-tool-builder
About the project

IBM/ibmi-mcp-server is an MCP server and command-line tool that lets AI agents interact with IBM i systems through YAML-defined SQL tools. It provides access to Db2 for i databases for querying system information, monitoring performance, and performing database operations, while the companion CLI uses the same tool definitions. The catalogue instructions support working with this server and its tools.

IBM/ibmi-mcp-server · 92 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add IBM/ibmi-mcp-server --skill ibmi-mcp-tool-builder
Clone the repo
git clone --depth 1 https://github.com/IBM/ibmi-mcp-server

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ibmi-mcp-tool-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/ibm/ibmi-mcp-server/ibmi-mcp-tool-builder/github.svg)](https://agentmods.dev/skills/ibm/ibmi-mcp-server/ibmi-mcp-tool-builder)
Your own site
<a href="https://agentmods.dev/skills/ibm/ibmi-mcp-server/ibmi-mcp-tool-builder"><img src="https://agentmods.dev/badge/skills/ibm/ibmi-mcp-server/ibmi-mcp-tool-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ibmi-mcp-tool-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/ibm/ibmi-mcp-server/ibmi-mcp-tool-builder"><img src="https://agentmods.dev/badge/skills/ibm/ibmi-mcp-server/ibmi-mcp-tool-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,539 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00127 $0.02539
Opus 5.5 $0.00051 $0.01016
Sonnet 5.5 $0.00025 $0.00508
Haiku 4.5 $0.00013 $0.00254

Measured 5d ago against content hash 17b86b85b385, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ibmi-mcp-tool-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate-tools.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ibmi-mcp-tool-builder/SKILL.md · 217 lines

How it starts

The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.

IBM i MCP Tool Builder

Build YAML-defined SQL tools for the IBM i MCP Server. Every tool is a parameterized Db2 for i statement plus metadata the LLM sees. The workflow is: understand → discover → prototype & test → write YAML → validate → start server.

Bundled files (paths relative to this skill directory):

File Purpose
scripts/validate-tools.mjs Validates YAML tool files against the schema plus binding/reference checks
assets/sql-tools-config.json The tool JSON schema (copy of the server's sql-tools-config.json)
references/yaml-reference.md Field reference, parameter rules, and SQL patterns. Read it before writing YAML

1. Understand the request

Pin down before writing SQL:

  • What question should the tool answer, and who calls it (an agent, an ops dashboard)?
  • Which inputs the caller should control → parameters. Everything else is fixed in the SQL.
  • Read-only or write? Default to read-only. Write tools need explicit user approval (see §3).
  • Which file and toolset it belongs to. Ask; default to tools-tmp/<domain>.yaml.

If an existing tools YAML file in the workspace already covers the area, extend it instead of creating a new one.

2. Discover the right SQL service

Prefer IBM i SQL services (QSYS2.*, SYSTOOLS.*, SYSIBMADM.*) over querying system files directly. Never invent tables, columns, or function arguments. Verify every name on the system.

Switch to IBM i Developer mode (Premium Package for i; mode ID ibm-i-developer, use switch_mode) to get these tools:

Tool Use it for
search_sql_examples IBM-provided examples for a service, e.g. QSYS2.ACTIVE_JOB_INFO
search_ibm_i_docs_with_rag Service docs, parameter meanings, release/PTF requirements
get_schema_info Resolve a library/schema name (system vs SQL name)
get_file_info Object/file metadata
execute_sql_statement Run discovery and test queries (§3)

Useful discovery queries for execute_sql_statement:

Read the full file on GitHub · 217 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 217 lines · 127 tokens per session scan A 17b86b85b385

Subscribe to this mod's changes

ibmi-mcp-tool-builder is a skill published in the GitHub repository IBM/ibmi-mcp-server (92 stars, last pushed yesterday), licensed Apache-2.0. It adds 127 tokens to every session and 2,539 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.

Related

ibmi-mcp-tool-builder compared with skills from other repositories

ibmi-mcp-tool-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ibmi-mcp-tool-builderIBM/ibmi-mcp-serverSkill92yesterdayApache-2.0A127Claude Code, Codex
create-prprisma/ormSkill48kyesterdayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill31ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.8ktodayApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
nornicdb-cypher-queriesorneryd/NornicDBSkill931todayMITA79Claude Code, Codex
dsqlawslabs/agent-pluginsSkill9432d agoApache-2.0A246Claude Code