{"openapi":"3.1.0","info":{"title":"Congress.gov Nominations and Treaties (BYOK) API","version":"0.1.0","description":"Congress.gov Nominations and Treaties (BYOK) lets an AI assistant read your own Congress.gov Nominations and Treaties data through the Congress.gov Nominations and Treaties API with a key you supply (api.data.gov API key for Congress.gov). Read-only: 8 tools (list_nominations, get_nomination, get_nomination_nominee, list_nomination_actions, list_nomination_hearings, list_treaties, get_treaty,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-congress-nominations-treaties.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-congress-nominations-treaties/docs"},"termsOfService":"https://connectorbay.com/byok-congress-nominations-treaties/terms"},"servers":[{"url":"https://byok-congress-nominations-treaties.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-congress-nominations-treaties/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_nominations":{"post":{"operationId":"list_nominations","summary":"List presidential nominations received by the Senate in one Congress, with number, description, organization, received d","description":"List presidential nominations received by the Senate in one Congress, with number, description, organization, received date and latest action. Use for \"Which nominations were sent to the Senate in the 117th Congress\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"congress":{"description":"Congress number, for example 117 for the Congress that began in January 2021.","maximum":200,"minimum":1,"title":"Congress","type":"integer"},"from_date_time":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Only items updated at or after this time, format YYYY-MM-DDT00:00:00Z.","title":"From Date Time"},"to_date_time":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Only items updated at or before this time, format YYYY-MM-DDT00:00:00Z.","title":"To Date Time"},"limit":{"anyOf":[{"maximum":250,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many records to return (1 to 250).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of records to skip; 0 starts at the first record.","title":"Offset"},"format":{"anyOf":[{"const":"json","type":"string"},{"type":"null"}],"default":"json","description":"Response format. Only json is offered here.","title":"Format"}},"required":["congress"],"title":"list_nominationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_nomination":{"post":{"operationId":"get_nomination","summary":"Get one nomination: description, citation, received date, privileged and list flags, latest action, nominees and counts ","description":"Get one nomination: description, citation, received date, privileged and list flags, latest action, nominees and counts of actions, committees and hearings. Use for \"Show nomination PN1064 of the 117th Congress\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"congress":{"description":"Congress number, for example 117 for the Congress that began in January 2021.","maximum":200,"minimum":1,"title":"Congress","type":"integer"},"nomination_number":{"description":"Nomination number (PN number), for example 1064.","maximum":100000,"minimum":1,"title":"Nomination Number","type":"integer"},"format":{"anyOf":[{"const":"json","type":"string"},{"type":"null"}],"default":"json","description":"Response format. Only json is offered here.","title":"Format"}},"required":["congress","nomination_number"],"title":"get_nominationArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_nomination_nominee":{"post":{"operationId":"get_nomination_nominee","summary":"Get the nominee(s) at one position of a nomination: name, state, effective date, predecessor and military corps code. Us","description":"Get the nominee(s) at one position of a nomination: name, state, effective date, predecessor and military corps code. Use for \"Who is the first nominee of PN1064 in the 117th Congress\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"congress":{"description":"Congress number, for example 117 for the Congress that began in January 2021.","maximum":200,"minimum":1,"title":"Congress","type":"integer"},"nomination_number":{"description":"Nomination number (PN number), for example 1064.","maximum":100000,"minimum":1,"title":"Nomination Number","type":"integer"},"ordinal":{"description":"Position of the nominee within the nomination, starting at 1.","maximum":10000,"minimum":1,"title":"Ordinal","type":"integer"},"format":{"anyOf":[{"const":"json","type":"string"},{"type":"null"}],"default":"json","description":"Response format. Only json is offered here.","title":"Format"}},"required":["congress","nomination_number","ordinal"],"title":"get_nomination_nomineeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_nomination_actions":{"post":{"operationId":"list_nomination_actions","summary":"List the Senate actions on a nomination (received, referred, reported, confirmed) with date, text, type and committee. U","description":"List the Senate actions on a nomination (received, referred, reported, confirmed) with date, text, type and committee. Use for \"What actions has the Senate taken on PN1064\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"congress":{"description":"Congress number, for example 117 for the Congress that began in January 2021.","maximum":200,"minimum":1,"title":"Congress","type":"integer"},"nomination_number":{"description":"Nomination number (PN number), for example 1064.","maximum":100000,"minimum":1,"title":"Nomination Number","type":"integer"},"limit":{"anyOf":[{"maximum":250,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many records to return (1 to 250).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of records to skip; 0 starts at the first record.","title":"Offset"},"format":{"anyOf":[{"const":"json","type":"string"},{"type":"null"}],"default":"json","description":"Response format. Only json is offered here.","title":"Format"}},"required":["congress","nomination_number"],"title":"list_nomination_actionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_nomination_hearings":{"post":{"operationId":"list_nomination_hearings","summary":"List the hearings held on a nomination with chamber, citation, jacket number and date. Use for \"Which hearings were held","description":"List the hearings held on a nomination with chamber, citation, jacket number and date. Use for \"Which hearings were held on nomination PN389 of the 116th Congress\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"congress":{"description":"Congress number, for example 117 for the Congress that began in January 2021.","maximum":200,"minimum":1,"title":"Congress","type":"integer"},"nomination_number":{"description":"Nomination number (PN number), for example 389.","maximum":100000,"minimum":1,"title":"Nomination Number","type":"integer"},"limit":{"anyOf":[{"maximum":250,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many records to return (1 to 250).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of records to skip; 0 starts at the first record.","title":"Offset"},"format":{"anyOf":[{"const":"json","type":"string"},{"type":"null"}],"default":"json","description":"Response format. Only json is offered here.","title":"Format"}},"required":["congress","nomination_number"],"title":"list_nomination_hearingsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_treaties":{"post":{"operationId":"list_treaties","summary":"List treaty documents submitted to the Senate in one Congress, with number, suffix, transmitted date, topic and update d","description":"List treaty documents submitted to the Senate in one Congress, with number, suffix, transmitted date, topic and update date. Use for \"Which treaties were submitted in the 117th Congress\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"congress":{"description":"Congress number, for example 117 for the Congress that began in January 2021.","maximum":200,"minimum":1,"title":"Congress","type":"integer"},"from_date_time":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Only items updated at or after this time, format YYYY-MM-DDT00:00:00Z.","title":"From Date Time"},"to_date_time":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Only items updated at or before this time, format YYYY-MM-DDT00:00:00Z.","title":"To Date Time"},"limit":{"anyOf":[{"maximum":250,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many records to return (1 to 250).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of records to skip; 0 starts at the first record.","title":"Offset"},"format":{"anyOf":[{"const":"json","type":"string"},{"type":"null"}],"default":"json","description":"Response format. Only json is offered here.","title":"Format"}},"required":["congress"],"title":"list_treatiesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_treaty":{"post":{"operationId":"get_treaty","summary":"Get one treaty document: topic, transmitted and in-force dates, countries party, index terms, related documents and the ","description":"Get one treaty document: topic, transmitted and in-force dates, countries party, index terms, related documents and the number of actions. Use for \"Tell me about Treaty Document 3 of the 117th Congress\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"congress":{"description":"Congress number, for example 117 for the Congress that began in January 2021.","maximum":200,"minimum":1,"title":"Congress","type":"integer"},"treaty_number":{"description":"Treaty document number, for example 3.","maximum":1000,"minimum":1,"title":"Treaty Number","type":"integer"},"format":{"anyOf":[{"const":"json","type":"string"},{"type":"null"}],"default":"json","description":"Response format. Only json is offered here.","title":"Format"}},"required":["congress","treaty_number"],"title":"get_treatyArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_treaty_actions":{"post":{"operationId":"list_treaty_actions","summary":"List the Senate actions on a treaty document (received, referred to committee, reported, resolution of ratification) wit","description":"List the Senate actions on a treaty document (received, referred to committee, reported, resolution of ratification) with date, text and committee. Use for \"What actions were taken on Treaty Document 3 of the 117th Congress\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"congress":{"description":"Congress number, for example 117 for the Congress that began in January 2021.","maximum":200,"minimum":1,"title":"Congress","type":"integer"},"treaty_number":{"description":"Treaty document number, for example 3.","maximum":1000,"minimum":1,"title":"Treaty Number","type":"integer"},"limit":{"anyOf":[{"maximum":250,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many records to return (1 to 250).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of records to skip; 0 starts at the first record.","title":"Offset"},"format":{"anyOf":[{"const":"json","type":"string"},{"type":"null"}],"default":"json","description":"Response format. Only json is offered here.","title":"Format"}},"required":["congress","treaty_number"],"title":"list_treaty_actionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}