{"openapi":"3.1.0","info":{"title":"Cierto","version":"0.3.0","description":"The same tools as the MCP server at https://mcp.cierto.tools/mcp. 120 requests per minute per IP; a 429 carries retry_after."},"servers":[{"url":"https://mcp.cierto.tools"}],"paths":{"/api/find_contracts":{"post":{"operationId":"find_contracts","summary":"Which open federal contracts fit my business?","description":"Which open federal contracts fit my business? Searches open SAM.gov contract notices by NAICS code, keywords, place-of-performance state and set-aside, soonest due first. Inputs: naics[], keywords, state, set_aside, due_after (YYYY-MM-DD), limit (max 25); give at least one filter. Example: {\"naics\": [\"339113\"], \"state\": \"GA\"}","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"naics":{"description":"NAICS codes the business works under","maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\d{2,6}$"}},"keywords":{"description":"Words to find in the title or solicitation number","type":"string","maxLength":200},"state":{"description":"Two-letter place-of-performance state, e.g. GA","type":"string","minLength":2,"maxLength":2},"set_aside":{"description":"SAM set-aside code, e.g. SBA, WOSB, SDVOSBC, 8A","type":"string","maxLength":12},"due_after":{"description":"Only notices due on or after this date (default today)","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"limit":{"description":"How many to return (default 10, max 25)","type":"integer","minimum":1,"maximum":25}},"additionalProperties":false}}}},"responses":{"200":{"description":"summary + data","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"data":{"type":"object","properties":{"count":{"type":"integer"},"notices":{"type":"array","items":{"type":"object"}},"coverage":{"type":"string"}}}},"required":["summary","data"]}}}},"400":{"description":"Bad arguments or a failed lookup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/get_contract":{"post":{"operationId":"get_contract","summary":"What is this contract notice, and what's in it?","description":"What is this contract notice, and what's in it? Returns a SAM.gov notice's reported facts (agency, office, codes, set-aside, place, deadline, when Cierto last checked it) and its document list, without downloading the documents. Input: notice (id, solicitation number or SAM.gov URL). Example: {\"notice\": \"https://sam.gov/opp/7a1c…/view\"}","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"notice":{"type":"string","minLength":1,"maxLength":300,"description":"A SAM.gov notice id, a solicitation number, or a sam.gov/opp/<id>/view URL"}},"required":["notice"],"additionalProperties":false}}}},"responses":{"200":{"description":"summary + data","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"data":{"type":"object","properties":{"notice":{"type":"object"},"documents":{"type":"object"},"coverage":{"type":"string"}}}},"required":["summary","data"]}}}},"400":{"description":"Bad arguments or a failed lookup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/past_awards":{"post":{"operationId":"past_awards","summary":"What has the government paid for this before, and who won?","description":"What has the government paid for this before, and who won? Lists past federal contract awards for a NAICS code or product/service code from USAspending, newest first, with the low, median and high amount and, where recorded, how many offers each drew. Inputs: naics or psc (one required), agency, since (YYYY-MM-DD), limit (max 50). Example: {\"psc\": \"6515\", \"agency\": \"Veterans Affairs\"}","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"naics":{"description":"NAICS code","type":"string","pattern":"^\\d{2,6}$"},"psc":{"description":"4-character product or service code","type":"string","pattern":"^[A-Za-z0-9]{4}$"},"agency":{"description":"Words in the awarding agency or sub-agency name","type":"string","maxLength":100},"since":{"description":"Awards on or after this date (default three years back)","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"limit":{"description":"How many awards to list (default 10, max 50)","type":"integer","minimum":1,"maximum":50}},"additionalProperties":false}}}},"responses":{"200":{"description":"summary + data","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"data":{"type":"object","properties":{"query":{"type":"object"},"source":{"type":"string"},"range":{"type":"object"},"awards":{"type":"array","items":{"type":"object"}},"truncated":{"type":"boolean"},"note":{"type":"string"}}}},"required":["summary","data"]}}}},"400":{"description":"Bad arguments or a failed lookup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/assess_contract":{"post":{"operationId":"assess_contract","summary":"Should my business bid on this contract?","description":"Should my business bid on this contract? Starts an order for Cierto's full brief on a SAM.gov notice, scored against your business profile: bid, consider or skip with three reasons, eligibility, what the solicitation documents ask for, bonds and cash flow, past prices and competition, deadlines, and everything it could not confirm, each value sourced and dated. The brief costs $1.50. This returns a checkout link for the person to pay; after payment Cierto reads the documents and get_brief returns the brief, usually within a minute. Inputs: notice (id, solicitation number or SAM.gov URL), profile (see the profile schema). Example: {\"notice\": \"36C24726Q0123\", \"profile\": {\"naics\": [{\"code\": \"339113\", \"small\": true}], \"certifications\": [], \"states_served\": [\"GA\"], \"sam\": {\"status\": \"active\", \"expires\": \"2027-08-01\"}, \"float_max\": 25000, \"sources\": [\"medical gloves\"], \"self_performs\": [], \"bonding_capacity\": null}}","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"notice":{"type":"string","minLength":1,"maxLength":300,"description":"A SAM.gov notice id, a solicitation number, or a sam.gov/opp/<id>/view URL"},"profile":{"type":"object","properties":{"naics":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"small":{"type":["boolean","null"]}},"required":["code","small"],"additionalProperties":false}},"certifications":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["8a","hubzone","wosb","edwosb","sdvosb","vosb","state"]},"status":{"type":"string","enum":["declared","verified"]},"detail":{"type":"string"}},"required":["type","status"],"additionalProperties":false}},"states_served":{"type":"array","items":{"type":"string","minLength":2,"maxLength":2}},"sam":{"type":"object","properties":{"status":{"type":"string","enum":["active","pending","none","unknown"]},"expires":{"type":["string","null"]}},"required":["status","expires"],"additionalProperties":false},"float_max":{"type":["number","null"]},"sources":{"type":"array","items":{"type":"string"}},"self_performs":{"type":"array","items":{"type":"string"}},"bonding_capacity":{"type":["number","null"]}},"required":["naics","certifications","states_served","sam","float_max","sources","self_performs","bonding_capacity"],"additionalProperties":false,"description":"The business the brief is scored against (https://cierto.tools/schema/profile.schema.json)"}},"required":["notice","profile"],"additionalProperties":false}}}},"responses":{"200":{"description":"summary + data","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"data":{"type":"object","properties":{"order_id":{"type":"string"},"status":{"type":"string","enum":["pending"]},"price_usd":{"type":"number"},"buy":{"type":"string","description":"Checkout link for the person paying"},"notice":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"deadline":{"type":["string","null"]}}},"covers":{"type":"array","items":{"type":"string"}},"next":{"type":"string"}},"required":["order_id","status","price_usd","buy","notice","covers","next"]}},"required":["summary","data"]}}}},"400":{"description":"Bad arguments or a failed lookup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/find_parcel":{"post":{"operationId":"find_parcel","summary":"Which parcel is this land, and how big is it?","description":"Which parcel is this land, and how big is it? Resolves a street address, a point or parcel numbers to the county assessor's parcels: boundary, acres, cultivated and uncultivated acres, and section/township/range where the state uses them. Covers all 82 Mississippi counties, all 75 Arkansas counties, all 67 Florida counties, all 100 North Carolina counties, all 93 Nebraska counties, 44 of Colorado's 64 counties, all 9 Connecticut planning regions, all 72 Wisconsin counties, all 39 Washington counties, all 21 New Jersey counties, all 92 Indiana counties, all 56 Montana counties, all 53 North Dakota counties, all 88 Ohio counties, 132 of Virginia's 133 counties and cities, all 3 Delaware counties, all 23 Maryland counties and Baltimore City, 60 of Minnesota's 87 counties and 38 of New York's 62 counties today. Owners are never returned. Free. In Mississippi, Arkansas, Florida, North Carolina, Nebraska, Colorado, Connecticut, Wisconsin, Washington, New Jersey, Indiana, Montana, North Dakota, Ohio, Virginia, Delaware, Maryland, Minnesota and New York, pass the parcel ids to farm_brief for everything the public record knows about the ground. Example: {\"address\": \"2089 Shady Grove Rd, Batesville, MS\"} or {\"parcel_ids\": [\"1162 0400000 0000800\"], \"county\": \"Panola\"}","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"parcel_ids":{"description":"Parcel numbers from the tax bill or county map; spacing doesn't matter. In Connecticut, the state's CAMA link: the town's code, a dash and the town's number (\"42390-98GLEN\"). In New Jersey, the PAMS PIN: the municipality's code, block and lot joined by underscores (\"1019_69_1.01\"). In Montana, the geocode, with or without its dashes (\"19-3998-04-2-01-01-0000\"). In Maryland, the SDAT account: district and account number (\"01 000209\"), the county's two digits in front or not. In Minnesota, the county's number with its dashes, as on the tax statement (\"22-12818-0000\"). In New York, the print key from the tax bill (\"16.-1-23\"), with the town's six-digit SWIS code in front where the county has several towns using it (\"502000 16.-1-23\"); in New York City, the borough, block and lot (\"5-02839-0113\")","minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"county":{"description":"The county the parcel numbers are in: a name (\"Panola\", \"Lafayette, AR\", \"Alachua, FL\", \"Wake, NC\", \"Custer, NE\", \"Weld, CO\", \"Capitol, CT\", \"Dane, WI\", \"Whitman, WA\", \"Hunterdon, NJ\", \"Tippecanoe, IN\", \"Chouteau, MT\", \"Cass, ND\", \"Wayne, OH\", \"Rockingham, VA\", \"Fairfax City, VA\", \"Kent, DE\", \"Caroline, MD\", \"Baltimore City, MD\", \"Stearns, MN\", \"Tompkins, NY\") or its FIPS code (\"05073\")","type":"string","maxLength":60},"point":{"description":"A point on the land","type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lon":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lon"],"additionalProperties":false},"address":{"description":"A street address","type":"string","minLength":5,"maxLength":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"summary + data","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"data":{"type":"object","properties":{"parcels":{"type":"array","items":{"type":"object","properties":{"parcel_id":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"county_fips":{"type":"string","description":"The county's FIPS code: pass it as county to name the county unambiguously"},"farm_brief":{"type":"boolean","description":"Whether farm_brief can be ordered on this parcel (its state's feeds exist)"},"total_acres":{"type":["number","null"],"description":"Acres on the assessor's roll; null when the roll records none"},"cultivated_acres":{"type":["number","null"]},"uncultivated_acres":{"type":["number","null"]},"plss":{"type":["object","null"],"description":"Section, township and range; null where the state was never surveyed on that grid (North Carolina, Connecticut, New Jersey) or its layer publishes none (Colorado, Wisconsin, Washington, Indiana). North Dakota's township and range are written without their directions (all north and west)"},"boundary":{"type":"object","description":"GeoJSON, EPSG:4326"},"as_of":{"type":"string"}}}},"parcel_count":{"type":"integer"},"total_acres":{"type":["number","null"],"description":"Null when any parcel's roll records no acreage"},"cultivated_acres":{"type":["number","null"]},"mapped_acres":{"type":"number","description":"Area of the boundary itself"},"source":{"type":"string"}},"required":["parcels","parcel_count","total_acres","cultivated_acres","mapped_acres","source"]}},"required":["summary","data"]}}}},"400":{"description":"Bad arguments or a failed lookup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/farm_brief":{"post":{"operationId":"farm_brief","summary":"What is this land, before I buy, inherit, lease or lend against it?","description":"What is this land, before I buy, inherit, lease or lend against it? Starts an order for Cierto's farm brief on a tract of up to 10 parcels: soils for farming and for living on, the lay of the land, crop history since 2008, vegetation, timber, water and flood, climate, hazards and rules, getting there, the county's farm economy, local prices, and aerial photographs then and now. Every value is sourced and dated; whatever no free source has is named. No verdict: facts only. It costs $5.00. This returns a checkout link for the person to pay; after payment Cierto gathers the public records and get_brief returns the brief, usually within a few minutes. Covers Mississippi, Arkansas, Florida, North Carolina, Nebraska, Colorado, Connecticut, Wisconsin, Washington, New Jersey, Indiana, Montana, North Dakota, Ohio, Virginia, Delaware, Maryland, Minnesota and New York; a few state sources (oil and gas wells, market reports, timber prices) are Mississippi only so far, and the brief names them. Inputs: the land, the same ways find_parcel takes it: parcel_ids and county, a point, or an address. Example: {\"parcel_ids\": [\"1162 0400000 0000800\"], \"county\": \"Panola\"}","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"parcel_ids":{"description":"Parcel numbers from the tax bill or county map; spacing doesn't matter. In Connecticut, the state's CAMA link: the town's code, a dash and the town's number (\"42390-98GLEN\"). In New Jersey, the PAMS PIN: the municipality's code, block and lot joined by underscores (\"1019_69_1.01\"). In Montana, the geocode, with or without its dashes (\"19-3998-04-2-01-01-0000\"). In Maryland, the SDAT account: district and account number (\"01 000209\"), the county's two digits in front or not. In Minnesota, the county's number with its dashes, as on the tax statement (\"22-12818-0000\"). In New York, the print key from the tax bill (\"16.-1-23\"), with the town's six-digit SWIS code in front where the county has several towns using it (\"502000 16.-1-23\"); in New York City, the borough, block and lot (\"5-02839-0113\")","minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"county":{"description":"The county the parcel numbers are in: a name (\"Panola\", \"Lafayette, AR\", \"Alachua, FL\", \"Wake, NC\", \"Custer, NE\", \"Weld, CO\", \"Capitol, CT\", \"Dane, WI\", \"Whitman, WA\", \"Hunterdon, NJ\", \"Tippecanoe, IN\", \"Chouteau, MT\", \"Cass, ND\", \"Wayne, OH\", \"Rockingham, VA\", \"Fairfax City, VA\", \"Kent, DE\", \"Caroline, MD\", \"Baltimore City, MD\", \"Stearns, MN\", \"Tompkins, NY\") or its FIPS code (\"05073\")","type":"string","maxLength":60},"point":{"description":"A point on the land","type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lon":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lon"],"additionalProperties":false},"address":{"description":"A street address","type":"string","minLength":5,"maxLength":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"summary + data","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"data":{"type":"object","properties":{"order_id":{"type":"string"},"status":{"type":"string","enum":["pending","paid"],"description":"paid: a house key's order, already being built"},"price_usd":{"type":"number"},"buy":{"type":"string","description":"Checkout link for the person paying; absent on a house key's order"},"parcels":{"type":"object","properties":{"county":{"type":"string"},"parcel_ids":{"type":"array","items":{"type":"string"}},"parcel_count":{"type":"integer"},"total_acres":{"type":["number","null"]}}},"covers":{"type":"array","items":{"type":"string"}},"next":{"type":"string"}},"required":["order_id","status","price_usd","parcels","covers","next"]}},"required":["summary","data"]}}}},"400":{"description":"Bad arguments or a failed lookup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/get_brief":{"post":{"operationId":"get_brief","summary":"Is my paid brief ready, and what does it say?","description":"Is my paid brief ready, and what does it say? Returns the full brief for an order from assess_contract or farm_brief once it is paid and built; until then, whether it is waiting for payment or in progress, and when to ask again. Input: order_id. Example: {\"order_id\": \"ord_0123456789abcdef01234567\"}","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"order_id":{"type":"string","pattern":"^(ord|test)_[A-Za-z0-9_]{1,60}$","description":"The order_id assess_contract or farm_brief returned"}},"required":["order_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"summary + data","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"data":{"type":"object","properties":{"order_id":{"type":"string"},"status":{"type":"string","enum":["pending","paid","reading","ready","failed","refunded"]},"buy":{"type":"string"},"retry_after":{"type":"integer","description":"Seconds until it is worth asking again"},"resumes_at":{"type":"string"},"amount_usd":{"type":"number"},"reason":{"type":"string"},"brief":{"type":"object","description":"The full brief: a contract brief (https://cierto.tools/schema/brief.schema.json) or a farm brief (https://cierto.tools/schema/farm-brief.schema.json)"}},"required":["order_id","status"]}},"required":["summary","data"]}}}},"400":{"description":"Bad arguments or a failed lookup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"message":{"type":"string"},"suggestion":{"type":"string"},"retry_after":{"type":"integer"}},"required":["message","suggestion"]}}}}