Skip to Content
Fetlar
AI agents

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.

ParameterType
pathstringrequired
hiddenbooleanalso count hidden pages

read_office_file

Reads a Word, Excel, PowerPoint, CSV, TSV or HTML file as Markdown, text or JSON.

ParameterType
pathstringrequired
formatmarkdown, text or jsondefault markdown
pagesstringfor example "2" or "1-3,7". Sheets in Excel, slides in PowerPoint. A Word file is one page
notesbooleanfalse leaves out PowerPoint speaker notes
slide_numbersbooleaninclude slide numbers
hiddenbooleaninclude hidden slides, sheets, rows, columns and Word text
normalizenone, llm or searchllm cleans Arabic text for models
offsetintegerwhere to continue when the output was cut
max_charsintegerdefault 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.

ParameterType
old_pathstringrequired
new_pathstringrequired
formattingbooleanalso report formatting-only changes
hiddenbooleaninclude what the author hid
max_changesintegermost changes in one reply
offsetintegerwhere 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.

ParameterType
kindcsv, tsv, xlsx, docx, template or alltemplate gives the placeholder syntax

write_office_file

Writes a .csv, .tsv, .xlsx or .docx file from JSON.

ParameterType
pathstringrequired. Must be inside an allowed folder
contentobjectrequired. The JSON from describe_write_format
kindcsv, tsv, xlsx or docxdefaults from the file extension
overwritebooleanreplace an existing file
optionsobjectwriter 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}}.

ParameterType
templatestringrequired
dataobjectrequired
pathstringrequired. The output file
overwritebooleanreplace an existing file
missingerror, leave or emptywhat 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.

ParameterType
querystringrequired
typeslist of stringsfor example ["docx", "xlsx"]
limitintegermost 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.

ParameterType
pathstringrequired
namestringa 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.

On this page