Sell to State
v0.4.1Government 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.
| Parameter | Type | Description |
|---|---|---|
confirmed * | boolean | True after the user said yes to the answers. |
countries * | array | Country names, slugs or ISO alpha-2 codes, for example ["Kenya", "ZA"]. |
intent * | string | What the user wants to do. |
sells * | string | What the company sells, in one line. |
company_name | string | Only when the questions ask for it (free-mail address). |
company_website | string | The company website, for example acme.com. |
documents | array | Optional. 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_other | string | The user's own words, when intent is other. |
job_title | string | Only when the questions ask for it (free-mail address). |
name | string | Only when the questions ask for it. |
works_independently | boolean | True when the user has no company website. |
get_onboarding_search Get the first search
The state of the first search that submit_onboarding started. Returns the same body as submit_onboarding; status generating: call again in 15 seconds.
| Parameter | Type | Description |
|---|---|---|
build_id * | string | build_id from submit_onboarding. |
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}.
| Parameter | Type | Description |
|---|---|---|
agency | string | Buyer slug, or text in the buyer name (substring). |
agency_slug | string | Buyer slug, exact match. |
amount_max | number | Maximum awarded amount. |
amount_min | number | Minimum awarded amount. |
awarded_days | integer | Awarded in the last N days (UTC days). |
category | string | Sector slug, for example it-software. |
country | string | Country slug. Omitted means singapore. |
date_days | integer | Published or awarded in the last N days (UTC days). |
page | integer | Page number, from 1. |
page_size | integer | Rows per page, from 1. Default 100; the plan cap and 1,000 apply. |
published_days | integer | Published in the last N days (UTC days). |
q | string | Text 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… |
supplier | string | Text in the supplier name (substring). |
supplier_slug | string | Supplier slug, exact match. |
year | integer | Award year (publication year when the award date is missing). |
get_supplier Awards of a supplier
All awards for one supplier (by display-name match).
| Parameter | Type | Description |
|---|---|---|
supplier * | string |
get_agency Awards of an agency
All awards for one agency (by slug or display-name match).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
agency | string | |
amount_max | integer | |
amount_min | integer | |
category | string | |
country | string | |
q | string | |
supplier | string | |
year | integer |
get_buyer Buyer profile
Buyer (agency) detail by slug: summary stats, yearly spend trend, sector breakdown, and top suppliers.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
country | string | Country slug, for example united-kingdom. Omitted means singapore. |
sup_page | integer |
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.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
country | string | Country slug, for example united-kingdom. Omitted means singapore. |
sup_page | integer |
get_supplier_detail Supplier profile
Supplier detail by slug: summary stats, yearly awarded trend, sector breakdown, and top buyers.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
buyer_page | integer | |
country | string | Country 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
country | string | Country 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).
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
country | string | Country slug, for example united-kingdom. Omitted means singapore. |
kind | string | |
page | integer |
search Search tenders, buyers and suppliers
Runs a search and returns the rows. It does not plan: give it scope, q and filters, your own or the ones from plan_search unchanged. Faceted full-text search over one collection (scope). Every filter is a property of this schema, the same params as REST GET /api/v1/search; values of a fixed list are matched in any case. A bad value or an unknown argument is an invalid-params error whose data lists every problem (errors[]). Tender hits carry lifecycle, deadline_at, accepts_bids and source_url when the source gives them. Returns {hits, found, page, per_page, facets}.
| Parameter | Type | Description |
|---|---|---|
accepts_bids | boolean | true: open tenders, minus the ones whose bid deadline has passed. Most sources give no deadline; those open tenders stay in. To find open tenders, lifecycle=open is enough. |
added_after | integer | Unix seconds. Only tenders added to Sell to State after this time. With sort=added_desc, a polling trigger keeps the time of its last run and asks for the rows after it. |
amount_max | number | Maximum amount. |
amount_min | number | Minimum amount. |
awarded_days | integer | Awarded in the last N days (UTC days), 1 to 3650. |
country | string | Country slug, or comma-separated slugs (OR). |
date_days | integer | Published or awarded in the last N days (UTC days), 1 to 3650. |
has_amount | boolean | true: only rows with an amount. false: only rows without one. |
lifecycle | array | Tender lifecycle values (OR). For tenders that take bids now, use open: it is the correct filter. closed = awarded and cancelled. |
lifecycle_mode | string | is (default) keeps the lifecycle values; is_not leaves them out. |
match | string | Text match mode for the suppliers and buyers scopes. |
page | integer | Page number, from 1. |
per_page | integer | Results per page, 1 to 50. Default 25. A larger value returns 50 rows and a notice. limit is the same param. |
published_days | integer | Published in the last N days (UTC days), 1 to 3650. 1 is the last day, for polling. |
q | string | Free text, at most 3,000 characters. Boolean syntax: OR, AND, NOT (uppercase), "a phrase", parentheses, -word (= NOT word). Two words with no operator mean AND. At most 300 terms. A text whose syntax… |
scope | string | The collection to search. Default tenders. |
sector | array | Sector slugs (OR), for example it-software. |
sort | string | relevance (default), deadline (the nearest bid deadline first), published_desc (the newest publish date first) or added_desc (the newest rows in Sell to State first). Tenders scope only. newest = publ… |
status | string | Countries scope only: data (the country has data) or coming_soon. |
type | string | Procurement type, for example works, goods or services. Only some countries have it. |
year_max | integer | Latest year (award year, else publication year). |
year_min | integer | Earliest year (award year, else publication year). |
plan_search Plan a search from words (AI, returns no rows)
AI planner. Turns a request in words into a Sell to State search: scope, q (terms in the languages of the countries) and filters (country, lifecycle, date window, amounts). It returns no rows. count = the rows that `search` finds with exactly this scope, q and filters: call `search` with them unchanged to get the rows. If you add or change a filter, count does not apply. Use it when you need help to write q; if you can write q and the filters, call `search` directly. Example text: 'body-worn cameras for police in Kenya and South Africa, open tenders'. Returns {summary, scope, q, filters, url,…
| Parameter | Type | Description |
|---|---|---|
text * | string | What you sell, or what you want to find, in words. |
list_buyers Top buyers
Top buyers (agencies) by total spend.
| Parameter | Type | Description |
|---|---|---|
country | string | Country slug, for example united-kingdom. Omitted means singapore. |
limit | integer |
list_suppliers Top suppliers
Top suppliers by total awarded.
| Parameter | Type | Description |
|---|---|---|
country | string | Country slug, for example united-kingdom. Omitted means singapore. |
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
page | integer | |
page_size | integer |
rename_list Rename a list
Rename a saved list. Body: id, name. Requires a user API key (creator or workspace owner).
| Parameter | Type | Description |
|---|---|---|
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).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
award_id | string | |
tender_no | string |
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
award_id | string | |
tender_no | string |
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.
save_search Save a search
Save a search under a name. Body: name, query (filter set), kind? ('atlas' → unified-search shape, else legacy Explorer filters). Requires a user API key. To watch new tenders of a saved tender search: subscribe to the MCP event saved_search.new_tenders when the client supports MCP events, else call get_new_tenders once a day.
| Parameter | Type | Description |
|---|---|---|
query * | object | |
kind | string | |
name | string |
get_saved_search Open a saved search
One saved search by id (visible to the caller, else not_found). Requires a user API key.
| Parameter | Type | Description |
|---|---|---|
id * | string |
rename_saved_search Rename a saved search
Rename a saved search. Body: id, name. Requires a user API key (creator or workspace owner).
| Parameter | Type | Description |
|---|---|---|
id * | string | |
name * | string |
delete_saved_search Delete a saved search
Delete a saved search. Body: id. Requires a user API key (creator or workspace owner).
| Parameter | Type | Description |
|---|---|---|
id * | string |
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).
| Parameter | Type | Description |
|---|---|---|
saved_search_id * | string | Id of a saved tender search. |
cursor | string | The cursor of the previous call. |