multi-tool-batch-invocation

multi-tool-batch-invocation is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 42 tokens per session (1,442 once invoked), scanned A, original, MIT.

A method for sending several independent tool requests in one agent turn and running them at the same time.

In plain words
What is it for?
It helps agents inspect multiple files or perform other independent operations concurrently.
Why use it?
It avoids waiting for each unrelated request to finish before starting the next one, reducing back-and-forth delays.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the mas-efficiency-pack plugin — 5 skills shipped together

Good fit It helps agents inspect multiple files or perform other independent operations concurrently.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/multi-tool-batch-invocation
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 alivirgo/Major-AI-Skills --skill multi-tool-batch-invocation
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install mas-efficiency-pack, the plugin that ships this one along with the rest of its 5 skills.

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 multi-tool-batch-invocation

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/multi-tool-batch-invocation/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/multi-tool-batch-invocation)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/multi-tool-batch-invocation"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/multi-tool-batch-invocation/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 multi-tool-batch-invocation

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/multi-tool-batch-invocation"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/multi-tool-batch-invocation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,442 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.00042 $0.01442
Opus 5 $0.00021 $0.00721
Sonnet 5 $0.00008 $0.00288
Haiku 4.5 $0.00004 $0.00144

Measured 9d ago against content hash 444bb733e03a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

multi-tool-batch-invocation 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 9d ago.

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.

plugins/mas-efficiency-pack/skills/multi-tool-batch-invocation/SKILL.md · 137 lines

How it starts

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

Multi-Tool Parallel Batch Invocation Protocol

Overview

When an agent needs to inspect 4 related files (e.g., schema.prisma, auth.ts, routes.ts, and types.ts), naive agents execute 4 sequential back-and-forth turns:

  • Turn 1: Call view_file("schema.prisma") $\rightarrow$ Wait for response
  • Turn 2: Call view_file("auth.ts") $\rightarrow$ Wait for response
  • Turn 3: Call view_file("routes.ts") $\rightarrow$ Wait for response
  • Turn 4: Call view_file("types.ts") $\rightarrow$ Wait for response

Sequential tool calling re-sends the entire conversation transcript 4 separate times, incurring 4 API roundtrips and 15 to 20 seconds of latency.

The Multi-Tool Batch Invocation Protocol leverages modern function calling specifications to emit multiple tool calls in a single turn (tool_calls: [...]), executing independent operations concurrently via asyncio.gather or Promise.all.


Sequential Single-Tool Turns vs. Parallel Batch Tooling

┌─────────────────────────────────────────────────────────────┐
│                 Tool Execution Roundtrips                   │
│                                                             │
│  Sequential Tool Calls (4 Turns / 14,800 Tokens):           │
│  • Turn 1: Reads `schema.prisma` ──► 1 API Roundtrip (3.2s) │
│  • Turn 2: Reads `auth.ts`       ──► 1 API Roundtrip (3.4s) │
│  • Turn 3: Reads `routes.ts`     ──► 1 API Roundtrip (3.5s) │
│  • Turn 4: Reads `types.ts`      ──► 1 API Roundtrip (3.1s) │
│  ↳ 4 Roundtrips, 13.2s total latency, 14,800 tokens billed  │
│                                                             │
│  Parallel Batch Invocation (1 Turn / 4,200 Tokens):         │
│  • Turn 1: Model emits array of 4 `view_file` tool calls    │
│    ↳ Client executes all 4 reads concurrently (0.05s CPU)   │
│  • Turn 2: Model receives all 4 results in 1 batch return   │
│  ↳ 1 Roundtrip, 3.4s total latency (3.8x Faster, 71% Cut!)  │
└─────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 137 lines

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. 9d ago First seen · 137 lines · 42 tokens per session scan A 444bb733e03a

Subscribe to this mod's changes

multi-tool-batch-invocation is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 1,442 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

snip

You are an expert at writing declarative YAML filters for snip, a CLI proxy that reduces LLM token consumption by filtering shell output.

edouard-claude/snip · 0 tokens

azure-pipelines

Expert knowledge for Azure Pipelines development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when securing agents/secrets, configuring YAML builds, migrating from Jenkins…

MicrosoftDocs/Agent-Skills · 116 tokens

azure-arc

Expert knowledge for Azure Arc development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when managing Arc-enabled Kubernetes, data services, Edge Volumes, Agentic Retrieval APIs…

MicrosoftDocs/Agent-Skills · 114 tokens

azure-blob-storage

Expert knowledge for Azure Blob Storage development including troubleshooting, best practices, decision making, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using Blob tiers, lifecycle/immutability, NFS/SFTP mounts, static sites, or SDK/CLI data workflows, and…

MicrosoftDocs/Agent-Skills · 112 tokens

azure-local

Expert knowledge for Azure Local development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when planning Azure Local racks/SDN, disconnected clusters, Arc VMs, GPU workloads, or…

MicrosoftDocs/Agent-Skills · 112 tokens

azure-defender-for-cloud

Expert knowledge for Azure Defender For Cloud development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when securing VMs, containers/AKS, SQL, storage, multi‑cloud connectors, or…

MicrosoftDocs/Agent-Skills · 127 tokens