Sell to State

v0.4.1
com.selltostate/mcp Checked 2 days ago Published 1 month ago

Government tenders, contract awards, buyers and suppliers from official sources in 60+ countries.

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

whoami Check account and plan

Self-introspection: resolve the caller's identity + entitlement + granted scopes. Returns {subject, type, active, plan, scopes, export_cap}. Works when the account has no active plan (active:false), so an agent can check access before it calls a data tool.

submit_onboarding Send the onboarding answers

Send the answers of a new account's onboarding form (whoami gives onboarding_required and the questions). Ask the user the questions and use the answers that the user gives. Show the user all answers and get a yes. Product files are optional: send the text only of files that the user gives you for this form. Sell to State saves the profile, reads the website and the files, and builds the user's first search with a weekly email alert. Returns {status, summary, counts, rows (each with url), app_url, saved_search, next_options}; status generating: call get_onboarding_search with build_id.

ParameterTypeDescription
confirmed *booleanTrue after the user said yes to the answers.
countries *arrayCountry names, slugs or ISO alpha-2 codes, for example ["Kenya", "ZA"].
intent *stringWhat the user wants to do.
sells *stringWhat the company sells, in one line.
company_namestringOnly when the questions ask for it (free-mail address).
company_websitestringThe company website, for example acme.com.
documentsarrayOptional. Product files that the user gave you for this form (spec sheet, catalogue, capability statement), as their text. 40,000 characters in total at most.
intent_otherstringThe user's own words, when intent is other.
job_titlestringOnly when the questions ask for it (free-mail address).
namestringOnly when the questions ask for it.
works_independentlybooleanTrue when the user has no company website.

search_awards Search awards in one country

Search awarded tenders in one country (Postgres), largest amount first, stable paging. Every filter is a property of this schema; country omitted means singapore. A bad value or an unknown argument is an invalid-params error whose data lists every problem (errors[]). Returns {rows, total, page, pageSize}.

ParameterTypeDescription
agencystringBuyer slug, or text in the buyer name (substring).
agency_slugstringBuyer slug, exact match.
amount_maxnumberMaximum awarded amount.
amount_minnumberMinimum awarded amount.
awarded_daysintegerAwarded in the last N days (UTC days).
categorystringSector slug, for example it-software.
countrystringCountry slug. Omitted means singapore.
date_daysintegerPublished or awarded in the last N days (UTC days).
pageintegerPage number, from 1.
page_sizeintegerRows per page, from 1. Default 100; the plan cap and 1,000 apply.
published_daysintegerPublished in the last N days (UTC days).
qstringText in the tender description (substring). A text with boolean syntax (OR, AND, NOT, "a phrase", parentheses, -word) searches the tender title, buyer and supplier instead, as the search q. The last i…
supplierstringText in the supplier name (substring).
supplier_slugstringSupplier slug, exact match.
yearintegerAward year (publication year when the award date is missing).

get_supplier Awards of a supplier

All awards for one supplier (by display-name match).

ParameterTypeDescription
supplier *string

get_agency Awards of an agency

All awards for one agency (by slug or display-name match).

ParameterTypeDescription
agency *string

export Export awards as CSV

Export a filtered award set as CSV, at most 500 rows per call (use the REST /api/v1/awards.csv for larger files). country omitted means singapore. A bad country is an error, not a Singapore file.

ParameterTypeDescription
agencystring
amount_maxinteger
amount_mininteger
categorystring
countrystring
qstring
supplierstring
yearinteger

get_buyer Buyer profile

Buyer (agency) detail by slug: summary stats, yearly spend trend, sector breakdown, and top suppliers.

ParameterTypeDescription
slug *string
countrystringCountry slug, for example united-kingdom. Omitted means singapore.
sup_pageinteger

get_buyer_detail Buyer profile (alias)

Alias of get_buyer (back-compat). Buyer (agency) detail by slug: summary stats, yearly spend trend, sector breakdown, and top suppliers.

ParameterTypeDescription
slug *string
countrystringCountry slug, for example united-kingdom. Omitted means singapore.
sup_pageinteger

get_supplier_detail Supplier profile

Supplier detail by slug: summary stats, yearly awarded trend, sector breakdown, and top buyers.

ParameterTypeDescription
slug *string
buyer_pageinteger
countrystringCountry slug, for example united-kingdom. Omitted means singapore.

get_tender Tender detail

Single tender (award) detail by numeric award_id OR public tender page id, with related awards (same tender / same buyer) and requirements: what a company needs to bid in the tender's country (registration, foreign companies, documents, bid and performance security, law, portal, language, e-signature, complaints, sources, guide_url; null if none). The tender documents take priority over this summary.

ParameterTypeDescription
id *string
countrystringCountry slug, for example united-kingdom. Omitted means singapore.

get_sector Sector profile

Sector detail by slug: summary stats, yearly trend, and active partners (kind=buyers|suppliers).

ParameterTypeDescription
slug *string
countrystringCountry slug, for example united-kingdom. Omitted means singapore.
kindstring
pageinteger

list_buyers Top buyers

Top buyers (agencies) by total spend.

ParameterTypeDescription
countrystringCountry slug, for example united-kingdom. Omitted means singapore.
limitinteger

list_suppliers Top suppliers

Top suppliers by total awarded.

ParameterTypeDescription
countrystringCountry slug, for example united-kingdom. Omitted means singapore.
limitinteger

list_sectors Sector list

The curated sector taxonomy (slug + name).

get_lists My saved lists

List every saved award list the caller (x-api-key owner) can see. Each list has itemCount (tender items only), buyerCount, supplierCount and totalCount (all items). Requires a user API key.

create_list Create a list

Create a new saved award list (personal). Body: name. Requires a user API key.

ParameterTypeDescription
name *string

get_list Open a saved list

One saved list with paginated items joined to award data (description/buyer/supplier/amount/date). Without a plan, each item's award_id and title only. Requires a user API key.

ParameterTypeDescription
id *string
pageinteger
page_sizeinteger

rename_list Rename a list

Rename a saved list. Body: id, name. Requires a user API key (creator or workspace owner).

ParameterTypeDescription
id *string
name *string

delete_list Delete a list

Delete a saved list (and its items). Body: id. Requires a user API key (creator or workspace owner).

ParameterTypeDescription
id *string

add_to_list Add a tender to a list

Add a tender to a saved list. Body: id (list id) + tender_no OR award_id. Idempotent. Requires a user API key.

ParameterTypeDescription
id *string
award_idstring
tender_nostring

remove_from_list Remove a tender from a list

Remove a tender from a saved list. Body: id (list id) + tender_no OR award_id. Requires a user API key.

ParameterTypeDescription
id *string
award_idstring
tender_nostring

get_saved_searches My saved searches

List every saved search the caller (x-api-key owner) can see (personal + shared workspace). Requires a user API key.

get_new_tenders New tenders of a saved search

Tender alerts for an agent: the tenders of one saved tender search that arrived after `cursor`. Returns {events: [] or [one digest: counts by status and country, top 20 tenders, search_url], cursor, truncated, next_check_after}. Keep the returned cursor and pass it on the next call; without a cursor the call covers the last 24 hours. New data arrives once a day (check after next_check_after, about 06:30 UTC). Requires a user API key. Without a plan: the window is at most the last 24 hours, and 10 different saved searches a day (error free_limit after that).

ParameterTypeDescription
saved_search_id *stringId of a saved tender search.
cursorstringThe cursor of the previous call.