databazaar

v1.5.1
io.github.shagarwal/databazaar Checked 3 hours ago Published 1 month ago

Search and preview datasets publicly.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_datasets

Search the DataBazaar marketplace for datasets matching a natural-language query, with optional filters for category, price, quality score, and pricing type. Returns ranked listings with prices, quality scores, and checkout URLs. When results are empty, log_data_gap can post a bounty to signal demand to sellers.

ParameterTypeDescription
query *stringNatural language search query describing the data needed
categorystringFilter by category: geographic, pricing, sensor, images, text, financial, scientific, social, retail, other
limitinteger
max_pricenumberMaximum price in USD — omit to include all prices
min_quality_scorenumberMinimum assessed sample structure score (0-100); unassessed listings are excluded. See https://databazaar.io/quality for the rubric and limitations.
pricing_typestring

get_dataset

Get full metadata for a specific dataset — schema, column counts, quality score, price anchoring, and a forwardable purchase pitch. Includes a checkout_url for one-click human purchase and a human_pitch field for operator messaging.

ParameterTypeDescription
dataset_id *stringThe dataset ID to retrieve

preview_sample

Preview sample rows of a dataset to verify it contains the expected columns, format, and quality. Returns a signed download URL for ~50 rows plus the schema. Pass an optional question to get a synthesized answer from the sample (e.g. "average price in 2024") — no purchase required.

ParameterTypeDescription
dataset_id *stringThe dataset ID to preview
questionstringOptional natural-language question to answer from the sample (e.g. "average rent in SF", "count of records per state"). Returns a synthesized_answer field with deterministic aggregates if the question…

find_data_for_task

Given a free-text research or analysis task, return DataBazaar datasets ranked by relevance. More targeted than search_datasets — each result includes a why_relevant explanation tailored to the task description.

ParameterTypeDescription
task_description *stringDescribe the goal — e.g. "train a model to predict apartment rent in SF using 2024 listings"
budget_usdnumberMaximum budget in USD — omit to include all price ranges

log_data_gap

Record an unmet data need on DataBazaar. When a suggested price is provided, this also creates a bounty listing visible to sellers. Returns a message_for_user string suitable for forwarding to the operator, including the bounty URL.

ParameterTypeDescription
description *stringDetailed description of the data needed — format, time range, geography, etc.
query *stringThe search query or data need that returned no results
suggested_price_usdnumberSuggested bounty price in USD (default $25 if not provided)

check_coverage

Check whether a known public data source (e.g. "noaa", "data.gov", "census.gov") is already on DataBazaar. Returns covered=true and matching datasets when the source is available; otherwise log_data_gap can record demand.

ParameterTypeDescription
source_namestringShort name of the data source (e.g. "noaa", "census", "data.gov")
source_urlstringFull URL of the data source (e.g. "https://noaa.gov") — will be normalized

buy_now

Authorize a one-time purchase of a dataset on the DataBazaar marketplace. Free datasets ($0) require no payment method and are immediately accessible. Paid datasets are charged via Stripe Checkout against the operator's saved card or a payment_method_id. DataBazaar is a marketplace; funds move through Stripe Connect to the seller and the platform fee is 3%. Call preview_sample first to verify the dataset matches the operator's need.

ParameterTypeDescription
dataset_id *stringThe dataset ID to purchase
payment_method_idstringStripe payment method ID (pm_...). Not needed for free ($0) datasets. Optional for paid datasets if a default card is saved for this operator.

list_bounty_reviews

List submissions the current verified agent is authorized to review, oldest first, with due dates and payment next actions.

ParameterTypeDescription
filterstring
limitinteger
offsetinteger
updated_sincestring

get_bounty_submission

Read an authorized submission, its review version, requirements, feedback, and settlement timeline. Does not expose full unpaid files.

ParameterTypeDescription
submission_id *string

preview_bounty_submission

Get a temporary URL for the safe submission sample. Review the requirements and sample before authorizing a purchase.

ParameterTypeDescription
bounty_id *string
submission_id *string

review_bounty_submission

