{"openapi":"3.1.0","info":{"title":"AFDC Laws and Incentives (BYOK) API","version":"0.1.0","description":"AFDC Laws and Incentives (BYOK) lets an AI assistant read your own AFDC Laws and Incentives data through the AFDC Laws and Incentives API with a key you supply (NREL Developer Network API key). Read-only: 9 tools (search_laws, list_laws_by_jurisdiction, list_laws_by_technology, list_laws_by_incentive_type, list_laws_by_regulation_type, list_laws_by_user_type, list_recent_laws, get_law,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-nrel-laws.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-nrel-laws/docs"},"termsOfService":"https://connectorbay.com/byok-nrel-laws/terms"},"servers":[{"url":"https://byok-nrel-laws.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-nrel-laws/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/search_laws":{"post":{"operationId":"search_laws","summary":"Search laws and incentives by keyword in title or text, optionally limited to a state; returns title, state, type, dates","description":"Search laws and incentives by keyword in title or text, optionally limited to a state; returns title, state, type, dates, categories and description text. Use for \"Which Colorado laws mention electric vehicle charging\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"keyword":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Keyword searched in title and text, for example 'charging'.","title":"Keyword"},"jurisdiction":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter state code, or US for federal laws and DC for Washington D.C.; a comma-separated list is allowed.","title":"Jurisdiction"},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True returns only expired, repealed or archived laws; default false returns current ones.","title":"Expired"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum number of laws to return (1 to 100).","title":"Limit"}},"title":"search_lawsArguments","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_laws_by_jurisdiction":{"post":{"operationId":"list_laws_by_jurisdiction","summary":"List current laws and incentives for one or more jurisdictions (state codes, US for federal). Use for \"What federal EV l","description":"List current laws and incentives for one or more jurisdictions (state codes, US for federal). Use for \"What federal EV laws and incentives exist\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"jurisdiction":{"description":"Two-letter state code, US for federal, DC for Washington D.C.; comma-separated list allowed.","maxLength":40,"title":"Jurisdiction","type":"string"},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True returns only expired, repealed or archived laws; default false returns current ones.","title":"Expired"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum number of laws to return (1 to 100).","title":"Limit"}},"required":["jurisdiction"],"title":"list_laws_by_jurisdictionArguments","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_laws_by_technology":{"post":{"operationId":"list_laws_by_technology","summary":"List laws and incentives for fuel/vehicle technologies: BIOD, ETH, NG, LPG, HY, ELEC, PHEV, HEV, NEVS, RD, AFTMKTCONV, E","description":"List laws and incentives for fuel/vehicle technologies: BIOD, ETH, NG, LPG, HY, ELEC, PHEV, HEV, NEVS, RD, AFTMKTCONV, EFFEC, IR, AUTONOMOUS, OTHER. Use for \"Find hydrogen fuel cell vehicle incentives in California\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"technology":{"description":"Technology code or comma-separated list, for example 'ELEC,PHEV' or 'HY'.","maxLength":80,"title":"Technology","type":"string"},"jurisdiction":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter state code, or US for federal laws and DC for Washington D.C.; a comma-separated list is allowed.","title":"Jurisdiction"},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True returns only expired, repealed or archived laws; default false returns current ones.","title":"Expired"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum number of laws to return (1 to 100).","title":"Limit"}},"required":["technology"],"title":"list_laws_by_technologyArguments","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_laws_by_incentive_type":{"post":{"operationId":"list_laws_by_incentive_type","summary":"List laws and incentives by incentive type: GNT grants, TAX tax incentives, LOANS loans and leases, RBATE rebates, EXEM ","description":"List laws and incentives by incentive type: GNT grants, TAX tax incentives, LOANS loans and leases, RBATE rebates, EXEM exemptions, TOU time-of-use rate, OTHER. Use for \"Which states offer EV rebates\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"incentive_type":{"description":"Incentive type code or comma-separated list, for example 'RBATE,GNT'.","maxLength":60,"title":"Incentive Type","type":"string"},"jurisdiction":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter state code, or US for federal laws and DC for Washington D.C.; a comma-separated list is allowed.","title":"Jurisdiction"},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True returns only expired, repealed or archived laws; default false returns current ones.","title":"Expired"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum number of laws to return (1 to 100).","title":"Limit"}},"required":["incentive_type"],"title":"list_laws_by_incentive_typeArguments","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_laws_by_regulation_type":{"post":{"operationId":"list_laws_by_regulation_type","summary":"List laws and regulations by regulation type, for example REQ acquisition/fuel use, DREST driving/idling, EVFEE EV regis","description":"List laws and regulations by regulation type, for example REQ acquisition/fuel use, DREST driving/idling, EVFEE EV registration fee, FUEL fuel taxes, BUILD building codes, RTC right-to-charge. Use for \"Which states charge an EV registration fee\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"regulation_type":{"description":"Regulation type code or comma-separated list, for example 'EVFEE'.","maxLength":80,"title":"Regulation Type","type":"string"},"jurisdiction":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter state code, or US for federal laws and DC for Washington D.C.; a comma-separated list is allowed.","title":"Jurisdiction"},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True returns only expired, repealed or archived laws; default false returns current ones.","title":"Expired"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum number of laws to return (1 to 100).","title":"Limit"}},"required":["regulation_type"],"title":"list_laws_by_regulation_typeArguments","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_laws_by_user_type":{"post":{"operationId":"list_laws_by_user_type","summary":"List laws and incentives by who they apply to: FLEET commercial, GOV government, TRIBAL, IND personal vehicle owners, ST","description":"List laws and incentives by who they apply to: FLEET commercial, GOV government, TRIBAL, IND personal vehicle owners, STATION infrastructure operators, AFP producers, PURCH purchasers, MAN manufacturers, MUD multi-unit dwellings, TRANS transit. Use for \"What incentives exist for fleets in Texas\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"user_type":{"description":"User type code or comma-separated list, for example 'FLEET'.","maxLength":80,"title":"User Type","type":"string"},"jurisdiction":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter state code, or US for federal laws and DC for Washington D.C.; a comma-separated list is allowed.","title":"Jurisdiction"},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True returns only expired, repealed or archived laws; default false returns current ones.","title":"Expired"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum number of laws to return (1 to 100).","title":"Limit"}},"required":["user_type"],"title":"list_laws_by_user_typeArguments","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_recent_laws":{"post":{"operationId":"list_recent_laws","summary":"List recently added or updated laws and incentives. Use for \"What laws and incentives were recently updated\".","description":"List recently added or updated laws and incentives. Use for \"What laws and incentives were recently updated\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"recent":{"description":"Return only recently added or updated entries.","title":"Recent","type":"boolean"},"jurisdiction":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter state code, or US for federal laws and DC for Washington D.C.; a comma-separated list is allowed.","title":"Jurisdiction"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum number of laws to return (1 to 100).","title":"Limit"}},"required":["recent"],"title":"list_recent_lawsArguments","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_law":{"post":{"operationId":"get_law","summary":"Get one law or incentive by its numeric id, with full text, dates, categories and references. Use for \"Show law 405\".","description":"Get one law or incentive by its numeric id, with full text, dates, categories and references. Use for \"Show law 405\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"law_id":{"description":"Numeric law id from a search result.","title":"Law Id","type":"integer"},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True returns only expired, repealed or archived laws; default false returns current ones.","title":"Expired"}},"required":["law_id"],"title":"get_lawArguments","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_law_categories":{"post":{"operationId":"list_law_categories","summary":"List the law categories of one category type (tech, user, regulation or incentive) with codes and descriptions. Use for ","description":"List the law categories of one category type (tech, user, regulation or incentive) with codes and descriptions. Use for \"List the incentive category codes\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"type":{"anyOf":[{"enum":["tech","user","regulation","incentive"],"type":"string"},{"type":"null"}],"default":null,"description":"Category type.","title":"Type"}},"title":"list_law_categoriesArguments","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}}}}