Skip to main content
Glama
Platano78

Smart-AI-Bridge

by Platano78

batch_modify

Apply one natural-language instruction to multiple files at once, with review-before-write and rollback options.

Instructions

Apply the SAME natural-language instruction independently to each file in files. Use for sweeping consistent edits — 'add JSDoc to every exported function in lib/', 'replace console.log with logger.info'. transactionMode:'all_or_nothing' (default) rolls every file back if any one fails; 'best_effort' keeps the successful edits and reports failures. This tool does NOT find cross-file references — each file is edited in isolation. For symbol renames that must update callers, use refactor. For one file with custom instructions, use modify_file. ⚠️ DESTRUCTIVE when review:false: writes to every file in the batch (per-file backups at <path>.backup.<timestamp>). The default review:true returns the proposed diffs without writing. Returns: shape depends on review. review:true (default): {success, status:'pending_review', filesProcessed, patterns, instructions, modifications:[{filePath, status:'pending_review'|'error', summary, diff, stats, error?}], successCount, failureCount, approval_instructions, tokens_saved}. review:false (auto-write): {success, status:'completed'|'partial', filesProcessed, modifications:[{filePath, status:'written'|'error', summary, stats, error?}], successCount, failureCount}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesFile paths or glob patterns to modify
optionsNo
instructionsYesInstructions to apply to each file
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and excels. It discloses destructive behavior with a warning and backup mechanism, explains transaction semantics (all_or_nothing rollback vs best_effort), and clarifies that default review returns diffs without writing. It also details return shapes for both review modes, going well beyond minimal requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but every sentence earns its place. It is logically structured: purpose first, then usage examples, transaction behavior, exclusions, safety warning, and return shapes. No fluff or repetition; the density is justified by the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (batch editing, transaction modes, review modes) and the absence of an output schema, the description is remarkably complete. It covers use cases, alternatives, safety, transaction semantics, and detailed return shapes. There are no significant gaps for an AI agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaningful context for `transactionMode` and `review`, explaining rollback behavior and the write-vs-preview distinction. It does not elaborate on `backend`, `parallel`, or `stopOnError` beyond schema defaults, so not every parameter is enriched. Overall, it supplements the schema where it matters most.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource: 'Apply the SAME natural-language instruction independently to each file.' It clearly distinguishes from siblings by explicitly stating it does not find cross-file references and naming `refactor` and `modify_file` as alternatives. Examples make the scope unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit guidance: 'Use for sweeping consistent edits' with concrete examples, then states what the tool does NOT do and names alternatives: 'For symbol renames that must update callers, use `refactor`. For one file with custom instructions, use `modify_file`.' This covers both when-to-use and when-not-to-use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Platano78/Smart-AI-Bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server