Skip to main content
Glama
finch-shell-mcp
by hlint

Insert or delete bytes

fs_splice
Destructive

Insert or delete bytes at a specified file offset, optionally creating directories, while enforcing hash checks unless forced. Use it for precise binary or text edits without adding newlines.

Instructions

offset is a byte count, start, or end. Provide exactly one of insert or insert_hex. No newline is added. An existing file requires expect_hash unless force is set.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fs_splice"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNopath
forceNoforce
insertNoinsert
offsetNooffset
encodingNoencoding
insert_hexNoinsert_hex
create_dirsNocreate_dirs
expect_hashNoexpect_hash
delete_bytesNodelete_bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior4/5

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

destructiveHint=true already flags mutation, but the description adds important behavioral context: no newline is appended, existing files require expect_hash unless forced, and insert/insert_hex are mutually exclusive. It still omits file-creation, encoding, and atomicity details, so not a 5.

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?

Three terse sentences with little waste, and the key safety rule is stated directly. The opening fragment 'offset is a byte count, start, or end' is cryptic and the purpose is not front-loaded, costing a point.

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

Completeness2/5

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

For a destructive 9-parameter filesystem mutation tool, the description is too sparse: delete_bytes, one of the title's core operations, is never explained, nor are encoding, create_dirs, path, or expected errors. Annotations only supply destructiveHint and there is no output schema to fill the gap.

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

Parameters3/5

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

Schema coverage is nominally 100%, so the baseline is 3, and the description does clarify offset formats, insert/insert_hex exclusivity, and the expect_hash/force relationship. But it leaves delete_bytes, encoding, create_dirs, and path semantics to the schema, whose descriptions are only parameter names.

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 title and name establish that this inserts or deletes bytes, and the description supplies offset and exclusivity constraints. However, it never explicitly names the file resource or distinguishes the operation from fs_write/fs_patch, so it falls short of 5.

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

Usage Guidelines2/5

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

It gives parameter-selection rules such as exactly one of insert/insert_hex and expect_hash unless force is set, but no when-to-use guidance, no when-not guidance, and no alternative sibling recommendations.

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