suggest_reorganization
Improve manuscript organization by suggesting structural changes to enhance coherence, flow, or complexity based on your current content structure.
Instructions
Suggest better content organization
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "suggest_reorganization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | No | Path to manuscript directory (defaults to current directory) | |
| current_structure | No | Description of current structure | |
| optimization | No | Optimization goal |
Implementation Reference
- src/tools/WriterToolHandlers.ts:161-174 (handler)The main execution logic for the 'suggest_reorganization' tool. It analyzes duplicates and provides reorganization suggestions based on hardcoded logic.
private async suggestReorganization(_args: Record<string, unknown>) { // Get duplicate analysis const duplicates = await this.writersAid.findDuplicates({ similarityThreshold: 0.7, }); return { suggestions: [ "Consider consolidating duplicate content", "Review section balance for better flow", ], duplicates: duplicates.length, }; } - The input schema defining parameters for the 'suggest_reorganization' tool.
{ name: "suggest_reorganization", description: "Suggest better content organization", inputSchema: { type: "object", properties: { project_path: { type: "string", description: "Path to manuscript directory (defaults to current directory)" }, current_structure: { type: "string", description: "Description of current structure" }, optimization: { type: "string", enum: ["coherence", "flow", "complexity"], description: "Optimization goal", }, }, }, }, - src/tools/WriterToolHandlers.ts:28-29 (registration)The switch case in handleTool that registers and dispatches to the suggestReorganization handler.
case "suggest_reorganization": return this.suggestReorganization(args); - src/tools/WriterToolDefinitions.ts:87-102 (registration)The tool definition object in writerToolDefinitions array used for MCP tool registration.
{ name: "suggest_reorganization", description: "Suggest better content organization", inputSchema: { type: "object", properties: { project_path: { type: "string", description: "Path to manuscript directory (defaults to current directory)" }, current_structure: { type: "string", description: "Description of current structure" }, optimization: { type: "string", enum: ["coherence", "flow", "complexity"], description: "Optimization goal", }, }, }, },