Skip to main content
Glama
debug_invalid_url.js629 B
#!/usr/bin/env node // Quick test to see what invalid URL returns import { tools } from './src/tools/index.js'; async function testInvalidUrl() { const scrapeTool = tools.find(t => t.name === 'scrape_url'); console.log('Testing invalid URL...'); try { const result = await scrapeTool.execute({ url: 'not-a-valid-url', format: 'text' }); console.log('Result:', JSON.stringify(result, null, 2)); console.log('Success:', result.success); console.log('Error present:', !!result.error); } catch (error) { console.log('Caught error:', error.message); } } testInvalidUrl();

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/NosytLabs/presearch-search-api-mcp'

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