MCP tools
Every tool the Fetlar MCP server offers, with its parameters.
The server offers nine tools. Parameters marked "required" must be given. All paths are on your own computer.
describe_office_file
A quick overview of a file without its full text: the kind, the pages (the Word document, each visible sheet, each visible slide) with titles, table counts and sizes. Call it first when a file may be large.
| Parameter | Type | |
|---|---|---|
path | string | required |
hidden | boolean | also count hidden pages |
read_office_file
Reads a Word, Excel, PowerPoint, CSV, TSV or HTML file as Markdown, text or JSON.
| Parameter | Type | |
|---|---|---|
path | string | required |
format | markdown, text or json | default markdown |
pages | string | for example "2" or "1-3,7". Sheets in Excel, slides in PowerPoint. A Word file is one page |
notes | boolean | false leaves out PowerPoint speaker notes |
slide_numbers | boolean | include slide numbers |
hidden | boolean | include hidden slides, sheets, rows, columns and Word text |
normalize | none, llm or search | llm cleans Arabic text for models |
offset | integer | where to continue when the output was cut |
max_chars | integer | default 60,000 |
Long output comes in parts. The reply says which offset to use next, so a huge workbook cannot flood the assistant's context. For a big workbook, use pages instead of reading everything.
compare_office_files
What changed between two Word, Excel (.xlsx, .xls), CSV or TSV files. It returns a short summary and the same JSON as fetlar diff -f json. It writes nothing.
| Parameter | Type | |
|---|---|---|
old_path | string | required |
new_path | string | required |
formatting | boolean | also report formatting-only changes |
hidden | boolean | include what the author hid |
max_changes | integer | most changes in one reply |
offset | integer | where to continue |
Pairs that cannot be compared are refused with a list of those that can. See Comparing files.
describe_write_format
Gives the exact JSON format for each kind of file, with examples, so a model writes valid content the first time.
| Parameter | Type | |
|---|---|---|
kind | csv, tsv, xlsx, docx, template or all | template gives the placeholder syntax |
write_office_file
Writes a .csv, .tsv, .xlsx or .docx file from JSON.
| Parameter | Type | |
|---|---|---|
path | string | required. Must be inside an allowed folder |
content | object | required. The JSON from describe_write_format |
kind | csv, tsv, xlsx or docx | defaults from the file extension |
overwrite | boolean | replace an existing file |
options | object | writer options |
It returns the absolute path, the size, and what Fetlar reads back from the new file. The assistant should check the read-back against what you asked for.
fill_office_template
Fills a .docx, .dotx, .xlsx or .xltx template that has {{placeholders}}.
| Parameter | Type | |
|---|---|---|
template | string | required |
data | object | required |
path | string | required. The output file |
overwrite | boolean | replace an existing file |
missing | error, leave or empty | what to do with a placeholder that has no value |
One output per call. For a mail merge, the assistant calls it once for each record. It returns the path, the size, warnings (kind, location, message) and a read-back. See Templates.
search_office_files
Full-text search over the folders you indexed with fetlar index add.
| Parameter | Type | |
|---|---|---|
query | string | required |
types | list of strings | for example ["docx", "xlsx"] |
limit | integer | most files to return |
It returns files with the sheet, slide or section that matched, and the matching line. You choose what is indexed. See Search.
index_status
Takes no parameters. Says which folders are indexed, how many files are searchable or skipped, and when the index was last updated.
index_add_folder
Adds a folder to the index and indexes it.
| Parameter | Type | |
|---|---|---|
path | string | required |
name | string | a short name for the folder |
It works only inside a folder you allowed with fetlar index mcp-allow. Otherwise it refuses and tells the assistant how to ask you. Links that lead outside, .., system folders, your whole home folder and the index itself are refused. A call stops with a margin before the time limit and keeps what it read.