Skip to main content
Glama

list-resources

Find and access Web3 research materials to support crypto analysis and decision-making.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler for the 'list-resources' tool. Retrieves all resources using storage.getAllResources(), maps them to a list with details (id, url, title, source, contentLength, fetchedAt), formats as JSON text response, with error handling.
    server.tool("list-resources", {}, async () => { try { const resources = storage.getAllResources(); const resourceList = Object.keys(resources).map((id) => ({ id, url: resources[id].url, title: resources[id].title || "No title", source: resources[id].source || "Unknown", contentLength: resources[id].content?.length || 0, fetchedAt: resources[id].fetchedAt, })); return { content: [ { type: "text", text: `Available resources:\n\n${JSON.stringify( resourceList, null, 2 )}`, }, ], }; } catch (error) { return { isError: true, content: [ { type: "text", text: `Error listing resources: ${error}`, }, ], }; } });
  • Registration of the 'list-resources' tool within registerResearchTools function, with empty input schema and inline handler.
    server.tool("list-resources", {}, async () => { try { const resources = storage.getAllResources(); const resourceList = Object.keys(resources).map((id) => ({ id, url: resources[id].url, title: resources[id].title || "No title", source: resources[id].source || "Unknown", contentLength: resources[id].content?.length || 0, fetchedAt: resources[id].fetchedAt, })); return { content: [ { type: "text", text: `Available resources:\n\n${JSON.stringify( resourceList, null, 2 )}`, }, ], }; } catch (error) { return { isError: true, content: [ { type: "text", text: `Error listing resources: ${error}`, }, ], }; } });

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/aaronjmars/web3-research-mcp'

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