Start review, request changes, decline, or extend once. Requires the current review version; a stale version returns a conflict. This tool does not authorize payment.

ParameterTypeDescription
action *string
submission_id *string
version *integer
reasonstring

accept_bounty_submission

Explicitly authorize the displayed reward for ONE submission. Multiple winners are allowed unless an optional cap is configured. Seller setup or payment authentication may be required; accepted is true only after funding succeeds. Resume the same submission to continue an existing purchase; never assume selection means payment completed.

ParameterTypeDescription
amount_cents *integer
submission_id *string
version *integer

get_download_url

Get a signed, time-limited (1 hour) download URL for a dataset the agent already has access to. All full downloads require account authentication. For free ($0) datasets, pass dataset_id; for paid datasets, pass purchase_id from a completed buy_now. URLs expire after 1 hour — call again for a fresh one. When retrieval_url is provided, prefer it for observed delivery and include the same account bearer token only on the DataBazaar API host. A manifest requires choosing files; one file need not be the whole dataset.

ParameterTypeDescription
dataset_idstringDataset ID — use this for free ($0) datasets. Account authentication required; no purchase needed.
purchase_idstringPurchase ID from buy_now — use this for paid datasets.

list_purchases

List datasets purchased by this agent with status, prices, and download availability. Useful for spending audits, deduplicating before buy_now, or building a purchase summary for the operator.

ParameterTypeDescription
limitinteger
statusstringFilter by purchase status — omit to see all

get_purchase_receipt

Get a cost-benefit receipt for a purchase: price paid, estimated scraping hours saved, and equivalent human-labor cost. The human_summary field is a one-liner suitable for forwarding to the operator (e.g. "$9 spent, ~6h scraping saved").

ParameterTypeDescription
purchase_id *stringThe purchase ID to generate a receipt for

share_finding

Create a shareable finding record derived from analysis of a DataBazaar dataset. Returns a share_url the operator can send to their team. Public findings also help others discover the underlying dataset.

ParameterTypeDescription
dataset_id *stringThe dataset used to generate this finding
summary *string1-3 sentence summary of what was discovered
publicbooleanWhether to make the finding publicly discoverable (default true)

suggest_listing

Propose a dataset (e.g. produced as a research byproduct) for listing on DataBazaar. Creates a draft pending approval and returns an approval URL the operator can click to publish. The message_for_user field includes the approval link and suggested price.

ParameterTypeDescription
category *stringCategory: geographic, pricing, sensor, images, text, financial, scientific, social, retail, other
description *stringWhat the dataset contains, its source, format, and time range
sample_data *stringFirst ~20 rows of the dataset as a string (CSV or JSON)
title *stringDataset title — clear, searchable, e.g. "NYC Parking Violations 2024 (CSV)"
suggested_price_usdnumberSuggested listing price in USD — omit to let the operator decide

contact_seller

Send a message to a dataset seller to ask questions before purchasing — about freshness, schema details, geographic coverage, or update frequency. Messaging is free and does not require a prior purchase. Sellers typically respond within 24 hours.

ParameterTypeDescription
message *stringThe question for the seller — be specific about what you need to know
seller_id *stringThe seller user ID — found in the seller field of any dataset response
subject *stringBrief subject line, e.g. "Question about SF Rent 2024 dataset"
dataset_idstringThe dataset being asked about — helps the seller answer in context

create_listing

Create a new draft dataset listing on DataBazaar and return its dataset_id. Set price (USD) or price_cents for a paid listing — omitting both creates a FREE listing. After creating, use get_upload_urls to upload files, then publish_listing to go live.

ParameterTypeDescription
description *stringDataset description
title *stringDataset title
auction_configobjectRequired for auction or hybrid pricing
categorystringCategory: geographic, pricing, sensor, images, text, financial, scientific, social, retail, other
documentationobject
licenseOptional custom reuse terms/license name. If this and license_url are blank, accepted listing terms grant Open Use.
pricenumberPrice in USD (e.g. 19). Mutually exclusive with price_cents.
price_centsintegerPrice in integer cents (e.g. 1900 = $19.00). Mutually exclusive with price.
pricing_typestringPricing model. Inferred as buy_it_now when a positive price is given; defaults to free only when no price is supplied.
schemaobjectData schema describing columns/fields. Set { "format": "zip" } when uploading an archive.
tagsarrayKeyword tags for discoverability

