Skip to main content
Glama

path-portability

File path portability check across Windows, macOS and Linux — Checks up to 500 relative file paths for names that break or collide on Windows, macOS or Linux: Windows reserved device names (CON.txt, NUL.tar.gz, COM¹), reserved characters, trailing dots and spaces, component and total length limits, and distinct paths that become one file through case folding or NFC/NFD normalization. For an agent that writes files from an archive, a generated tree or a repo

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "paths": "<paths>"
    },
    "name": "path-portability"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesRelative paths with "/" separators. At most 200000 characters in total.
targetsNoDefault: windows, macos and linux.
destinationRootNoDirectory the paths will be created under; counted towards the total path length.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It conveys useful behavioral facts — a hard cap of 500 paths checked and the set of conditions that trigger a finding — which tells an agent this is a non-mutating validator. However it says nothing about the response shape, severity levels, or what happens on paths exceeding the 500 limit, and the trailing sentence is truncated.

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

Conciseness2/5

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

The entire description is one long run-on sentence whose final clause is severed mid-thought, leaving dangling text that reads as an editing error rather than content. The core purpose is front-loaded, but the collapsed structure makes the check list and the usage context hard to scan and the ending is unusable.

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

Completeness4/5

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

For a validator with no annotations and no output schema, the description covers purpose, detection categories, and throughput limits well. The missing pieces are the truncated usage sentence and any statement of what a caller receives back, which matters more here than for a tool with an output schema. The schema itself is fully documented, so the residual gap is limited to the response contract and the cut-off tail.

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 description coverage is 100%, so the baseline is 3. The description adds modest meaning beyond the schema: 'relative file paths' and the 500-item cap reinforce the `paths` parameter's contract, and 'across Windows, macOS and Linux' echoes the `targets` default. It never mentions `destinationRoot`, which matters because it affects total-length calculations.

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?

States a specific verb and resource ('File path portability check across Windows, macOS and Linux') and enumerates the concrete failure classes it detects: reserved device names, reserved characters, trailing dots/spaces, length limits, and case-folding/NFC-NFD collisions. That is far more specific than a generic 'validate paths' tool. It stops short of 5 because it never distinguishes itself from the sibling 'path-rules', so an agent cannot route between the two from the description alone.

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 final clause begins to give usage context ('For an agent that writes files from an archive, a generated tree or a repo') but is cut off mid-sentence, so the intended when-to-use guidance is left half-stated. There is no when-NOT-to-use condition and no mention of alternatives such as path-rules. The implied usage (pre-flighting paths before writing) is inferable but not delivered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources