A Mosaia Tool for listing available datasets from FiloDataBroker, a secure, decentralized marketplace for data trading.
This tool enables AI agents to discover datasets available for querying on the FiloDataBroker platform. The tool requires no parameters and returns a list of all available datasets that can be accessed through the marketplace.
- Register for an account on mosaia.ai
- Fork/copy this repo
- Install the GitHub app to the repo by clicking the "Launch App" button on: https://mosaia.ai/org/mosaia/app/github
- The
.mosaiamanifest file is already configured for FiloDataBroker dataset listing - Validate your
.mosaiamanifest file:npm run validate:manifest - (Optional) Test your tool locally:
npm run start:devin one terminal andnpm run test:requestin another - Push your changes to
main. Once pushed, the deployment script will kick off - Your tool will appear at
https://mosaia.ai/user/YOUR_USERNAME?tab=toolsin about a minute - Add your tool to an agent to enable dataset discovery functionality
This tool is pre-configured with:
- Name: "List FiloDataBroker Datasets"
- Description: Lists available FiloDataBroker datasets for AI agents
- Parameters: None required (returns all available datasets)
- Environment Variables: None required for basic dataset listing
npm run build # Compile TypeScript to JavaScript
npm run start:dev # Start local development server on port 3000
npm run test:request # Test the tool with a sample request- Command Line: Use
npm run test:requestfor quick testing - Postman: Import the collection from
postman/directory - Browser: Access
http://localhost:3000directly
The project includes manifest validation:
npm run validate:manifestThis validates the .mosaia file structure including:
- Tool name and description requirements
- Function schema definition
- Parameter specifications (none for this tool)
.mosaia- Tool manifest defining the FiloDataBroker dataset lister interfacesrc/index.ts- Handler function that processes Mosaia eventssrc/tool-call.ts- Core implementation for listing FiloDataBroker datasetspackage.json- Build configuration and dependencies
- Valid
.mosaiamanifest file - Successful
npm run buildoutputting todist/directory - Main entry point at
dist/index.jsafter build
This tool integrates with FiloDataBroker's API to:
- Discover available datasets in the marketplace
- Provide dataset metadata for AI agent decision-making
- Enable secure, decentralized data access workflows
Once deployed, AI agents can use this tool to explore data availability before initiating data trading operations on the FiloDataBroker platform.