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.
| Capability | database.export_store_result |
|---|---|
| Area | Databases |
| Access | changes files |
| Reaches | database, network |
| Rights | write, database-permission, trusted-project |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
storerequired | string | Store id or name. |
commandrequired | string | MongoDB: a find or aggregate command (every page is exported). Redis: key names, one per line. |
database | string | MongoDB: database for the command. |
formatrequired | string | json, jsonl or csv. |
pathrequired | string | Workspace-relative file to write. |
overwrite | boolean | Replace 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.
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 } }}