Skip to main content
Glama

Filesystem MCP Server

by rawr-ai

xml_to_json_string

Convert XML files to JSON strings directly for quick content inspection without file creation. Specify input path and max bytes to read. Supports optional XML parsing settings like preserving property order.

Instructions

Convert an XML file to a JSON string and return it directly. This is useful for quickly inspecting XML content as JSON without creating a new file. Requires maxBytes parameter (default 10KB). Uses fast-xml-parser for conversion. The input path must be within allowed directories. This tool is fully functional in both readonly and write modes (respecting maxBytes) since it only reads the XML file and returns the parsed data.

Input Schema

NameRequiredDescriptionDefault
maxBytesYesMaximum bytes to read from the XML file. Must be a positive integer. Handler default: 10KB.
optionsNo
xmlPathYesPath to the XML file to convert

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "maxBytes": { "description": "Maximum bytes to read from the XML file. Must be a positive integer. Handler default: 10KB.", "exclusiveMinimum": 0, "type": "integer" }, "options": { "additionalProperties": false, "default": {}, "properties": { "ignoreAttributes": { "default": false, "description": "Whether to ignore attributes in XML", "type": "boolean" }, "preserveOrder": { "default": true, "description": "Whether to preserve the order of properties", "type": "boolean" } }, "type": "object" }, "xmlPath": { "description": "Path to the XML file to convert", "type": "string" } }, "required": [ "xmlPath", "maxBytes" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rawr-ai/mcp-filesystem'

If you have feedback or need assistance with the MCP directory API, please join our Discord server