Skip to main content
Glama

Manage documents

manage_documents
Destructive

Read PDF/DOCX/XLSX files, edit DOCX/XLSX directly, and merge, split, extract, or inspect PDFs for structured document tasks.

Instructions

Use this for structured document content: read PDF/DOCX/XLSX, edit DOCX/XLSX directly, or merge, split, extract, or inspect PDFs. DOCX/XLSX edits can replace the input when no separate output is supplied, and PDF write operations create or replace their requested output; read_document itself is read-only. Use read_file for plain line-oriented text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesConcrete local runtime operation to execute in this domain.
parametersNoArguments for the selected operation; validated against that operation’s original closed schema.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.131
    • changedInput schema / allOf
      Previous value: -[
      -  {
      -    "if": {
      -      "properties": {
      -        "operation": {
      -          "const": "read_document"
      -        }
      -      },
      -      "required": [
      -        "operation"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "parameters": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "max_cells": {
      -              "description": "Maximum number of spreadsheet cells to return.",
      -              "type": "number"
      -            },
      -            "path": {
      -              "description": "Document path.",
      -              "type": "string"
      -            },
      -            "sheet": {
      -              "description": "Worksheet name for XLSX.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "path"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "parameters"
      -      ]
      -    }
      -  },
      -  {
      -    "if": {
      -      "properties": {
      -        "operation": {
      -          "const": "edit_spreadsheet"
      -        }
      -      },
      -      "required": [
      -        "operation"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "parameters": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "create": {
      -              "description": "Create a new XLSX at path. Fails if path already exists; do not combine with output.",
      -              "type": "boolean"
      -            },
      -            "edits": {
      -              "description": "Bounded list of spreadsheet edits; each item names a cell/range and the value(s) or formula to write.",
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "cell": {
      -                    "description": "Single A1 cell reference.",
      -                    "type": "string"
      -                  },
      -                  "formula": {
      -                    "description": "Optional formula; for a range it is written to each expanded cell.",
      -                    "type": "string"
      -                  },
      -                  "range": {
      -                    "description": "Rectangular range such as A1:C3.",
      -                    "type": "string"
      -                  },
      -                  "value": {
      -                    "description": "Scalar value for one cell or to fill a range."
      -                  },
      -                  "values": {
      -                    "description": "2D matrix matching the range dimensions.",
      -                    "items": {
      -                      "items": {},
      -                      "type": "array"
      -                    },
      -                    "type": "array"
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "maxItems": 500,
      -              "type": "array"
      -            },
      -            "output": {
      -              "description": "Optional output .xlsx when editing an existing workbook; defaults to replacing input.",
      -              "type": "string"
      -            },
      -            "path": {
      -              "description": "Existing .xlsx path, or the new workbook destination when create=true.",
      -              "type": "string"
      -            },
      -            "sheet": {
      -              "description": "Worksheet name. For create=true, defaults to Sheet1 and becomes the new workbook sheet name.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "path",
      -            "edits"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "parameters"
      -      ]
      -    }
      -  },
      -  {
      -    "if": {
      -      "properties": {
      -        "operation": {
      -          "const": "edit_document"
      -        }
      -      },
      -      "required": [
      -        "operation"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "parameters": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "create": {
      -              "description": "Create a new DOCX at path. Fails if path already exists; do not combine with output.",
      -              "type": "boolean"
      -            },
      -            "operations": {
      -              "description": "Bounded list of structured document operations executed in order.",
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "action": {
      -                    "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
      -                    "enum": [
      -                      "replace",
      -                      "append_paragraph",
      -                      "prepend_paragraph",
      -                      "insert_paragraph_before",
      -                      "insert_paragraph_after",
      -                      "delete_paragraph"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "all": {
      -                    "description": "Apply to all matching paragraphs; default true.",
      -                    "type": "boolean"
      -                  },
      -                  "replacement": {
      -                    "description": "Replacement text for matching document content.",
      -                    "type": "string"
      -                  },
      -                  "search": {
      -                    "description": "Paragraph text substring for replace/insert/delete operations.",
      -                    "type": "string"
      -                  },
      -                  "text": {
      -                    "description": "Paragraph text to append/prepend/insert.",
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "action"
      -                ],
      -                "type": "object"
      -              },
      -              "maxItems": 100,
      -              "type": "array"
      -            },
      -            "output": {
      -              "description": "Optional output .docx path when editing an existing document.",
      -              "type": "string"
      -            },
      -            "path": {
      -              "description": "Existing .docx path, or the new document destination when create=true.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "path",
      -            "operations"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "parameters"
      -      ]
      -    }
      -  },
      -  {
      -    "if": {
      -      "properties": {
      -        "operation": {
      -          "const": "pdf_action"
      -        }
      -      },
      -      "required": [
      -        "operation"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "parameters": {
      -          "additionalProperties": false,
      -          "allOf": [
      -            {
      -              "if": {
      -                "properties": {
      -                  "action": {
      -                    "enum": [
      -                      "annotations",
      -                      "info",
      -                      "split",
      -                      "extract_pages"
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "action"
      -                ]
      -              },
      -              "then": {
      -                "required": [
      -                  "path"
      -                ]
      -              }
      -            },
      -            {
      -              "if": {
      -                "properties": {
      -                  "action": {
      -                    "const": "merge"
      -                  }
      -                },
      -                "required": [
      -                  "action"
      -                ]
      -              },
      -              "then": {
      -                "required": [
      -                  "paths",
      -                  "output"
      -                ]
      -              }
      -            },
      -            {
      -              "if": {
      -                "properties": {
      -                  "action": {
      -                    "const": "extract_pages"
      -                  }
      -                },
      -                "required": [
      -                  "action"
      -                ]
      -              },
      -              "then": {
      -                "required": [
      -                  "pages",
      -                  "output"
      -                ]
      -              }
      -            }
      -          ],
      -          "properties": {
      -            "action": {
      -              "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
      -              "enum": [
      -                "merge",
      -                "split",
      -                "extract_pages",
      -                "annotations",
      -                "info"
      -              ],
      -              "type": "string"
      -            },
      -            "output": {
      -              "description": "Optional permitted output path; when omitted the tool may update the input according to its action.",
      -              "type": "string"
      -            },
      -            "output_dir": {
      -              "description": "Permitted directory for generated output files.",
      -              "type": "string"
      -            },
      -            "pages": {
      -              "description": "Page list/ranges such as 1-3,5.",
      -              "type": "string"
      -            },
      -            "path": {
      -              "description": "Permitted local filesystem path.",
      -              "type": "string"
      -            },
      -            "paths": {
      -              "description": "List of permitted local filesystem paths.",
      -              "items": {
      -                "type": "string"
      -              },
      -              "maxItems": 100,
      -              "minItems": 2,
      -              "type": "array"
      -            },
      -            "pattern": {
      -              "description": "Output filename pattern where supported.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "action"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "parameters"
      -      ]
      -    }
      -  }
      -]New value: +[
      +  {
      +    "if": {
      +      "properties": {
      +        "operation": {
      +          "const": "read_document"
      +        }
      +      },
      +      "required": [
      +        "operation"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "parameters": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "max_cells": {
      +              "description": "Maximum number of spreadsheet cells to return.",
      +              "type": "number"
      +            },
      +            "path": {
      +              "description": "Document path.",
      +              "type": "string"
      +            },
      +            "sheet": {
      +              "description": "Worksheet name for XLSX.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "path"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "parameters"
      +      ]
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "operation": {
      +          "const": "pdf_action"
      +        }
      +      },
      +      "required": [
      +        "operation"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "parameters": {
      +          "additionalProperties": false,
      +          "allOf": [
      +            {
      +              "if": {
      +                "properties": {
      +                  "action": {
      +                    "enum": [
      +                      "annotations",
      +                      "info",
      +                      "split",
      +                      "extract_pages"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "action"
      +                ]
      +              },
      +              "then": {
      +                "required": [
      +                  "path"
      +                ]
      +              }
      +            },
      +            {
      +              "if": {
      +                "properties": {
      +                  "action": {
      +                    "const": "merge"
      +                  }
      +                },
      +                "required": [
      +                  "action"
      +                ]
      +              },
      +              "then": {
      +                "required": [
      +                  "paths",
      +                  "output"
      +                ]
      +              }
      +            },
      +            {
      +              "if": {
      +                "properties": {
      +                  "action": {
      +                    "const": "extract_pages"
      +                  }
      +                },
      +                "required": [
      +                  "action"
      +                ]
      +              },
      +              "then": {
      +                "required": [
      +                  "pages",
      +                  "output"
      +                ]
      +              }
      +            }
      +          ],
      +          "properties": {
      +            "action": {
      +              "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
      +              "enum": [
      +                "merge",
      +                "split",
      +                "extract_pages",
      +                "annotations",
      +                "info"
      +              ],
      +              "type": "string"
      +            },
      +            "output": {
      +              "description": "Optional permitted output path; when omitted the tool may update the input according to its action.",
      +              "type": "string"
      +            },
      +            "output_dir": {
      +              "description": "Permitted directory for generated output files.",
      +              "type": "string"
      +            },
      +            "pages": {
      +              "description": "Page list/ranges such as 1-3,5.",
      +              "type": "string"
      +            },
      +            "path": {
      +              "description": "Permitted local filesystem path.",
      +              "type": "string"
      +            },
      +            "paths": {
      +              "description": "List of permitted local filesystem paths.",
      +              "items": {
      +                "type": "string"
      +              },
      +              "maxItems": 100,
      +              "minItems": 2,
      +              "type": "array"
      +            },
      +            "pattern": {
      +              "description": "Output filename pattern where supported.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "action"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "parameters"
      +      ]
      +    }
      +  }
      +]
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "read_document",
      -  "edit_spreadsheet",
      -  "edit_document",
      -  "pdf_action"
      -]New value: +[
      +  "read_document",
      +  "pdf_action"
      +]
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "description": "Read document structured result for read_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      -    "properties": {
      -      "bytes": {
      -        "description": "Serialized structured-result size when truncation metadata is returned.",
      -        "type": "number"
      -      },
      -      "cells": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "data": {},
      -      "path": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "description": "Bounded JSON preview when the full structured mirror is too large.",
      -        "type": "string"
      -      },
      -      "rows": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "sheet": {
      -        "type": "string"
      -      },
      -      "sheets": {
      -        "items": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "text": {
      -        "type": "string"
      -      },
      -      "truncated": {
      -        "description": "True when the structured mirror was bounded because the result was large.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "description": "Edit spreadsheet structured result for edit_spreadsheet. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      -    "properties": {
      -      "bytes": {
      -        "description": "Serialized structured-result size when truncation metadata is returned.",
      -        "type": "number"
      -      },
      -      "created": {
      -        "type": "boolean"
      -      },
      -      "data": {
      -        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      -      },
      -      "edited_cells": {
      -        "type": "number"
      -      },
      -      "path": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "description": "Bounded JSON preview when the full structured mirror is too large.",
      -        "type": "string"
      -      },
      -      "sheet": {
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Human-readable structured mirror for text-only results.",
      -        "type": "string"
      -      },
      -      "truncated": {
      -        "description": "True when the structured mirror was bounded because the result was large.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "description": "Edit DOCX document structured result for edit_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      -    "properties": {
      -      "bytes": {
      -        "description": "Serialized structured-result size when truncation metadata is returned.",
      -        "type": "number"
      -      },
      -      "changes": {
      -        "type": "number"
      -      },
      -      "created": {
      -        "type": "boolean"
      -      },
      -      "data": {
      -        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      -      },
      -      "operations": {
      -        "type": "number"
      -      },
      -      "path": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "description": "Bounded JSON preview when the full structured mirror is too large.",
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Human-readable structured mirror for text-only results.",
      -        "type": "string"
      -      },
      -      "truncated": {
      -        "description": "True when the structured mirror was bounded because the result was large.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "description": "PDF action structured result for pdf_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "annotation_count": {
      -        "description": "Number of PDF annotations found by the info action.",
      -        "type": "number"
      -      },
      -      "annotations": {
      -        "items": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "bytes": {
      -        "description": "Serialized structured-result size when truncation metadata is returned.",
      -        "type": "number"
      -      },
      -      "data": {
      -        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      -      },
      -      "files": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "inputs": {
      -        "type": "number"
      -      },
      -      "output": {
      -        "type": "string"
      -      },
      -      "output_dir": {
      -        "type": "string"
      -      },
      -      "pages": {
      -        "type": "string"
      -      },
      -      "path": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "description": "Bounded JSON preview when the full structured mirror is too large.",
      -        "type": "string"
      -      },
      -      "source": {
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Human-readable structured mirror for text-only results.",
      -        "type": "string"
      -      },
      -      "truncated": {
      -        "description": "True when the structured mirror was bounded because the result was large.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "description": "Read document structured result for read_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      +    "properties": {
      +      "bytes": {
      +        "description": "Serialized structured-result size when truncation metadata is returned.",
      +        "type": "number"
      +      },
      +      "cells": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "data": {},
      +      "path": {
      +        "type": "string"
      +      },
      +      "preview": {
      +        "description": "Bounded JSON preview when the full structured mirror is too large.",
      +        "type": "string"
      +      },
      +      "rows": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "sheet": {
      +        "type": "string"
      +      },
      +      "sheets": {
      +        "items": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "text": {
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "description": "True when the structured mirror was bounded because the result was large.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "description": "PDF action structured result for pdf_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "annotation_count": {
      +        "description": "Number of PDF annotations found by the info action.",
      +        "type": "number"
      +      },
      +      "annotations": {
      +        "items": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "bytes": {
      +        "description": "Serialized structured-result size when truncation metadata is returned.",
      +        "type": "number"
      +      },
      +      "data": {
      +        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      +      },
      +      "files": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "inputs": {
      +        "type": "number"
      +      },
      +      "output": {
      +        "type": "string"
      +      },
      +      "output_dir": {
      +        "type": "string"
      +      },
      +      "pages": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "preview": {
      +        "description": "Bounded JSON preview when the full structured mirror is too large.",
      +        "type": "string"
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Human-readable structured mirror for text-only results.",
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "description": "True when the structured mirror was bounded because the result was large.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changedv0.2.112
    • changedInput schema / allOf
      Previous value: -[
      -  {
      -    "if": {
      -      "properties": {
      -        "operation": {
      -          "const": "read_document"
      -        }
      -      },
      -      "required": [
      -        "operation"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "parameters": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "max_cells": {
      -              "description": "Maximum number of spreadsheet cells to return.",
      -              "type": "number"
      -            },
      -            "path": {
      -              "description": "Document path.",
      -              "type": "string"
      -            },
      -            "sheet": {
      -              "description": "Worksheet name for XLSX.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "path"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "parameters"
      -      ]
      -    }
      -  },
      -  {
      -    "if": {
      -      "properties": {
      -        "operation": {
      -          "const": "pdf_action"
      -        }
      -      },
      -      "required": [
      -        "operation"
      -      ]
      -    },
      -    "then": {
      -      "properties": {
      -        "parameters": {
      -          "additionalProperties": false,
      -          "allOf": [
      -            {
      -              "if": {
      -                "properties": {
      -                  "action": {
      -                    "enum": [
      -                      "annotations",
      -                      "info",
      -                      "split",
      -                      "extract_pages"
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "action"
      -                ]
      -              },
      -              "then": {
      -                "required": [
      -                  "path"
      -                ]
      -              }
      -            },
      -            {
      -              "if": {
      -                "properties": {
      -                  "action": {
      -                    "const": "merge"
      -                  }
      -                },
      -                "required": [
      -                  "action"
      -                ]
      -              },
      -              "then": {
      -                "required": [
      -                  "paths",
      -                  "output"
      -                ]
      -              }
      -            },
      -            {
      -              "if": {
      -                "properties": {
      -                  "action": {
      -                    "const": "extract_pages"
      -                  }
      -                },
      -                "required": [
      -                  "action"
      -                ]
      -              },
      -              "then": {
      -                "required": [
      -                  "pages",
      -                  "output"
      -                ]
      -              }
      -            }
      -          ],
      -          "properties": {
      -            "action": {
      -              "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
      -              "enum": [
      -                "merge",
      -                "split",
      -                "extract_pages",
      -                "annotations",
      -                "info"
      -              ],
      -              "type": "string"
      -            },
      -            "output": {
      -              "description": "Optional permitted output path; when omitted the tool may update the input according to its action.",
      -              "type": "string"
      -            },
      -            "output_dir": {
      -              "description": "Permitted directory for generated output files.",
      -              "type": "string"
      -            },
      -            "pages": {
      -              "description": "Page list/ranges such as 1-3,5.",
      -              "type": "string"
      -            },
      -            "path": {
      -              "description": "Permitted local filesystem path.",
      -              "type": "string"
      -            },
      -            "paths": {
      -              "description": "List of permitted local filesystem paths.",
      -              "items": {
      -                "type": "string"
      -              },
      -              "maxItems": 100,
      -              "minItems": 2,
      -              "type": "array"
      -            },
      -            "pattern": {
      -              "description": "Output filename pattern where supported.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "action"
      -          ],
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "parameters"
      -      ]
      -    }
      -  }
      -]New value: +[
      +  {
      +    "if": {
      +      "properties": {
      +        "operation": {
      +          "const": "read_document"
      +        }
      +      },
      +      "required": [
      +        "operation"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "parameters": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "max_cells": {
      +              "description": "Maximum number of spreadsheet cells to return.",
      +              "type": "number"
      +            },
      +            "path": {
      +              "description": "Document path.",
      +              "type": "string"
      +            },
      +            "sheet": {
      +              "description": "Worksheet name for XLSX.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "path"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "parameters"
      +      ]
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "operation": {
      +          "const": "edit_spreadsheet"
      +        }
      +      },
      +      "required": [
      +        "operation"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "parameters": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "create": {
      +              "description": "Create a new XLSX at path. Fails if path already exists; do not combine with output.",
      +              "type": "boolean"
      +            },
      +            "edits": {
      +              "description": "Bounded list of spreadsheet edits; each item names a cell/range and the value(s) or formula to write.",
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "cell": {
      +                    "description": "Single A1 cell reference.",
      +                    "type": "string"
      +                  },
      +                  "formula": {
      +                    "description": "Optional formula; for a range it is written to each expanded cell.",
      +                    "type": "string"
      +                  },
      +                  "range": {
      +                    "description": "Rectangular range such as A1:C3.",
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "description": "Scalar value for one cell or to fill a range."
      +                  },
      +                  "values": {
      +                    "description": "2D matrix matching the range dimensions.",
      +                    "items": {
      +                      "items": {},
      +                      "type": "array"
      +                    },
      +                    "type": "array"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "maxItems": 500,
      +              "type": "array"
      +            },
      +            "output": {
      +              "description": "Optional output .xlsx when editing an existing workbook; defaults to replacing input.",
      +              "type": "string"
      +            },
      +            "path": {
      +              "description": "Existing .xlsx path, or the new workbook destination when create=true.",
      +              "type": "string"
      +            },
      +            "sheet": {
      +              "description": "Worksheet name. For create=true, defaults to Sheet1 and becomes the new workbook sheet name.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "path",
      +            "edits"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "parameters"
      +      ]
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "operation": {
      +          "const": "edit_document"
      +        }
      +      },
      +      "required": [
      +        "operation"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "parameters": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "create": {
      +              "description": "Create a new DOCX at path. Fails if path already exists; do not combine with output.",
      +              "type": "boolean"
      +            },
      +            "operations": {
      +              "description": "Bounded list of structured document operations executed in order.",
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "action": {
      +                    "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
      +                    "enum": [
      +                      "replace",
      +                      "append_paragraph",
      +                      "prepend_paragraph",
      +                      "insert_paragraph_before",
      +                      "insert_paragraph_after",
      +                      "delete_paragraph"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "all": {
      +                    "description": "Apply to all matching paragraphs; default true.",
      +                    "type": "boolean"
      +                  },
      +                  "replacement": {
      +                    "description": "Replacement text for matching document content.",
      +                    "type": "string"
      +                  },
      +                  "search": {
      +                    "description": "Paragraph text substring for replace/insert/delete operations.",
      +                    "type": "string"
      +                  },
      +                  "text": {
      +                    "description": "Paragraph text to append/prepend/insert.",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "action"
      +                ],
      +                "type": "object"
      +              },
      +              "maxItems": 100,
      +              "type": "array"
      +            },
      +            "output": {
      +              "description": "Optional output .docx path when editing an existing document.",
      +              "type": "string"
      +            },
      +            "path": {
      +              "description": "Existing .docx path, or the new document destination when create=true.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "path",
      +            "operations"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "parameters"
      +      ]
      +    }
      +  },
      +  {
      +    "if": {
      +      "properties": {
      +        "operation": {
      +          "const": "pdf_action"
      +        }
      +      },
      +      "required": [
      +        "operation"
      +      ]
      +    },
      +    "then": {
      +      "properties": {
      +        "parameters": {
      +          "additionalProperties": false,
      +          "allOf": [
      +            {
      +              "if": {
      +                "properties": {
      +                  "action": {
      +                    "enum": [
      +                      "annotations",
      +                      "info",
      +                      "split",
      +                      "extract_pages"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "action"
      +                ]
      +              },
      +              "then": {
      +                "required": [
      +                  "path"
      +                ]
      +              }
      +            },
      +            {
      +              "if": {
      +                "properties": {
      +                  "action": {
      +                    "const": "merge"
      +                  }
      +                },
      +                "required": [
      +                  "action"
      +                ]
      +              },
      +              "then": {
      +                "required": [
      +                  "paths",
      +                  "output"
      +                ]
      +              }
      +            },
      +            {
      +              "if": {
      +                "properties": {
      +                  "action": {
      +                    "const": "extract_pages"
      +                  }
      +                },
      +                "required": [
      +                  "action"
      +                ]
      +              },
      +              "then": {
      +                "required": [
      +                  "pages",
      +                  "output"
      +                ]
      +              }
      +            }
      +          ],
      +          "properties": {
      +            "action": {
      +              "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
      +              "enum": [
      +                "merge",
      +                "split",
      +                "extract_pages",
      +                "annotations",
      +                "info"
      +              ],
      +              "type": "string"
      +            },
      +            "output": {
      +              "description": "Optional permitted output path; when omitted the tool may update the input according to its action.",
      +              "type": "string"
      +            },
      +            "output_dir": {
      +              "description": "Permitted directory for generated output files.",
      +              "type": "string"
      +            },
      +            "pages": {
      +              "description": "Page list/ranges such as 1-3,5.",
      +              "type": "string"
      +            },
      +            "path": {
      +              "description": "Permitted local filesystem path.",
      +              "type": "string"
      +            },
      +            "paths": {
      +              "description": "List of permitted local filesystem paths.",
      +              "items": {
      +                "type": "string"
      +              },
      +              "maxItems": 100,
      +              "minItems": 2,
      +              "type": "array"
      +            },
      +            "pattern": {
      +              "description": "Output filename pattern where supported.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "action"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "parameters"
      +      ]
      +    }
      +  }
      +]
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "read_document",
      -  "pdf_action"
      -]New value: +[
      +  "read_document",
      +  "edit_spreadsheet",
      +  "edit_document",
      +  "pdf_action"
      +]
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "description": "Read document structured result for read_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      -    "properties": {
      -      "bytes": {
      -        "description": "Serialized structured-result size when truncation metadata is returned.",
      -        "type": "number"
      -      },
      -      "cells": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "data": {},
      -      "path": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "description": "Bounded JSON preview when the full structured mirror is too large.",
      -        "type": "string"
      -      },
      -      "rows": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "sheet": {
      -        "type": "string"
      -      },
      -      "sheets": {
      -        "items": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "text": {
      -        "type": "string"
      -      },
      -      "truncated": {
      -        "description": "True when the structured mirror was bounded because the result was large.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "description": "PDF action structured result for pdf_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "annotation_count": {
      -        "description": "Number of PDF annotations found by the info action.",
      -        "type": "number"
      -      },
      -      "annotations": {
      -        "items": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "bytes": {
      -        "description": "Serialized structured-result size when truncation metadata is returned.",
      -        "type": "number"
      -      },
      -      "data": {
      -        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      -      },
      -      "files": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "inputs": {
      -        "type": "number"
      -      },
      -      "output": {
      -        "type": "string"
      -      },
      -      "output_dir": {
      -        "type": "string"
      -      },
      -      "pages": {
      -        "type": "string"
      -      },
      -      "path": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "description": "Bounded JSON preview when the full structured mirror is too large.",
      -        "type": "string"
      -      },
      -      "source": {
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Human-readable structured mirror for text-only results.",
      -        "type": "string"
      -      },
      -      "truncated": {
      -        "description": "True when the structured mirror was bounded because the result was large.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "description": "Read document structured result for read_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      +    "properties": {
      +      "bytes": {
      +        "description": "Serialized structured-result size when truncation metadata is returned.",
      +        "type": "number"
      +      },
      +      "cells": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "data": {},
      +      "path": {
      +        "type": "string"
      +      },
      +      "preview": {
      +        "description": "Bounded JSON preview when the full structured mirror is too large.",
      +        "type": "string"
      +      },
      +      "rows": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "sheet": {
      +        "type": "string"
      +      },
      +      "sheets": {
      +        "items": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "text": {
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "description": "True when the structured mirror was bounded because the result was large.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "description": "Edit spreadsheet structured result for edit_spreadsheet. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      +    "properties": {
      +      "bytes": {
      +        "description": "Serialized structured-result size when truncation metadata is returned.",
      +        "type": "number"
      +      },
      +      "created": {
      +        "type": "boolean"
      +      },
      +      "data": {
      +        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      +      },
      +      "edited_cells": {
      +        "type": "number"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "preview": {
      +        "description": "Bounded JSON preview when the full structured mirror is too large.",
      +        "type": "string"
      +      },
      +      "sheet": {
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Human-readable structured mirror for text-only results.",
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "description": "True when the structured mirror was bounded because the result was large.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "description": "Edit DOCX document structured result for edit_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      +    "properties": {
      +      "bytes": {
      +        "description": "Serialized structured-result size when truncation metadata is returned.",
      +        "type": "number"
      +      },
      +      "changes": {
      +        "type": "number"
      +      },
      +      "created": {
      +        "type": "boolean"
      +      },
      +      "data": {
      +        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      +      },
      +      "operations": {
      +        "type": "number"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "preview": {
      +        "description": "Bounded JSON preview when the full structured mirror is too large.",
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Human-readable structured mirror for text-only results.",
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "description": "True when the structured mirror was bounded because the result was large.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "description": "PDF action structured result for pdf_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "annotation_count": {
      +        "description": "Number of PDF annotations found by the info action.",
      +        "type": "number"
      +      },
      +      "annotations": {
      +        "items": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "bytes": {
      +        "description": "Serialized structured-result size when truncation metadata is returned.",
      +        "type": "number"
      +      },
      +      "data": {
      +        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      +      },
      +      "files": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "inputs": {
      +        "type": "number"
      +      },
      +      "output": {
      +        "type": "string"
      +      },
      +      "output_dir": {
      +        "type": "string"
      +      },
      +      "pages": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "preview": {
      +        "description": "Bounded JSON preview when the full structured mirror is too large.",
      +        "type": "string"
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Human-readable structured mirror for text-only results.",
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "description": "True when the structured mirror was bounded because the result was large.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changedv0.2.106
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "description": "Read document structured result for read_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      -    "properties": {
      -      "bytes": {
      -        "description": "Serialized structured-result size when truncation metadata is returned.",
      -        "type": "number"
      -      },
      -      "cells": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "data": {},
      -      "path": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "description": "Bounded JSON preview when the full structured mirror is too large.",
      -        "type": "string"
      -      },
      -      "rows": {
      -        "items": {},
      -        "type": "array"
      -      },
      -      "sheet": {
      -        "type": "string"
      -      },
      -      "sheets": {
      -        "items": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "text": {
      -        "type": "string"
      -      },
      -      "truncated": {
      -        "description": "True when the structured mirror was bounded because the result was large.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "description": "PDF action structured result for pdf_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      -    "properties": {
      -      "action": {
      -        "type": "string"
      -      },
      -      "annotations": {
      -        "items": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "bytes": {
      -        "description": "Serialized structured-result size when truncation metadata is returned.",
      -        "type": "number"
      -      },
      -      "data": {
      -        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      -      },
      -      "files": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "inputs": {
      -        "type": "number"
      -      },
      -      "output": {
      -        "type": "string"
      -      },
      -      "output_dir": {
      -        "type": "string"
      -      },
      -      "pages": {
      -        "type": "string"
      -      },
      -      "path": {
      -        "type": "string"
      -      },
      -      "preview": {
      -        "description": "Bounded JSON preview when the full structured mirror is too large.",
      -        "type": "string"
      -      },
      -      "source": {
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Human-readable structured mirror for text-only results.",
      -        "type": "string"
      -      },
      -      "truncated": {
      -        "description": "True when the structured mirror was bounded because the result was large.",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "description": "Read document structured result for read_document. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      +    "properties": {
      +      "bytes": {
      +        "description": "Serialized structured-result size when truncation metadata is returned.",
      +        "type": "number"
      +      },
      +      "cells": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "data": {},
      +      "path": {
      +        "type": "string"
      +      },
      +      "preview": {
      +        "description": "Bounded JSON preview when the full structured mirror is too large.",
      +        "type": "string"
      +      },
      +      "rows": {
      +        "items": {},
      +        "type": "array"
      +      },
      +      "sheet": {
      +        "type": "string"
      +      },
      +      "sheets": {
      +        "items": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "text": {
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "description": "True when the structured mirror was bounded because the result was large.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "description": "PDF action structured result for pdf_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.",
      +    "properties": {
      +      "action": {
      +        "type": "string"
      +      },
      +      "annotation_count": {
      +        "description": "Number of PDF annotations found by the info action.",
      +        "type": "number"
      +      },
      +      "annotations": {
      +        "items": {
      +          "additionalProperties": true,
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "bytes": {
      +        "description": "Serialized structured-result size when truncation metadata is returned.",
      +        "type": "number"
      +      },
      +      "data": {
      +        "description": "Array/scalar payload wrapper used when the natural result is not an object."
      +      },
      +      "files": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "inputs": {
      +        "type": "number"
      +      },
      +      "output": {
      +        "type": "string"
      +      },
      +      "output_dir": {
      +        "type": "string"
      +      },
      +      "pages": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      },
      +      "preview": {
      +        "description": "Bounded JSON preview when the full structured mirror is too large.",
      +        "type": "string"
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Human-readable structured mirror for text-only results.",
      +        "type": "string"
      +      },
      +      "truncated": {
      +        "description": "True when the structured mirror was bounded because the result was large.",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
  4. Addedv0.2.88

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false), the description discloses the exact destructive behavior: DOCX/XLSX edits can replace the input, and PDF write operations create or replace their requested output. It also reassures that read_document itself is read-only. This meaningfully adds safety context that annotations alone do not provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences with no filler. It front-loads the primary use case, packs key behavioral caveats into the second sentence, and closes with a useful sibling pointer. Every sentence earns its place.

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?

The tool has a complex conditional schema with two operations and nested objects, but the description covers the operation families, format support, destructive behavior, and the key alternative. An output schema exists, so return-value details need not be in the description. Nothing an agent needs to correctly invoke the tool 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 description coverage is 100%, so the baseline is 3. The description adds value beyond the schema by explaining the semantics of the output-related parameters: when output is omitted, edits may modify the input, and PDF write operations overwrite the requested output. This enriches understanding of the 'output' and 'path' parameters without needing to restate the schema.

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?

The description opens with a specific scope ('structured document content') and enumerates concrete verbs and resources: read PDF/DOCX/XLSX, edit DOCX/XLSX, and merge/split/extract/inspect PDFs. It also distinguishes itself from the sibling read_file by naming read_file for plain line-oriented text, so an agent can select the correct tool.

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?

The description explicitly states when to use this tool ('Use this for structured document content') and names the alternative with its condition ('Use read_file for plain line-oriented text'). It further guides usage by clarifying when edits can replace the input versus when a separate output is supplied.

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