Skip to main content
Glama
ellmos-filecommander-mcp

ellmos-filecommander-mcp

Validate JSON

fc_validate_json
Read-onlyIdempotent

Validates a JSON file and reports detailed errors with line and column positions, so you can quickly locate and fix syntax problems.

Instructions

Validates a JSON file and shows detailed error information.

Args:

  • path (string): Path to the JSON file

Returns:

  • Validation status with line/column on errors

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": "fc_validate_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the JSON file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.5
  2. Removedv1.9.3
  3. First observedv1.7.8

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds only that errors report line/column, which is useful but thin, and says nothing about handling of malformed/non-file paths or size limits.

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 lead sentence is front-loaded and the total length is short. The Args/Returns scaffolding slightly duplicates the schema but does not bury the core statement.

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?

With one required parameter, no output schema, and full annotation coverage, the description does enough to invoke the tool correctly. It falls short on what a 'validation status' payload actually contains and how it relates to the fix tool.

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% and the single 'path' parameter is documented in the schema. The description merely restates the parameter definition, adding no format constraints (relative vs absolute, file extension expectations). Baseline 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 and resource ('Validates a JSON file') plus a secondary behavior (detailed error information). It is clear what the tool does, but it never differentiates itself from the sibling fc_fix_json, which occupies the same problem space.

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 guidance on when to call this versus fc_fix_json, fc_read_file, or fc_preview_file, nor any stated preconditions. The 'validate then fix' workflow is left entirely to inference.

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