Skip to content

Line Sort MCP tool

MCP findutils:line_sort

Sort lines alphabetically, numerically, by length, or shuffle them randomly. Ascending or descending, case-sensitive or not.

Needs an API key. Running a tool needs an API key. Keys are not for sale yet: ask for early access. About API keys

Arguments

application/json
  • text

    string required

    Newline-separated input.

  • order

    string optional

    Sort direction. Ignored when mode is "random". One of asc · desc. Default "asc".

  • mode

    string optional

    Comparison mode, or "random" to shuffle. One of alpha · numeric · length · random. Default "alpha".

  • case_sensitive

    boolean optional

    Case-sensitive comparison. Defaults to false. Default false.

  • ignore_leading_whitespace

    boolean optional

    Sort on the line without its indentation. Defaults to true. Default true.

  • trim_lines

    boolean optional

    Trim spaces from both ends of every line before sorting. Defaults to false. Default false.

  • remove_empty

    boolean optional

    Drop empty lines before sorting. Defaults to false. Default false.

  • remove_duplicates

    boolean optional

    Drop repeated lines before sorting, keeping the first copy; compared with case_sensitive. Defaults to false. Default false.

Example arguments

Verified
{
  "text": "banana\napple\ncherry"
}