get_upload_urls

Provision signed upload URLs for a draft listing. Returns URLs for the sample and full dataset files. PUT file bytes directly to the returned upload_url, then call confirm_upload with the returned path.

ParameterTypeDescription
dataset_id *stringThe draft dataset ID

confirm_upload

Confirm a file has been uploaded to its signed URL and trigger automatic sample generation (drafts only). Pass the full_data_path returned by get_upload_urls and the file format — use format "zip" for archives so the preview is generated from the archive contents. Poll get_listing_status until the sample is ready before publishing.

ParameterTypeDescription
dataset_id *stringThe draft dataset ID
full_data_path *stringThe storage path from get_upload_urls (e.g. "{ownerId}/{datasetId}/full")
formatstringFormat of the uploaded file. Strongly recommended — the upload path has no extension.

get_listing_status

Get the current status of a listing or draft. Used to poll for sample-generation completion (check sample_file_path or data_profile.auto_sample_status) before publishing.

ParameterTypeDescription
dataset_id *stringThe dataset ID

update_listing

Update metadata or pricing on a draft OR active listing. The correct API route is chosen from the listing's current status. To change the price of a live listing pass price (USD) or price_cents.

ParameterTypeDescription
dataset_id *stringThe dataset ID to update
categorystringNew category
descriptionstringNew description
documentationobject
licenseOptional custom reuse terms/license name. If this and license_url are blank, accepted listing terms grant Open Use.
listing_terms_versionstringVersion of listing terms explicitly accepted by the supplier
pricenumberPrice in USD (e.g. 19). Mutually exclusive with price_cents.
price_centsintegerPrice in integer cents (e.g. 1900 = $19.00). Mutually exclusive with price.
pricing_typestringPricing model. Inferred as buy_it_now when a positive price is given; defaults to free only when no price is supplied.
schemaobjectUpdated data schema
tagsarrayNew tags
titlestringNew title
tos_confirmedbooleanConfirm authorization to accept https://databazaar.io/legal/terms#dataset-reuse: absent custom reuse terms, permit commercial use, modification, redistribution and model training without attribution.

set_schema

Set or update the data schema for a draft or active listing. Define the columns, types, and descriptions so buyers know what fields the dataset contains.

ParameterTypeDescription
dataset_id *stringThe dataset ID
schema *objectSchema object describing columns/fields. Example: { "columns": [{ "name": "id", "type": "integer" }, { "name": "email", "type": "string" }] }

publish_listing

Publish a draft listing to the marketplace. Requires: full dataset uploaded (get_upload_urls + confirm_upload), sample generation complete (poll get_listing_status), and owner verification. Requires documentation.source_name and explicit acceptance of the current listing terms: https://databazaar.io/legal/terms#dataset-reuse. Without custom terms, Open Use allows commercial use, modification, redistribution, and model training without attribution. The listing then goes through a content scan before becoming publicly visible.

ParameterTypeDescription
dataset_id *stringThe draft dataset ID to publish
listing_terms_version *stringVersion of listing terms explicitly accepted by the supplier
tos_confirmed *booleanConfirm authorization to accept https://databazaar.io/legal/terms#dataset-reuse: absent custom reuse terms, permit commercial use, modification, redistribution and model training without attribution.

query_dataset

Run a structured filter query against a queryable dataset and return matching rows. Useful for extracting a subset without downloading the full dataset. Returns rows as a JSON array (max 10,000 per call).

ParameterTypeDescription
dataset_id *stringThe dataset ID to query
limitintegerMaximum rows to return (capped at 10,000).
selectarrayColumns to return. Omit to return all columns.
wherearrayFilter clauses combined with AND. Maximum 16 clauses per query.