Skip to content

export_store_result

MCP tools › Databases

Export a MongoDB find/aggregate result (all pages) or Redis keys (names one per line; values read by type and bounded) as JSON, JSON Lines or CSV into a workspace file. Needs read-data on the store and the write right; an existing file is replaced only with overwrite: true.

Its results carry text from database: the client is told to treat that as data, never as instructions.

Capabilitydatabase.export_store_result
AreaDatabases
Accesschanges files
Reachesdatabase, network
Rightswrite, database-permission, trusted-project
Dry runnone

Arguments

ArgumentTypeDescription
storerequiredstringStore id or name.
commandrequiredstringMongoDB: a find or aggregate command (every page is exported). Redis: key names, one per line.
databasestringMongoDB: database for the command.
formatrequiredstringjson, jsonl or csv.
pathrequiredstringWorkspace-relative file to write.
overwritebooleanReplace an existing file.

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project export_store_result '{"store":"<string>","command":"<string>","format":"<string>","path":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"store",
"command",
"format",
"path"
],
"properties": {
"store": {
"description": "Store id or name.",
"type": "string"
},
"command": {
"description": "MongoDB: a find or aggregate command (every page is exported). Redis: key names, one per\nline.",
"type": "string"
},
"database": {
"description": "MongoDB: database for the command.",
"type": [
"string",
"null"
],
"default": null
},
"format": {
"description": "`json`, `jsonl` or `csv`.",
"type": "string"
},
"path": {
"description": "Workspace-relative file to write.",
"type": "string"
},
"overwrite": {
"description": "Replace an existing file.",
"type": [
"boolean",
"null"
],
"default": null
}
}
}