Skip to main content
Glama

mechacut

path_normalize

Lexical path normalization to POSIX form (auto posix/windows, . and .. resolution never crossing root, optional lowercase) + name/stem/extension. Never touches the filesystem. Free.

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": {
      "path": "<path>"
    },
    "name": "path_normalize"
  }
}

Input Schema

NameRequiredDescriptionDefault
osNoauto
caseNokeep
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares the operation is purely lexical and never touches the filesystem, and notes that '..' resolution never crosses the root — a meaningful safety property for an agent. It also flags cost ('Free') and that OS mode is auto-detected. It stops short of describing the exact response shape even though no output schema exists.

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?

A single dense sentence with the core operation front-loaded, followed by the key modifiers and the no-filesystem guarantee. It is efficiently compressed, though the telegraphic style and the trailing 'Free.' could be smoother.

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?

For a 3-parameter tool with no annotations and no output schema, the definition covers input behavior well but leaves the return value underspecified — 'name/stem/extension' hints at fields without confirming that a structured object is returned. An agent knows how to call it, but not precisely what it gets back.

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 coverage is 0%, so the description must compensate, and it largely does: 'auto posix/windows' explains the os parameter's default behavior, and 'optional lowercase' explains the case parameter's purpose. The remaining gap is that path's expected input form and the interaction between os=auto detection and explicit values are not spelled out.

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?

States a specific verb+resource pair ('Lexical path normalization to POSIX form') and immediately scopes what it covers: OS flavor detection, '.'/'..' resolution, case folding, plus name/stem/extension extraction. An agent can tell this apart from text_normalize or address_parse because the resource is unambiguously filesystem-path strings handled lexically.

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?

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The only usage signal is implied by the resource ('lexical path normalization') and the 'Never touches the filesystem' disclaimer, which tells the agent this is safe for pure string work rather than actual IO — but the agent must infer that itself.

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.