Skip to main content
Glama
test-mcp-guidance.jsโ€ข1.38 kB
#!/usr/bin/env node /** * Test smart guidance through MCP to see response size */ import { createSmartGuidanceTool } from './src/tools/get-smart-guidance.js'; console.log('๐Ÿงช Testing MCP Smart Guidance Response Size'); console.log('=========================================='); const guidanceTool = createSmartGuidanceTool(); try { const result = await guidanceTool.getSmartGuidance( 'Aula sobre mรกquinas simples para alunos do 7ยบ ano', 'Ciรชncias', '7ยบ ano' ); const jsonResponse = JSON.stringify(result, null, 2); console.log('๐Ÿ“Š Response Statistics:'); console.log(' - Total characters:', jsonResponse.length); console.log(' - Total lines:', jsonResponse.split('\n').length); console.log(' - Size in KB:', Math.round(jsonResponse.length / 1024 * 100) / 100); // Check if response is too large (MCP might have limits) if (jsonResponse.length > 50000) { console.log('โš ๏ธ Response might be too large for MCP'); } else if (jsonResponse.length > 20000) { console.log('โš ๏ธ Response is quite large for MCP'); } else { console.log('โœ… Response size seems reasonable for MCP'); } console.log('\n๐Ÿ” Response preview (first 500 chars):'); console.log(jsonResponse.substring(0, 500) + '...'); } catch (error) { console.log('๐Ÿ’ฅ Error:', error.message); } console.log('\n๐Ÿ” Testing complete');

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/rkm097git/euconquisto-composer-mcp-poc'

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