Skip to main content
Glama
xiaolai
by xiaolai

trace_reference_chain

Track how concepts connect across linked documents in your manuscript to maintain consistency and verify logical flow.

Instructions

Follow concept through linked documents

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathNoPath to manuscript directory (defaults to current directory)
start_fileYesStarting file
end_fileYesTarget file
conceptNoConcept to track

Implementation Reference

  • The primary handler function that implements the 'trace_reference_chain' tool logic. It extracts arguments (start_file, end_file, concept) and returns a structured response with a mock chain analysis.
    private async traceReferenceChain(args: Record<string, unknown>) {
      const startFile = args.start_file as string;
      const endFile = args.end_file as string;
      const concept = args.concept as string | undefined;
    
      return {
        startFile,
        endFile,
        concept,
        chain: [],
        message: "Reference chain analysis",
      };
    }
  • The JSON schema defining the input parameters and structure for the 'trace_reference_chain' tool.
    {
      name: "trace_reference_chain",
      description: "Follow concept through linked documents",
      inputSchema: {
        type: "object",
        properties: {
          project_path: { type: "string", description: "Path to manuscript directory (defaults to current directory)" },
          start_file: { type: "string", description: "Starting file" },
          end_file: { type: "string", description: "Target file" },
          concept: { type: "string", description: "Concept to track" },
        },
        required: ["start_file", "end_file"],
      },
  • The dispatch case in the central handleTool method that routes calls to the specific traceReferenceChain handler.
    case "trace_reference_chain":
      return this.traceReferenceChain(args);

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