Skip to main content
Glama

get_system_json

Retrieve structured JSON data from the Advanced Reasoning MCP Server by specifying a system file name to access metadata and content for analysis.

Instructions

Retrieve a system JSON file by name.

Parameters:

  • name: Name of the system JSON file to retrieve (required)

Returns the complete system JSON data including metadata and content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the system JSON file to retrieve

Implementation Reference

  • Core handler implementation in SystemJSON class: reads the JSON file from disk, parses it, and returns success/data/message.
    async getSystemJSON(name: string): Promise<{ success: boolean; data?: SystemJSONData; message: string }> { try { const fileName = `${name}.json`; const filePath = path.join(this.systemJsonPath, fileName); const jsonContent = await fs.readFile(filePath, 'utf-8'); const data = JSON.parse(jsonContent) as SystemJSONData; return { success: true, data, message: `Retrieved system JSON: ${name}` }; } catch (error) { if ((error as NodeJS.ErrnoException).code === 'ENOENT') { return { success: false, message: `System JSON "${name}" not found` }; } return { success: false, message: `Failed to retrieve system JSON: ${error}` }; } }
  • Handler wrapper in AdvancedReasoningServer: calls core getSystemJSON, formats into MCP tool response format.
    public async getSystemJSON(name: string): Promise<{ content: Array<{ type: string; text: string }>; isError?: boolean }> { try { const result = await this.systemJson.getSystemJSON(name); return { content: [{ type: "text", text: JSON.stringify({ name, success: result.success, message: result.message, data: result.data || null }, null, 2) }], isError: !result.success }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ error: error instanceof Error ? error.message : String(error), status: 'failed' }, null, 2) }], isError: true }; } }
  • Dispatch handler in main CallToolRequestSchema switch statement: extracts args and delegates to reasoningServer.getSystemJSON.
    case "get_system_json": const { name: getSysJsonName } = args as { name: string }; return await reasoningServer.getSystemJSON(getSysJsonName);
  • Tool schema definition: specifies input schema requiring 'name' string parameter.
    const GET_SYSTEM_JSON_TOOL: Tool = { name: "get_system_json", description: `Retrieve a system JSON file by name. Parameters: - name: Name of the system JSON file to retrieve (required) Returns the complete system JSON data including metadata and content.`, inputSchema: { type: "object", properties: { name: { type: "string", description: "Name of the system JSON file to retrieve" } }, required: ["name"] } };
  • src/index.ts:1395-1406 (registration)
    Registration of the tool in the ListToolsRequestHandler response array.
    tools: [ ADVANCED_REASONING_TOOL, QUERY_MEMORY_TOOL, CREATE_LIBRARY_TOOL, LIST_LIBRARIES_TOOL, SWITCH_LIBRARY_TOOL, GET_LIBRARY_INFO_TOOL, CREATE_SYSTEM_JSON_TOOL, GET_SYSTEM_JSON_TOOL, SEARCH_SYSTEM_JSON_TOOL, LIST_SYSTEM_JSON_TOOL ],

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/angrysky56/advanced-reasoning-mcp'

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