Skip to main content
Glama
Menglook
by Menglook

Apply Patch Bundle

apply_patch_bundle

Apply multiple file writes or exact-replacement edits in a single atomic call, bundling up to 50 operations to reduce round trips while ensuring precise, verified file modifications.

Instructions

Apply multiple write or exact-replacement operations in one compact tool call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_modeNoOptional Task Router mode override for this patch bundle.
operationsYes
workspace_idNoOptional workspace id. When omitted, CodexPro binds the authoritative conversation workspace automatically; an explicit unknown or mismatched id is rejected.
conversation_idNoConnector conversation id bound to this workspace. Modern MCP injects it automatically; side-effecting tools require it to match the authoritative binding.
task_instructionNoOriginal user task. Required in progressive mode so Task Router can verify write intent.
workspace_generationNoOptional authoritative workspace generation. When omitted, CodexPro injects the conversation-bound generation; an explicit stale generation is rejected.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tool_resultYes
Behavior3/5

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

With no annotations provided, the description carries the burden of disclosing behavioral traits. It mentions 'exact-replacement' and 'compact tool call' but doesn't disclose the atomicity of operations (are they all-or-nothing?), validation behavior, partial-failure handling, or whether overwrite/replace operations are destructive. Expected_replacements and replace_all are schema fields but their runtime semantics aren't explained. Some useful context is absent.

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

Conciseness4/5

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

The description is a single concise sentence that front-loads the core purpose. It's appropriately short with no filler. It could add one clause about atomicity or use cases without bloating, but as-is it's efficient and earn its length.

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

Completeness3/5

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

The tool has an output schema, which lessens the need to explain return values. But it's a complex batched mutation tool with 6 top-level params, nested operation objects with 8 sub-fields each, and no annotations. The description doesn't cover atomicity, error handling, or the semantics of inner operation fields. For a tool of this complexity, a bit more behavioral context would help, though the schema does carry substantial documentation weight.

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?

Schema description coverage is 83%, so most parameters are already documented with meaningful descriptions (task_mode, workspace_id, conversation_id, task_instruction, workspace_generation). However, the nested operations array's inner fields (overwrite, create_dirs, replace_all, expected_replacements, operation_id) have NO descriptions in the schema, and the tool description doesn't compensate for these. The description does contribute the insight that this is a batched alternative to individual operations.

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

Purpose4/5

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

The description clearly states the tool applies 'multiple write or exact-replacement operations in one compact tool call.' It's a specific verb+resource combination that distinguishes it from siblings like write, edit, and read. However, it doesn't explicitly name those sibling alternatives or clarify how this differs from a single write/edit call beyond batching.

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

Usage Guidelines3/5

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

The description implies batching use ('in one compact tool call') but provides no explicit when-to-use or when-not-to-use guidance. It doesn't mention when to prefer this over individual write/edit calls, nor alternative tools. Sibling tools like write, edit, bash, and git_commit suggest overlap, but no exclusions or selection criteria are provided.

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/Menglook/codexpro-runtime'

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