Skip to main content
Glama
Platano78

Smart-AI-Bridge

by Platano78

batch_modify

Apply one natural-language instruction to multiple files simultaneously. Choose all-or-nothing rollback to keep every file consistent or best-effort to preserve successful edits.

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

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv2.14.0
    • changedInput schema / properties / options / properties / backend / enum
      Previous value: -[
      -  "auto",
      -  "local",
      -  "deepseek",
      -  "glm",
      -  "qwen3",
      -  "gemini",
      -  "groq"
      -]New value: +[
      +  "auto",
      +  "local",
      +  "deepseek",
      +  "glm",
      +  "gemini",
      +  "groq"
      +]
  2. Added
  3. Removedv2.8.1
  4. Changed1 schema field changedv2.6.0
    • changedInput schema / properties / options / properties / transactionMode / description
      Previous value: -"Transaction mode for atomic operations"New value: +"`all_or_nothing` (default, safer): if ANY file fails, every successfully-modified file is restored from its backup and the batch reports failure. `best_effort`: keep the files that succeeded, report which ones failed. Use best_effort only when partial success is acceptable."
  5. Addedv1.3.2

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description fully carries the transparency burden. It discloses destructive behavior when `review:false`, the default `review:true` behavior (returns diffs without writing), per-file backups, and the rollback semantics of `all_or_nothing`. It also clearly states the tool does not find cross-file references.

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?

Although long, the description is densely packed and efficiently organized: purpose first, then usage context, then safety warning, then return shapes. Every sentence adds value—no filler or repetition. The careful structure makes it scannable despite its length.

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?

The description covers all critical aspects of a complex batch tool: purpose, usage boundaries, safety, transaction modes, review modes, return formats, and backup behavior. There is no output schema, so the description correctly includes the full return shapes for both `review:true` and `review:false` scenarios, leaving nothing an agent needs to infer.

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

Parameters5/5

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

While the schema provides descriptions for `files`, `instructions`, and nested options, the description adds critical semantics: the meaning of `transactionMode` (rollback vs best-effort), the safety of the default `review:true`, and the exact return shapes for both review modes. This goes well beyond the schema's bare parameter definitions.

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 states a specific verb-resource pair: 'Apply the SAME natural-language instruction independently to each file in `files`.' It clearly distinguishes itself from siblings by naming `refactor` for cross-file edits and `modify_file` for single-file custom edits, leaving no ambiguity about scope.

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?

It provides explicit when-to-use guidance with concrete examples ('add JSDoc to every exported function', 'replace console.log with logger.info') and explicit when-not-to-use exclusions (cross-file references → `refactor`, single file → `modify_file`). It also explains when to choose `best_effort` vs `all_or_nothing`.

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

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