Skip to main content
Glama

Batch read

read_batch
Read-only

Run up to 8 read-only file operations—list, read, inspect, or search—in one call; items execute in order and one failure does not stop the rest.

Instructions

Run up to 8 read-only ops in one call. operation is the short name (list_files|read_file|get_file_info|search) mapping to list_files|read_file|get_file_info|search; arguments hold exactly that tool's parameters. Use when: you need 2+ reads or mixed read steps. Items run in order and one failing item does not stop the rest. Avoid when: a single read (read_file) or any edit (edit_batch). Output: responses[] each {ok, response | error}, total_bytes_returned.

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": {
      "requests": "<requests>"
    },
    "name": "read_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestsYes1-8 read items; one failing item does not stop the rest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.5.0
    • changedInput schema / properties / requests / items / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "description": "Same as list_files.",
      -        "properties": {
      -          "depth": {
      -            "description": "Tree depth (default 1, max 3).",
      -            "maximum": 3,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "include_ignored": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 also lists ignored folders (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "limit": {
      -            "description": "Max entries (default 200, max 200).",
      -            "maximum": 200,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "relative_path": {
      -            "description": "Workspace-relative ('.' = root); absolute/.. outside it rejected.",
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "list_files",
      -        "description": "Short op name for list_files.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "arguments"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "description": "Same as read_file.",
      -        "properties": {
      -          "end_line": {
      -            "description": "Last line (1-based).",
      -            "maximum": 9007199254740991,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "line_numbers": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 prefixes lines (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "max_bytes": {
      -            "description": "Max bytes returned (default 1 MiB).",
      -            "maximum": 1048576,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "ranges": {
      -            "description": "Disjoint ranges (max 16).",
      -            "items": {
      -              "properties": {
      -                "end_line": {
      -                  "description": "Last line (1-based).",
      -                  "maximum": 9007199254740991,
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "max_bytes": {
      -                  "description": "Max bytes for this range.",
      -                  "maximum": 9007199254740991,
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "start_line": {
      -                  "description": "First line (1-based).",
      -                  "maximum": 9007199254740991,
      -                  "minimum": 1,
      -                  "type": "integer"
      -                }
      -              },
      -              "required": [
      -                "start_line"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 16,
      -            "minItems": 1,
      -            "type": "array"
      -          },
      -          "relative_path": {
      -            "description": "Required (optional here so one bad item fails only itself).",
      -            "type": "string"
      -          },
      -          "start_line": {
      -            "description": "First line (1-based).",
      -            "maximum": 9007199254740991,
      -            "minimum": 1,
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "read_file",
      -        "description": "Short op name for read_file.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "arguments"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "description": "Same as get_file_info.",
      -        "properties": {
      -          "missing_ok": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = answer ok with exists:false for a missing path instead of not_found (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "relative_path": {
      -            "description": "Required (optional here so one bad item fails only itself).",
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "get_file_info",
      -        "description": "Short op name for get_file_info.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "arguments"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "description": "Same as search.",
      -        "properties": {
      -          "case_sensitive": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = case-sensitive (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "context_lines": {
      -            "description": "Context lines per hit (default 0).",
      -            "maximum": 20,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "count_only": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = counts only (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "exclude_glob": {
      -            "description": "rg glob exclusion (same dialect as glob).",
      -            "type": "string"
      -          },
      -          "glob": {
      -            "description": "rg glob filter ('*.ts' = any depth).",
      -            "type": "string"
      -          },
      -          "hybrid": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 tags hits with source (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "include_hidden": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 includes dotfiles (default); 0 skips them.",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "kind": {
      -            "description": "Required: name substring | content | declaration lines.",
      -            "enum": [
      -              "file_name",
      -              "directory_name",
      -              "literal_content",
      -              "definition"
      -            ],
      -            "type": "string"
      -          },
      -          "limit": {
      -            "description": "Max hits (ignored when count_only=1).",
      -            "maximum": 200,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "query": {
      -            "description": "Required; see kind.",
      -            "type": "string"
      -          },
      -          "regex": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = regex query (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "relative_path": {
      -            "description": "Workspace-relative ('.' = root); absolute/.. outside it rejected.",
      -            "type": "string"
      -          },
      -          "whole_word": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = whole-word only (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "search",
      -        "description": "Short op name for search.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "arguments"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "arguments": {
      +        "additionalProperties": {},
      +        "description": "Same as list_files.",
      +        "properties": {
      +          "depth": {
      +            "description": "Tree depth (default 1, max 3).",
      +            "maximum": 3,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "include_ignored": {
      +            "description": "true also lists ignored folders (default false).",
      +            "type": "boolean"
      +          },
      +          "limit": {
      +            "description": "Max entries (default 200, max 200).",
      +            "maximum": 200,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "relative_path": {
      +            "description": "Workspace-relative ('.' = root); absolute/.. outside it rejected.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "list_files",
      +        "description": "Short op name for list_files.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "arguments": {
      +        "additionalProperties": {},
      +        "description": "Same as read_file.",
      +        "properties": {
      +          "end_line": {
      +            "description": "Last line (1-based).",
      +            "maximum": 9007199254740991,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "line_numbers": {
      +            "description": "true prefixes lines (default false).",
      +            "type": "boolean"
      +          },
      +          "max_bytes": {
      +            "description": "Max bytes returned (default 1 MiB).",
      +            "maximum": 1048576,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "ranges": {
      +            "description": "Disjoint ranges (max 16).",
      +            "items": {
      +              "properties": {
      +                "end_line": {
      +                  "description": "Last line (1-based).",
      +                  "maximum": 9007199254740991,
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "max_bytes": {
      +                  "description": "Max bytes for this range.",
      +                  "maximum": 9007199254740991,
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "start_line": {
      +                  "description": "First line (1-based).",
      +                  "maximum": 9007199254740991,
      +                  "minimum": 1,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "start_line"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 16,
      +            "minItems": 1,
      +            "type": "array"
      +          },
      +          "relative_path": {
      +            "description": "Required (optional here so one bad item fails only itself).",
      +            "type": "string"
      +          },
      +          "start_line": {
      +            "description": "First line (1-based).",
      +            "maximum": 9007199254740991,
      +            "minimum": 1,
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "read_file",
      +        "description": "Short op name for read_file.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "arguments": {
      +        "additionalProperties": {},
      +        "description": "Same as get_file_info.",
      +        "properties": {
      +          "missing_ok": {
      +            "description": "true = answer ok with exists:false for a missing path instead of not_found (default false).",
      +            "type": "boolean"
      +          },
      +          "relative_path": {
      +            "description": "Required (optional here so one bad item fails only itself).",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "get_file_info",
      +        "description": "Short op name for get_file_info.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "arguments": {
      +        "additionalProperties": {},
      +        "description": "Same as search.",
      +        "properties": {
      +          "case_sensitive": {
      +            "description": "true = case-sensitive (default false).",
      +            "type": "boolean"
      +          },
      +          "context_lines": {
      +            "description": "Context lines per hit (default 0).",
      +            "maximum": 20,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "count_only": {
      +            "description": "true = counts only (default false).",
      +            "type": "boolean"
      +          },
      +          "exclude_glob": {
      +            "description": "rg glob exclusion (same dialect as glob).",
      +            "type": "string"
      +          },
      +          "glob": {
      +            "description": "rg glob filter ('*.ts' = any depth).",
      +            "type": "string"
      +          },
      +          "hybrid": {
      +            "description": "true tags hits with source (default false).",
      +            "type": "boolean"
      +          },
      +          "include_hidden": {
      +            "description": "true includes dotfiles (default); false skips them.",
      +            "type": "boolean"
      +          },
      +          "kind": {
      +            "description": "Required: name substring | content | declaration lines.",
      +            "enum": [
      +              "file_name",
      +              "directory_name",
      +              "literal_content",
      +              "definition"
      +            ],
      +            "type": "string"
      +          },
      +          "limit": {
      +            "description": "Max hits (ignored when count_only=true).",
      +            "maximum": 200,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "query": {
      +            "description": "Required; see kind.",
      +            "type": "string"
      +          },
      +          "regex": {
      +            "description": "true = regex query (default false).",
      +            "type": "boolean"
      +          },
      +          "relative_path": {
      +            "description": "Workspace-relative ('.' = root); absolute/.. outside it rejected.",
      +            "type": "string"
      +          },
      +          "whole_word": {
      +            "description": "true = whole-word only (default false).",
      +            "type": "boolean"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "search",
      +        "description": "Short op name for search.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changedv4.2.0
    • changedInput schema / properties / requests / items / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "description": "Same as list_files.",
      -        "properties": {
      -          "depth": {
      -            "description": "Tree depth (default 1, max 3).",
      -            "maximum": 3,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "include_ignored": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 also lists ignored folders (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "limit": {
      -            "description": "Max entries (default 200, max 200).",
      -            "maximum": 200,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "relative_path": {
      -            "description": "Workspace-relative ('.' = root); absolute/.. outside it rejected.",
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "list_files",
      -        "description": "Short op name for list_files.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "arguments"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "description": "Same as read_file.",
      -        "properties": {
      -          "end_line": {
      -            "description": "Last line (1-based).",
      -            "maximum": 9007199254740991,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "line_numbers": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 prefixes lines (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "max_bytes": {
      -            "description": "Max bytes returned (default 1 MiB).",
      -            "maximum": 1048576,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "ranges": {
      -            "description": "Disjoint ranges (max 16).",
      -            "items": {
      -              "properties": {
      -                "end_line": {
      -                  "description": "Last line (1-based).",
      -                  "maximum": 9007199254740991,
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "max_bytes": {
      -                  "description": "Max bytes for this range.",
      -                  "maximum": 9007199254740991,
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "start_line": {
      -                  "description": "First line (1-based).",
      -                  "maximum": 9007199254740991,
      -                  "minimum": 1,
      -                  "type": "integer"
      -                }
      -              },
      -              "required": [
      -                "start_line"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 16,
      -            "minItems": 1,
      -            "type": "array"
      -          },
      -          "relative_path": {
      -            "description": "Required (optional here so one bad item fails only itself).",
      -            "type": "string"
      -          },
      -          "start_line": {
      -            "description": "First line (1-based).",
      -            "maximum": 9007199254740991,
      -            "minimum": 1,
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "read_file",
      -        "description": "Short op name for read_file.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "arguments"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "description": "Same as get_file_info.",
      -        "properties": {
      -          "relative_path": {
      -            "description": "Required (optional here so one bad item fails only itself).",
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "get_file_info",
      -        "description": "Short op name for get_file_info.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "arguments"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "arguments": {
      -        "additionalProperties": {},
      -        "description": "Same as search.",
      -        "properties": {
      -          "case_sensitive": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = case-sensitive (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "context_lines": {
      -            "description": "Context lines per hit (default 0).",
      -            "maximum": 20,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "count_only": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = counts only (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "exclude_glob": {
      -            "description": "rg glob exclusion (same dialect as glob).",
      -            "type": "string"
      -          },
      -          "glob": {
      -            "description": "rg glob filter ('*.ts' = any depth).",
      -            "type": "string"
      -          },
      -          "hybrid": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 tags hits with source (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "include_hidden": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 includes dotfiles (default); 0 skips them.",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "kind": {
      -            "description": "Required: name substring | content | declaration lines.",
      -            "enum": [
      -              "file_name",
      -              "directory_name",
      -              "literal_content",
      -              "definition"
      -            ],
      -            "type": "string"
      -          },
      -          "limit": {
      -            "description": "Max hits (ignored when count_only=1).",
      -            "maximum": 200,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "query": {
      -            "description": "Required; see kind.",
      -            "type": "string"
      -          },
      -          "regex": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = regex query (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "relative_path": {
      -            "description": "Workspace-relative ('.' = root); absolute/.. outside it rejected.",
      -            "type": "string"
      -          },
      -          "whole_word": {
      -            "anyOf": [
      -              {
      -                "type": "boolean"
      -              },
      -              {
      -                "maximum": 1,
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            ],
      -            "description": "1 = whole-word only (default 0).",
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "operation": {
      -        "const": "search",
      -        "description": "Short op name for search.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "arguments"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "arguments": {
      +        "additionalProperties": {},
      +        "description": "Same as list_files.",
      +        "properties": {
      +          "depth": {
      +            "description": "Tree depth (default 1, max 3).",
      +            "maximum": 3,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "include_ignored": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 also lists ignored folders (default 0).",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "limit": {
      +            "description": "Max entries (default 200, max 200).",
      +            "maximum": 200,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "relative_path": {
      +            "description": "Workspace-relative ('.' = root); absolute/.. outside it rejected.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "list_files",
      +        "description": "Short op name for list_files.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "arguments": {
      +        "additionalProperties": {},
      +        "description": "Same as read_file.",
      +        "properties": {
      +          "end_line": {
      +            "description": "Last line (1-based).",
      +            "maximum": 9007199254740991,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "line_numbers": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 prefixes lines (default 0).",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "max_bytes": {
      +            "description": "Max bytes returned (default 1 MiB).",
      +            "maximum": 1048576,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "ranges": {
      +            "description": "Disjoint ranges (max 16).",
      +            "items": {
      +              "properties": {
      +                "end_line": {
      +                  "description": "Last line (1-based).",
      +                  "maximum": 9007199254740991,
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "max_bytes": {
      +                  "description": "Max bytes for this range.",
      +                  "maximum": 9007199254740991,
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "start_line": {
      +                  "description": "First line (1-based).",
      +                  "maximum": 9007199254740991,
      +                  "minimum": 1,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "start_line"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 16,
      +            "minItems": 1,
      +            "type": "array"
      +          },
      +          "relative_path": {
      +            "description": "Required (optional here so one bad item fails only itself).",
      +            "type": "string"
      +          },
      +          "start_line": {
      +            "description": "First line (1-based).",
      +            "maximum": 9007199254740991,
      +            "minimum": 1,
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "read_file",
      +        "description": "Short op name for read_file.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "arguments": {
      +        "additionalProperties": {},
      +        "description": "Same as get_file_info.",
      +        "properties": {
      +          "missing_ok": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 = answer ok with exists:false for a missing path instead of not_found (default 0).",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "relative_path": {
      +            "description": "Required (optional here so one bad item fails only itself).",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "get_file_info",
      +        "description": "Short op name for get_file_info.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "arguments": {
      +        "additionalProperties": {},
      +        "description": "Same as search.",
      +        "properties": {
      +          "case_sensitive": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 = case-sensitive (default 0).",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "context_lines": {
      +            "description": "Context lines per hit (default 0).",
      +            "maximum": 20,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "count_only": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 = counts only (default 0).",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "exclude_glob": {
      +            "description": "rg glob exclusion (same dialect as glob).",
      +            "type": "string"
      +          },
      +          "glob": {
      +            "description": "rg glob filter ('*.ts' = any depth).",
      +            "type": "string"
      +          },
      +          "hybrid": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 tags hits with source (default 0).",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "include_hidden": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 includes dotfiles (default); 0 skips them.",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "kind": {
      +            "description": "Required: name substring | content | declaration lines.",
      +            "enum": [
      +              "file_name",
      +              "directory_name",
      +              "literal_content",
      +              "definition"
      +            ],
      +            "type": "string"
      +          },
      +          "limit": {
      +            "description": "Max hits (ignored when count_only=1).",
      +            "maximum": 200,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "query": {
      +            "description": "Required; see kind.",
      +            "type": "string"
      +          },
      +          "regex": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 = regex query (default 0).",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "relative_path": {
      +            "description": "Workspace-relative ('.' = root); absolute/.. outside it rejected.",
      +            "type": "string"
      +          },
      +          "whole_word": {
      +            "anyOf": [
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "maximum": 1,
      +                "minimum": 0,
      +                "type": "integer"
      +              }
      +            ],
      +            "description": "1 = whole-word only (default 0).",
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "operation": {
      +        "const": "search",
      +        "description": "Short op name for search.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "arguments"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Addedv4.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, the description discloses execution order ('Items run in order'), failure isolation ('one failing item does not stop the rest'), the item cap of 8, and the response shape with per-item ok/error and total_bytes_returned. These are the exact behaviors an agent needs to reason about partial failures in a batch.

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 core action, then cleanly segmented into Use when / Avoid when / Output. The only waste is the operation list written twice in the first sentence ('(list_files|read_file|get_file_info|search) mapping to list_files|read_file|get_file_info|search'), which says nothing new the second time.

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?

For a one-parameter batching tool with no output schema, the description covers item limit, supported operations, ordering, per-item error semantics, and the return structure. Nothing needed to invoke or interpret results correctly is missing.

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 100%, so the nested parameter details are already documented. The description adds the delegation contract — operation is a short name mapped to a sibling tool and arguments must be exactly that tool's parameters — which is meaning the schema alone does not convey. The repeated operation enumeration is redundant but the mapping rule is genuinely additive.

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 and resource ('Run up to 8 read-only ops in one call') and enumerates exactly which operations can be batched (list_files|read_file|get_file_info|search). It also explicitly distinguishes itself from read_file and edit_batch, so an agent can select it without opening a sibling schema.

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

Usage Guidelines5/5

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

Has explicit 'Use when' (2+ reads or mixed read steps) and 'Avoid when' (a single read, or any edit) clauses that name the specific alternatives read_file and edit_batch. The routing decision is fully determined by the text.

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