Skip to main content
Glama

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathNoPath to manuscript directory (defaults to current directory)
current_structureNoDescription of current structure
optimizationNoOptimization goal

Implementation Reference

  • 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", }, }, }, },
  • The switch case in handleTool that registers and dispatches to the suggestReorganization handler.
    case "suggest_reorganization": return this.suggestReorganization(args);
  • 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", }, }, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiaolai/claude-writers-aid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server