Skip to main content
Glama

Path Length and Illegal Character Check

path_length_check
Read-onlyIdempotent

Check Windows file and folder paths before copying, syncing or unzipping files. Send up to 100 paths; get back per path the length (in the UTF-16 units Windows counts) against the 260 MAX_PATH limit (259 characters for a file, 247 for a folder, about 32,767 with long paths or \?), names over 255 characters, illegal characters (< > : " | ? * and control characters), reserved names (CON, PRN, AUX, NUL, COM1-9, LPT1-9, also with an extension like NUL.txt) and names ending in a space or a period, each by part number. Paths are not echoed back. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/path-length-check). Not legal, tax or financial advice.

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_length_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNofile (default; limit 259) or folder (limit 247, room left for an 8.3 file name inside it).file
pathsYesThe paths to check (up to 100), such as C:\Projects\2026\report.docx or \\server\share\folder\file.txt.
long_paths_enabledNotrue when the target machine has long paths turned on (Windows 10 1607 or later, LongPathsEnabled set and the program opts in); the limit becomes about 32,767.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds meaningful disclosure beyond them: an hourly rate limit, the 'too large' error class, an explicit privacy statement (nothing stored, no model, no network), and signed responses with a verification URL. It also warns that paths are not echoed back, which changes how an agent must correlate results to inputs.

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?

Front-loaded with the action and the trigger, then the rule list, then the response contract and error/privacy notes. It is dense but mostly earns its length, with minor noise such as the 'Not legal, tax or financial advice' boilerplate that adds nothing for a path validator.

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?

There is no output schema, and the description compensates by naming the answer fields (ok, verdict, result, rule, does_not, sources, observation, signature, verify) and the failure modes (bad input, too large, hourly limit). Combined with the privacy and signature-verification notes, an agent has enough to call it and interpret the result without guessing.

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 100%, so kind, paths, and long_paths_enabled are already documented in the structured fields, including the 259/247/32767 limit values. The prose restates those same numbers and adds only marginal meaning (that lengths are counted in UTF-16 units and reported per path part), so the baseline of 3 applies.

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 ('Check') and resource ('Windows file and folder paths'), and enumerates the exact rule classes it evaluates: MAX_PATH length, >255-character names, illegal characters, reserved device names, and trailing space/period. What it does not do is distinguish itself from the nearby name-level sibling (file_name_check), which overlaps on the over-255 and reserved-name checks.

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

Usage Guidelines4/5

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

Gives a clear triggering context: run it before copying, syncing, or unzipping files, so an agent knows this is a pre-flight validation step rather than a post-hoc repair. It stops short of exclusions or naming an alternative tool for the cases it does not cover (e.g. plain file-name validity).

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