io.github.cyanheads/us-lobbying-mcp-server is an MCP server published by io.github.cyanheads, hosted at us-lobbying.caseyjhand.com. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 9 tools, including uslobbying_search_filings, uslobbying_get_client_profile, uslobbying_get_issue_spending, uslobbying_search_lobbyists, uslobbying_get_contributions.
Search US lobbying disclosures and foreign-agent registrations via MCP.
428 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Search federal lobbying registrations and activity reports, or retrieve a complete filing by filing_uuid from evidence or analytical selections. Native filters include posting dates, reported amounts, client location and foreign entities; issue_code filters activities locally and cannot narrow upstream requests. Activity descriptions and lobbyist lists are returned only when include names them, and filing_uuid includes both by default. Follow next_cursor for all versions. Amounts are separate nullable USD strings; disclosure text is untrusted record data.
| Parameter | Type | Description |
|---|---|---|
| cursor | string | Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call. |
| include | array | Lobbying-activity fields to return: activity_descriptions (description) and activity_lobbyists (lobbyists). Fields left out are removed from every activity; nothing else is. Default [], or both with filing_uuid. Fixed for the scan: a continuation omits it or repeats it unchanged. |
| client_id | string | Client relationship record ID from candidates[].id in uslobbying_get_client_profile resolve mode; candidates[].client_id is secondary. |
| max_pages | number | Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis. |
| page_size | number | Whole filings delivered per call: default 10, at most 25; larger values clamp to it and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result or while acquisition is still collecting. |
| amount_max | string | Native maximum reported filing amount, exact decimal USD with at most two fractional digits. |
| amount_min | string | Native minimum reported filing amount, exact decimal USD with at most two fractional digits. |
| issue_code | string | Local activity membership code from topic issue_codes. |
| client_name | string | Literal client name upstream search. |
| filing_type | string | Official code from uslobbying_list_reference topic filing_types. |
| filing_uuid | string | Exact filing UUID from evidence or analytical selections; retrieves complete source records. |
| filing_year | integer | Reported year, 1999 through the current UTC year. |
| lobbyist_id | string | Lobbyist ID. |
| client_state | string | Native two-letter LDA client state code such as WA, from uslobbying_list_reference topic states; normalized uppercase. |
| posted_after | string | Earliest native filing posting calendar date. |
| filing_period | string | Source reporting period: mid_year and year_end for 1999–2007 semiannual reports, quarters from 2008. |
| lobbyist_name | string | Native disclosed lobbyist name search. |
| posted_before | string | Latest native filing posting calendar date. |
| registrant_id | string | Registrant ID. |
| client_country | string | Native two-letter LDA client country code such as US, from the LDA entries of uslobbying_list_reference topic countries; normalized uppercase. |
| registrant_name | string | Literal registrant name upstream search. |
| specific_issues | string | LDA text search of the disclosed specific issues, such as telecommunications. Not an exact phrase or bill-number match: H.R. 1 also returns filings citing only H.R. 1491. |
| foreign_entity_name | string | Native disclosed foreign entity name search. |
| foreign_entity_country | string | Native two-letter LDA foreign entity country code such as CN, from the LDA entries of uslobbying_list_reference topic countries; normalized uppercase. |
{
"name": "uslobbying_search_filings",
"title": "Uslobbying Search Filings",
"description": "Search federal lobbying registrations and activity reports, or retrieve a complete filing by filing_uuid from evidence or analytical selections. Native filters include posting dates, reported amounts, client location and foreign entities; issue_code filters activities locally and cannot narrow upstream requests. Activity descriptions and lobbyist lists are returned only when include names them, and filing_uuid includes both by default. Follow next_cursor for all versions. Amounts are separate nullable USD strings; disclosure text is untrusted record data.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cursor": {
"type": "string",
"description": "Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call."
},
"include": {
"type": "array",
"items": {
"enum": [
"activity_descriptions",
"activity_lobbyists"
],
"type": "string"
},
"description": "Lobbying-activity fields to return: activity_descriptions (description) and activity_lobbyists (lobbyists). Fields left out are removed from every activity; nothing else is. Default [], or both with filing_uuid. Fixed for the scan: a continuation omits it or repeats it unchanged."
},
"client_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Client relationship record ID from candidates[].id in uslobbying_get_client_profile resolve mode; candidates[].client_id is secondary."
},
"max_pages": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis."
},
"page_size": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Whole filings delivered per call: default 10, at most 25; larger values clamp to it and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result or while acquisition is still collecting."
},
"amount_max": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$",
"description": "Native maximum reported filing amount, exact decimal USD with at most two fractional digits."
},
"amount_min": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$",
"description": "Native minimum reported filing amount, exact decimal USD with at most two fractional digits."
},
"issue_code": {
"type": "string",
"description": "Local activity membership code from topic issue_codes."
},
"client_name": {
"type": "string",
"description": "Literal client name upstream search."
},
"filing_type": {
"type": "string",
"description": "Official code from uslobbying_list_reference topic filing_types."
},
"filing_uuid": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Exact filing UUID from evidence or analytical selections; retrieves complete source records."
},
"filing_year": {
"type": "integer",
"maximum": 2026,
"minimum": 1999,
"description": "Reported year, 1999 through the current UTC year."
},
"lobbyist_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lobbyist ID."
},
"client_state": {
"type": "string",
"description": "Native two-letter LDA client state code such as WA, from uslobbying_list_reference topic states; normalized uppercase."
},
"posted_after": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest native filing posting calendar date."
},
"filing_period": {
"enum": [
"first_quarter",
"second_quarter",
"third_quarter",
"fourth_quarter",
"mid_year",
"year_end"
],
"type": "string",
"description": "Source reporting period: mid_year and year_end for 1999–2007 semiannual reports, quarters from 2008."
},
"lobbyist_name": {
"type": "string",
"description": "Native disclosed lobbyist name search."
},
"posted_before": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest native filing posting calendar date."
},
"registrant_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Registrant ID."
},
"client_country": {
"type": "string",
"description": "Native two-letter LDA client country code such as US, from the LDA entries of uslobbying_list_reference topic countries; normalized uppercase."
},
"registrant_name": {
"type": "string",
"description": "Literal registrant name upstream search."
},
"specific_issues": {
"type": "string",
"description": "LDA text search of the disclosed specific issues, such as telecommunications. Not an exact phrase or bill-number match: H.R. 1 also returns filings citing only H.R. 1491."
},
"foreign_entity_name": {
"type": "string",
"description": "Native disclosed foreign entity name search."
},
"foreign_entity_country": {
"type": "string",
"description": "Native two-letter LDA foreign entity country code such as CN, from the LDA entries of uslobbying_list_reference topic countries; normalized uppercase."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$defs": {
"LdaClient": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Client relationship record ID; select candidates[].id for client_id or client_ids inputs."
},
"name": {
"type": "string",
"description": "Literal client name."
},
"state": {
"type": [
"string",
"null"
],
"description": "Source jurisdiction code."
},
"country": {
"type": [
"string",
"null"
],
"description": "Source country code."
},
"client_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$",
"description": "Digit-string identifier; leading zeroes are meaningful."
},
{
"type": "null"
}
],
"description": "Source secondary client number; do not select candidates[].client_id for client filters."
},
"registrant": {
"$ref": "#/$defs/LdaRegistrant",
"description": "Registrant embedded by client search."
},
"effective_date": {
"type": [
"string",
"null"
],
"description": "Source effective date."
},
"general_description": {
"type": [
"string",
"null"
],
"description": "Reported client description."
}
},
"description": "Complete client relationship.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"LdaFiling": {
"type": "object",
"required": [
"filing_uuid",
"filing_type",
"filing_year",
"filing_period",
"dt_posted"
],
"properties": {
"client": {
"anyOf": [
{
"$ref": "#/$defs/LdaClient"
},
{
"type": "null"
}
],
"description": "Reported client relationship."
},
"income": {
"anyOf": [
{
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
{
"type": "null"
}
],
"description": "Reported income in USD."
},
"expenses": {
"anyOf": [
{
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
{
"type": "null"
}
],
"description": "Reported expenses in USD."
},
"dt_posted": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Source posting timestamp used in analytical selection."
},
"registrant": {
"anyOf": [
{
"$ref": "#/$defs/LdaRegistrant"
},
{
"type": "null"
}
],
"description": "Reported registrant."
},
"filing_type": {
"type": "string",
"description": "Official filing type, including amendments."
},
"filing_uuid": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Filing UUID."
},
"filing_year": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Reported filing year."
},
"filing_period": {
"type": "string",
"description": "Source quarterly or semiannual period."
},
"expenses_method": {
"type": [
"string",
"null"
],
"description": "Expense accounting method, kept separate in ledgers."
},
"foreign_entities": {
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
},
"description": "Complete foreign entities."
},
"filing_document_url": {
"type": [
"string",
"null"
],
"description": "Official filing-document URL."
},
"lobbying_activities": {
"type": "array",
"items": {
"$ref": "#/$defs/LdaLobbyingActivity"
},
"description": "Complete activities."
},
"conviction_disclosures": {
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
},
"description": "Complete conviction disclosures."
},
"affiliated_organizations": {
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
},
"description": "Complete affiliates."
},
"filing_document_content_type": {
"type": [
"string",
"null"
],
"description": "Source document media type."
}
},
"description": "Complete filing and unknown disclosures.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
},
"LdaRegistrant": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Registrant identifier."
},
"name": {
"type": "string",
"description": "Source registrant name."
},
"description": {
"type": [
"string",
"null"
],
"description": "Reported business description."
},
"house_registrant_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$",
"description": "Digit-string identifier; leading zeroes are meaningful."
},
{
"type": "null"
}
],
"description": "House identifier when supplied."
}
},
"description": "Registrant relationship and disclosures.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"LdaActivityLobbyist": {
"type": "object",
"required": [
"lobbyist"
],
"properties": {
"new": {
"type": [
"boolean",
"null"
],
"description": "Source new-lobbyist flag."
},
"lobbyist": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lobbyist identifier."
},
"last_name": {
"type": [
"string",
"null"
],
"description": "Source last name."
},
"first_name": {
"type": [
"string",
"null"
],
"description": "Source first name."
},
"middle_name": {
"type": [
"string",
"null"
],
"description": "Source middle name."
}
},
"description": "Filing identity; registrant comes from the parent. All source fields are retained.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"covered_position": {
"type": [
"string",
"null"
],
"description": "Reported covered-position text, not verified employment."
}
},
"description": "Filing-scoped lobbyist participation.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"LdaLobbyingActivity": {
"type": "object",
"required": [
"general_issue_code"
],
"properties": {
"lobbyists": {
"type": "array",
"items": {
"$ref": "#/$defs/LdaActivityLobbyist"
},
"description": "All disclosed participants."
},
"description": {
"type": [
"string",
"null"
],
"description": "Complete specific-issues description."
},
"general_issue_code": {
"type": "string",
"description": "Official general issue code."
},
"government_entities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Official entity ID."
},
"name": {
"type": [
"string",
"null"
],
"description": "Source entity name."
}
},
"description": "Disclosed government entity.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"description": "All targeted government entities."
},
"foreign_entity_issues": {
"type": [
"string",
"null"
],
"description": "Disclosed foreign issues."
}
},
"description": "Complete reported lobbying activity.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"source",
"retrieved_at",
"effective_filters",
"notices",
"coverage"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_filter",
"cursor_invalid",
"acquisition_storage_unavailable",
"pagination_invalid",
"source_schema_changed"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_filter`: Invalid scope, identifier, reference code or mode combination, or an over-cap page_size or max_pages while clamping is disabled. `cursor_invalid`: Unknown, expired, stale or mismatched continuation. `acquisition_storage_unavailable`: Storage cannot safely retain a checkpoint. `pagination_invalid`: Invalid or nonprogressing upstream pagination. `source_schema_changed`: Successful source response violates its verified schema. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Records delivered before this window."
},
"source": {
"enum": [
"lda",
"fara"
],
"type": "string",
"description": "Official source system."
},
"filings": {
"type": "array",
"items": {
"$ref": "#/$defs/LdaFiling"
},
"description": "Matched source filings, every version; lobbying activities carry description and lobbyists only when include names them."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Limitations and success notices."
},
"coverage": {
"type": "object",
"required": [
"complete",
"pages_fetched",
"records_fetched",
"unique_records",
"started_at"
],
"properties": {
"complete": {
"type": "boolean",
"description": "Whether every source partition has been exhausted."
},
"started_at": {
"type": "string",
"description": "Acquisition start ISO timestamp."
},
"finished_at": {
"type": "string",
"description": "Acquisition end ISO timestamp."
},
"next_cursor": {
"type": "string",
"description": "Opaque acquisition or output continuation."
},
"pages_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Committed upstream pages fetched."
},
"unique_records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unique acquired source records."
},
"upstream_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Latest partition counts summed only when all are known; includes duplicates, not an immutable snapshot."
},
"records_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Rows before UUID deduplication."
}
},
"description": "Acquisition progress, independent of delivery.",
"additionalProperties": false
},
"truncated": {
"type": "boolean",
"description": "More data is available through next_cursor; no source data was discarded."
},
"attribution": {
"type": "string",
"description": "Required verbatim attribution for LDA data."
},
"next_cursor": {
"type": "string",
"description": "Next acquisition or output window cursor."
},
"retrieved_at": {
"type": "string",
"description": "Retrieval ISO timestamp."
},
"total_records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact final record count when known."
},
"delivery_limits": {
"type": "object",
"description": "Clamped controls for this call; an empty map means no clamp. Immediate cursor replay retains its original values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"requested",
"effective"
],
"properties": {
"effective": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Applied delivery ceiling.",
"exclusiveMinimum": 0
},
"requested": {
"type": "number",
"multipleOf": 1,
"description": "Caller-requested positive integer.",
"exclusiveMinimum": 0
}
},
"description": "Requested and effective delivery control.",
"additionalProperties": false
}
},
"output_complete": {
"type": "boolean",
"description": "Whether all result rows have been delivered."
},
"amendment_policy": {
"type": "string",
"const": "all_versions",
"description": "Originals and amendments remain separate."
},
"records_returned": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Whole records delivered in this window."
},
"cursor_expires_at": {
"type": "string",
"description": "Continuation expiry ISO timestamp."
},
"effective_filters": {
"type": "object",
"description": "Normalized effective scope.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"snapshot_source_urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "Official snapshot URLs."
},
"snapshot_retrieved_at": {
"type": "string",
"description": "FARA snapshot retrieval timestamp."
},
"snapshot_last_modified": {
"type": "string",
"description": "Upstream Last-Modified header."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}Resolve client relationship records by client_name in mode resolve (default), then use mode profile with explicit client_ids and years. Select candidates[].id, preserving secondary client_id as source data. IDs identify registrant relationships, not a verified corporate identity. Follow collecting cursors before interpreting separate income and expense ledgers. Typed rows preserve every audit filing; activity descriptions and lobbyist lists appear in them only when include names them, and a selected filing UUID passed to uslobbying_search_filings returns its complete record. Optional canvas datasets support SQL.
| Parameter | Type | Description |
|---|---|---|
| mode | string | resolve (default) finds client_name candidates; profile requires selected client_ids and years. Omit on continuation. |
| years | array | Required explicit analytical year scope; sorted and deduplicated. |
| cursor | string | Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call. |
| include | array | Profile mode only: lobbying-activity fields to return in selected_filings, raw_filings and activities, activity_descriptions (description) and activity_lobbyists (lobbyists). Fields left out are removed from delivered rows only; totals and SQL datasets are unaffected. Default []. Fixed for the scan:… |
| row_sets | array | Inline analytical sets; omit for all sets. Selection never limits acquisition, totals or SQL staging. Omitted sets remain available from a new call with another selection or staged tables. On a continuation, omit row_sets or list the sets of the first call in any order; listing every set after a fir… |
Aggregate separate income and expense amounts across explicit years on selected filings mentioning issue_code, or, when registrant_id is given without issue_code, on every selected filing in that registrant scope, broken out per client relationship in clients. Issue association is whole-filing, not allocated issue spending; issue buckets overlap. All versions are acquired before latest-period selection and local issue filtering. Broad scans can take hours; narrow client_id or registrant_id when appropriate. Follow collecting cursors before interpreting final typed rows or SQL datasets. Activity descriptions and lobbyist lists appear in typed rows only when include names them; pass a selected filing UUID to uslobbying_search_filings for its complete record.
| Parameter | Type | Description |
|---|---|---|
| years | array | Required explicit analytical year scope; sorted and deduplicated. |
| cursor | string | Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call. |
| include | array | Lobbying-activity fields to return in selected_filings, raw_filings and activities: activity_descriptions (description) and activity_lobbyists (lobbyists). Fields left out are removed from delivered rows only; totals and SQL datasets are unaffected. Default []. Fixed for the scan: a continuation omi… |
| row_sets | array | Inline analytical sets; omit for all sets. Selection never limits acquisition, totals or SQL staging. Omitted sets remain available from a new call with another selection or staged tables. On a continuation, omit row_sets or list the sets of the first call in any order; listing every set after a fir… |
| canvas_id |
Find lobbyists by name or registrant in mode search, then retrieve filing-scoped evidence with mode activity, lobbyist_id and filing_year. Pass an evidence filing_uuid to uslobbying_search_filings for the complete filing. Covered positions are disclosed text, not verified present employment. Activity mode checks the requested lobbyist locally; evidence activities carry description and lobbyist lists only when include names them. Follow next_cursor for all results.
| Parameter | Type | Description |
|---|---|---|
| mode | string | search (default) finds identities by name or registrant; activity requires lobbyist_id and filing_year. Omit with cursor. |
| name | string | Lobbyist identity name substring. |
| cursor | string | Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call. |
| include | array | Activity mode only: lobbying-activity fields to return in evidence[].activity, activity_descriptions (description) and activity_lobbyists (lobbyists). Fields left out are removed; nothing else is. Default []. Fixed for the scan: a continuation omits it or repeats it unchanged. |
| client_id | string | Optional activity client relationship record ID from candidates[].id in uslobbying_get_client_profile resolve mode; candidates[].client_id is secondary. |
| max_pages | number | Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis. |
Retrieve complete semiannual LD-203 reports, contributions, PAC relationships and certifications, preserving original and amended reports. Child predicates must match the same item; full parent contribution lists and matched_item_indexes remain available. Report counts are not donation counts and no cross-report donation total is inferred.
| Parameter | Type | Description |
|---|---|---|
| payee | string | Case-insensitive literal payee substring. |
| cursor | string | Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call. |
| honoree | string | Case-insensitive literal honoree substring. |
| max_pages | number | Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis. |
| page_size | number | Whole LD-203 reports delivered per call, each with its complete contribution list: default 10, at most 25; larger values clamp to it and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result or while acquisition is still collecting. |
| amount_max | string | Inclusive local same-item maximum exact decimal USD; complete parent lists remain available. |
| amount_min |
Search official FARA daily snapshots of registrants, foreign principals or short-form registrants, or fetch one registration's live foreign-principal, short-form or document collection. Short forms are the individuals working under a registration, searched by first and last name; a hit is a name match only and establishes no identity across registrations or with LDA lobbyists. Each call returns page_size whole records; follow next_cursor through the pinned result. Principal and short-form status differ from registrant status (registrant_status). Disclosure records do not establish wrongdoing or influence.
| Parameter | Type | Description |
|---|---|---|
| mode | string | Search daily snapshots or fetch one registration detail collection; defaults to search. |
| cursor | string | Opaque continuation; original filters may be omitted or repeated unchanged. |
| detail | string | Detail collection, default foreign_principals; unavailable in search mode. |
| entity | string | Search entity, default registrants; short_forms finds the individuals filed under a registration by first and last name. Unavailable in detail mode. |
| status | string | Status of the selected record itself, default active; documents require all. |
| country | string | Exact represented country/location label, foreign-principal search only. |
| page_size | number | Whole records per window, default 25, at most 1,000; larger values clamp to 1,000 and are disclosed in delivery_limits. Part of the scope: omit it or repeat it unchanged on continuations. |
List official LDA issue codes, filing types, government entities, contribution types, countries and states, or explain identifiers, methodology and FARA rules. Optional filter performs case-insensitive literal token-AND matching across the complete vocabulary. Each call returns a fixed window of up to 125 whole entries; follow next_cursor for the rest. LDA filter codes are the value of entries with source lda, such as US or CN for countries and WA for states. Countries also list FARA country/location labels (source fara) for the uslobbying_search_foreign_agents country filter; they are source spellings, not ISO codes, and never valid LDA filter values.
| Parameter | Type | Description |
|---|---|---|
| topic | string | Vocabulary or explanatory topic; required on the first call. |
| cursor | string | Pinned continuation; omit original topic/filter or repeat them unchanged. |
| filter | string | Every whitespace-separated token must occur literally in an entry. |
{
"name": "uslobbying_list_reference",
"title": "Uslobbying List Reference",
"description": "List official LDA issue codes, filing types, government entities, contribution types, countries and states, or explain identifiers, methodology and FARA rules. Optional filter performs case-insensitive literal token-AND matching across the complete vocabulary. Each call returns a fixed window of up to 125 whole entries; follow next_cursor for the rest. LDA filter codes are the value of entries with source lda, such as US or CN for countries and WA for states. Countries also list FARA country/location labels (source fara) for the uslobbying_search_foreign_agents country filter; they are source spellings, not ISO codes, and never valid LDA filter values.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"topic": {
"enum": [
"issue_codes",
"filing_types",
"government_entities",
"contribution_types",
"countries",
"states",
"identifiers",
"methodology",
"fara_rules"
],
"type": "string",
"description": "Vocabulary or explanatory topic; required on the first call."
},
"cursor": {
"type": "string",
"minLength": 1,
"description": "Pinned continuation; omit original topic/filter or repeat them unchanged."
},
"filter": {
"type": "string",
"description": "Every whitespace-separated token must occur literally in an entry."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"topic",
"entries",
"total_entries",
"matched_entries",
"retrieved_at",
"source_urls",
"notices",
"output_complete",
"truncated",
"offset",
"records_returned",
"cursor_expires_at"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_filter",
"cursor_invalid",
"acquisition_storage_unavailable",
"source_schema_changed",
"snapshot_unavailable"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_filter`: The first call omits topic. `cursor_invalid`: A cursor is unavailable or expired, belongs to another tenant or tool, or arrives with a changed topic or filter. `acquisition_storage_unavailable`: Storage cannot retain the complete vocabulary or its checkpoint safely. `source_schema_changed`: Source vocabulary violates its verified schema. `snapshot_unavailable`: Required FARA country snapshot is unavailable. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"topic": {
"enum": [
"issue_codes",
"filing_types",
"government_entities",
"contribution_types",
"countries",
"states",
"identifiers",
"methodology",
"fara_rules"
],
"type": "string",
"description": "Requested vocabulary."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Entries delivered before this window."
},
"entries": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"name",
"source"
],
"properties": {
"name": {
"type": "string",
"description": "Source label or explanation title."
},
"value": {
"type": "string",
"description": "Official code or explanatory identifier."
},
"source": {
"enum": [
"lda",
"fara",
"methodology"
],
"type": "string",
"description": "Vocabulary source."
},
"description": {
"type": "string",
"description": "Interpretation and limitations."
}
},
"description": "One attributed vocabulary entry or methodology explanation.",
"additionalProperties": false
},
"description": "Whole entries delivered in this fixed 125-entry window."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Source limitations and empty-result recovery."
},
"truncated": {
"type": "boolean",
"description": "More matched entries remain; follow next_cursor."
},
"next_cursor": {
"type": "string",
"description": "Opaque continuation of the pinned vocabulary."
},
"source_urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "Official source references."
},
"retrieved_at": {
"type": "string",
"description": "Retrieval timestamp: the shared LDA constants fetch for LDA topics (the older of the LDA and FARA retrievals for countries), the call time for explanatory topics."
},
"total_entries": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Entries before local filtering."
},
"matched_entries": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Entries matching every literal filter token."
},
"output_complete": {
"type": "boolean",
"description": "Whether every matched entry has been delivered."
},
"records_returned": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Whole entries delivered in this window."
},
"cursor_expires_at": {
"type": "string",
"description": "Absolute expiry of the pinned vocabulary and its continuations."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}Run one read-only SELECT over staged disclosure tables, materialize the complete result, then retrieve whole rows by result_table and next_offset without rerunning SQL. Each call returns row_limit rows, or the rest of the result when fewer remain. Rows follow the materialized SQL result order set by a top-level ORDER BY; an ORDER BY only inside a CTE or subquery does not guarantee it, and without one the order is fixed once materialized. Inspect columns with uslobbying_dataframe_describe first.
| Parameter | Type | Description |
|---|---|---|
| sql | string | One read-only SELECT; exclusive with result_table and offset. |
| offset | integer | Row offset into result_table, default zero, in the materialized SQL result order set by a top-level ORDER BY; an ORDER BY only inside a CTE or subquery does not guarantee it. An offset equal to row_count returns no rows. |
| canvas_id * | string | Canvas token returned by a disclosure analytical tool. |
| row_limit | number | Whole rows to return, default 25, at most 100 per call; larger values clamp to 100, then to any lower provider ceiling, and the clamp is disclosed in delivery_limits. |
| register_as | string | Fresh result table name for a new SQL call; omit for a generated name. |
| result_table | string | Previously materialized result table; exclusive with sql and register_as. |
Inspect exact staged table schemas, row counts, lifecycle, acquisition coverage and provenance before SQL.
| Parameter | Type | Description |
|---|---|---|
| canvas_id * | string | Canvas token returned by an analytical disclosure tool. |
| table_name | string | Existing table to inspect; omit for every table in this canvas. |
{
"name": "uslobbying_dataframe_describe",
"title": "Describe disclosure tables",
"description": "Inspect exact staged table schemas, row counts, lifecycle, acquisition coverage and provenance before SQL.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"canvas_id"
],
"properties": {
"canvas_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{10}$",
"description": "Canvas token returned by an analytical disclosure tool."
},
"table_name": {
"type": "string",
"minLength": 1,
"description": "Existing table to inspect; omit for every table in this canvas."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"canvas_id",
"describe_tool",
"query_tool",
"guidance",
"tables"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"canvas_unavailable",
"canvas_not_found",
"missing_table"
],
"description": "Machine-readable failure mode. Declared by this tool: `canvas_unavailable`: Canvas is not configured. `canvas_not_found`: Canvas token is unknown or expired. `missing_table`: Named table is absent or expired. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"tables": {
"type": "array",
"items": {
"type": "object",
"required": [
"table_name",
"row_count",
"columns",
"grain",
"complete",
"created_at",
"expires_at",
"source_tool"
],
"properties": {
"sql": {
"type": "string",
"description": "SQL that materialized a derived table."
},
"grain": {
"type": "string",
"description": "Meaning of one row; activity rows have no money."
},
"columns": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type",
"nullable"
],
"properties": {
"name": {
"type": "string",
"description": "Column name."
},
"type": {
"type": "string",
"description": "Provider column type."
},
"nullable": {
"type": "boolean",
"description": "Whether null values are permitted."
}
},
"description": "Provider column.",
"additionalProperties": false
},
"description": "Explicit complete schema."
},
"complete": {
"type": "boolean",
"description": "Whether every intended row is registered."
},
"row_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact registered row count."
},
"created_at": {
"type": "string",
"description": "Table creation ISO timestamp."
},
"expires_at": {
"type": "string",
"description": "Table expiry ISO timestamp."
},
"provenance": {
"type": "object",
"required": [
"source",
"retrieved_at",
"effective_filters",
"notices",
"coverage"
],
"properties": {
"source": {
"enum": [
"lda",
"fara"
],
"type": "string",
"description": "Official source system."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Limitations and success notices."
},
"coverage": {
"type": "object",
"required": [
"complete",
"pages_fetched",
"records_fetched",
"unique_records",
"started_at"
],
"properties": {
"complete": {
"type": "boolean",
"description": "Whether every source partition has been exhausted."
},
"started_at": {
"type": "string",
"description": "Acquisition start ISO timestamp."
},
"finished_at": {
"type": "string",
"description": "Acquisition end ISO timestamp."
},
"next_cursor": {
"type": "string",
"description": "Opaque acquisition or output continuation."
},
"pages_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Committed upstream pages fetched."
},
"unique_records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unique acquired source records."
},
"upstream_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Latest partition counts summed only when all are known; includes duplicates, not an immutable snapshot."
},
"records_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Rows before UUID deduplication."
}
},
"description": "Acquisition progress, independent of delivery.",
"additionalProperties": false
},
"attribution": {
"type": "string",
"description": "Required verbatim attribution for LDA data."
},
"retrieved_at": {
"type": "string",
"description": "Retrieval ISO timestamp."
},
"delivery_limits": {
"type": "object",
"description": "Clamped controls for this call; an empty map means no clamp. Immediate cursor replay retains its original values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"requested",
"effective"
],
"properties": {
"effective": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Applied delivery ceiling.",
"exclusiveMinimum": 0
},
"requested": {
"type": "number",
"multipleOf": 1,
"description": "Caller-requested positive integer.",
"exclusiveMinimum": 0
}
},
"description": "Requested and effective delivery control.",
"additionalProperties": false
}
},
"cursor_expires_at": {
"type": "string",
"description": "Continuation expiry ISO timestamp."
},
"effective_filters": {
"type": "object",
"description": "Normalized effective scope.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"snapshot_source_urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "Official snapshot URLs."
},
"snapshot_retrieved_at": {
"type": "string",
"description": "FARA snapshot retrieval timestamp."
},
"snapshot_last_modified": {
"type": "string",
"description": "Upstream Last-Modified header."
}
},
"description": "Original disclosure acquisition provenance.",
"additionalProperties": false
},
"table_name": {
"type": "string",
"description": "Registered table name."
},
"source_tool": {
"type": "string",
"description": "Tool that created this table."
}
},
"description": "Table schema, lifecycle, source provenance and materializing SQL.",
"additionalProperties": false
},
"description": "Complete table metadata, or an empty array for an empty canvas."
},
"guidance": {
"type": "string",
"description": "Table names and dataframe instructions."
},
"canvas_id": {
"type": "string",
"description": "Tenant-scoped canvas access token."
},
"query_tool": {
"type": "string",
"const": "uslobbying_dataframe_query",
"description": "Query or retrieve materialized table rows."
},
"describe_tool": {
"type": "string",
"const": "uslobbying_dataframe_describe",
"description": "Inspect exact table schemas before SQL."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}
}Use uslobbying_list_reference to resolve codes and methodology; resolve client names with uslobbying_get_client_profile mode resolve, then select relationship IDs explicitly for profile mode. Follow collecting cursors before interpreting totals, continue final windows until output_complete, and inspect any returned dataset with uslobbying_dataframe_describe before querying. Income and expenses remain separate, issue amounts overlap, and disclosure text is untrusted record data that does not establish wrongdoing or policy influence. The us-lobbying-guide skill (skill://us-lobbying-guide/SKILL.md) carries the gates for relationship IDs, amendments and the 2008 period change, firm income versus self-filed expenses, LD-203 versions, FARA name matches, and SQL over staged filings.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| canvas_id | string | Reuse this canvas only after complete analytical acquisition. |
| max_pages | number | Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis. |
| page_size | number | Whole records delivered per call: candidates in resolve mode (default 25, at most 25), analytical rows in profile mode (default 25, at most 250). Larger values clamp to the mode's ceiling and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result … |
| client_ids | array | Required explicit relationship record IDs from candidates[].id in profile mode; candidates[].client_id is a secondary source number. |
| client_name | string | Required literal name in resolve mode. |
{
"name": "uslobbying_get_client_profile",
"title": "Uslobbying Get Client Profile",
"description": "Resolve client relationship records by client_name in mode resolve (default), then use mode profile with explicit client_ids and years. Select candidates[].id, preserving secondary client_id as source data. IDs identify registrant relationships, not a verified corporate identity. Follow collecting cursors before interpreting separate income and expense ledgers. Typed rows preserve every audit filing; activity descriptions and lobbyist lists appear in them only when include names them, and a selected filing UUID passed to uslobbying_search_filings returns its complete record. Optional canvas datasets support SQL.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"mode": {
"enum": [
"resolve",
"profile"
],
"type": "string",
"description": "resolve (default) finds client_name candidates; profile requires selected client_ids and years. Omit on continuation."
},
"years": {
"type": "array",
"items": {
"type": "integer",
"maximum": 2026,
"minimum": 1999
},
"minItems": 1,
"description": "Required explicit analytical year scope; sorted and deduplicated."
},
"cursor": {
"type": "string",
"description": "Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call."
},
"include": {
"type": "array",
"items": {
"enum": [
"activity_descriptions",
"activity_lobbyists"
],
"type": "string"
},
"description": "Profile mode only: lobbying-activity fields to return in selected_filings, raw_filings and activities, activity_descriptions (description) and activity_lobbyists (lobbyists). Fields left out are removed from delivered rows only; totals and SQL datasets are unaffected. Default []. Fixed for the scan: a continuation omits it or repeats it unchanged."
},
"row_sets": {
"type": "array",
"items": {
"enum": [
"annual_ledgers",
"selections",
"firms",
"clients",
"issue_codes",
"targeted_entities",
"selected_filings",
"activities",
"raw_filings"
],
"type": "string"
},
"minItems": 1,
"description": "Inline analytical sets; omit for all sets. Selection never limits acquisition, totals or SQL staging. Omitted sets remain available from a new call with another selection or staged tables. On a continuation, omit row_sets or list the sets of the first call in any order; listing every set after a first call that omitted row_sets fails cursor_invalid."
},
"canvas_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{10}$",
"description": "Reuse this canvas only after complete analytical acquisition."
},
"max_pages": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis."
},
"page_size": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Whole records delivered per call: candidates in resolve mode (default 25, at most 25), analytical rows in profile mode (default 25, at most 250). Larger values clamp to the mode's ceiling and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result or while acquisition is still collecting."
},
"client_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d+$",
"description": "Digit-string source relationship identifier."
},
"minItems": 1,
"description": "Required explicit relationship record IDs from candidates[].id in profile mode; candidates[].client_id is a secondary source number."
},
"client_name": {
"type": "string",
"description": "Required literal name in resolve mode."
}
},
"additionalProperties": false
},
"outputSchema": {
"truncated": true,
"chars": 27167
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}| string |
| Reuse this canvas only after complete analytical acquisition. |
| client_id | string | Optional client relationship record ID from candidates[].id in uslobbying_get_client_profile resolve mode; candidates[].client_id is secondary. |
| max_pages | number | Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis. |
| page_size | number | Whole analytical rows delivered per call: default 25, at most 250; larger values clamp to it and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result or while acquisition is still collecting. |
| issue_code | string | First-call code from uslobbying_list_reference topic issue_codes. Required unless registrant_id is given; omit it with registrant_id for ledgers across every issue. |
| registrant_id | string | Optional native registrant scope; without issue_code, ledgers cover every issue. |
{
"name": "uslobbying_get_issue_spending",
"title": "Uslobbying Get Issue Spending",
"description": "Aggregate separate income and expense amounts across explicit years on selected filings mentioning issue_code, or, when registrant_id is given without issue_code, on every selected filing in that registrant scope, broken out per client relationship in clients. Issue association is whole-filing, not allocated issue spending; issue buckets overlap. All versions are acquired before latest-period selection and local issue filtering. Broad scans can take hours; narrow client_id or registrant_id when appropriate. Follow collecting cursors before interpreting final typed rows or SQL datasets. Activity descriptions and lobbyist lists appear in typed rows only when include names them; pass a selected filing UUID to uslobbying_search_filings for its complete record.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"years": {
"type": "array",
"items": {
"type": "integer",
"maximum": 2026,
"minimum": 1999
},
"minItems": 1,
"description": "Required explicit analytical year scope; sorted and deduplicated."
},
"cursor": {
"type": "string",
"description": "Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call."
},
"include": {
"type": "array",
"items": {
"enum": [
"activity_descriptions",
"activity_lobbyists"
],
"type": "string"
},
"description": "Lobbying-activity fields to return in selected_filings, raw_filings and activities: activity_descriptions (description) and activity_lobbyists (lobbyists). Fields left out are removed from delivered rows only; totals and SQL datasets are unaffected. Default []. Fixed for the scan: a continuation omits it or repeats it unchanged."
},
"row_sets": {
"type": "array",
"items": {
"enum": [
"annual_ledgers",
"selections",
"firms",
"clients",
"issue_codes",
"targeted_entities",
"selected_filings",
"activities",
"raw_filings"
],
"type": "string"
},
"minItems": 1,
"description": "Inline analytical sets; omit for all sets. Selection never limits acquisition, totals or SQL staging. Omitted sets remain available from a new call with another selection or staged tables. On a continuation, omit row_sets or list the sets of the first call in any order; listing every set after a first call that omitted row_sets fails cursor_invalid."
},
"canvas_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{10}$",
"description": "Reuse this canvas only after complete analytical acquisition."
},
"client_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Optional client relationship record ID from candidates[].id in uslobbying_get_client_profile resolve mode; candidates[].client_id is secondary."
},
"max_pages": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis."
},
"page_size": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Whole analytical rows delivered per call: default 25, at most 250; larger values clamp to it and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result or while acquisition is still collecting."
},
"issue_code": {
"type": "string",
"description": "First-call code from uslobbying_list_reference topic issue_codes. Required unless registrant_id is given; omit it with registrant_id for ledgers across every issue."
},
"registrant_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Optional native registrant scope; without issue_code, ledgers cover every issue."
}
},
"additionalProperties": false
},
"outputSchema": {
"truncated": true,
"chars": 26843
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}| page_size | number | Whole records delivered per call: identities in search mode (default 25, at most 25), evidence rows in activity mode (default 25, at most 1000). Larger values clamp to the mode's ceiling and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result o… |
| filing_year | integer | Required report year in activity mode. |
| lobbyist_id | string | Required in activity mode. |
| registrant_id | string | Registrant identity ID. |
| registrant_name | string | Registrant identity name substring. |
| covered_positions_only | boolean | Activity only: require this lobbyist’s nonblank covered-position disclosure. |
{
"name": "uslobbying_search_lobbyists",
"title": "Uslobbying Search Lobbyists",
"description": "Find lobbyists by name or registrant in mode search, then retrieve filing-scoped evidence with mode activity, lobbyist_id and filing_year. Pass an evidence filing_uuid to uslobbying_search_filings for the complete filing. Covered positions are disclosed text, not verified present employment. Activity mode checks the requested lobbyist locally; evidence activities carry description and lobbyist lists only when include names them. Follow next_cursor for all results.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"mode": {
"enum": [
"search",
"activity"
],
"type": "string",
"description": "search (default) finds identities by name or registrant; activity requires lobbyist_id and filing_year. Omit with cursor."
},
"name": {
"type": "string",
"description": "Lobbyist identity name substring."
},
"cursor": {
"type": "string",
"description": "Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call."
},
"include": {
"type": "array",
"items": {
"enum": [
"activity_descriptions",
"activity_lobbyists"
],
"type": "string"
},
"description": "Activity mode only: lobbying-activity fields to return in evidence[].activity, activity_descriptions (description) and activity_lobbyists (lobbyists). Fields left out are removed; nothing else is. Default []. Fixed for the scan: a continuation omits it or repeats it unchanged."
},
"client_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Optional activity client relationship record ID from candidates[].id in uslobbying_get_client_profile resolve mode; candidates[].client_id is secondary."
},
"max_pages": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis."
},
"page_size": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Whole records delivered per call: identities in search mode (default 25, at most 25), evidence rows in activity mode (default 25, at most 1000). Larger values clamp to the mode's ceiling and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result or while acquisition is still collecting."
},
"filing_year": {
"type": "integer",
"maximum": 2026,
"minimum": 1999,
"description": "Required report year in activity mode."
},
"lobbyist_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Required in activity mode."
},
"registrant_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Registrant identity ID."
},
"registrant_name": {
"type": "string",
"description": "Registrant identity name substring."
},
"covered_positions_only": {
"type": "boolean",
"description": "Activity only: require this lobbyist’s nonblank covered-position disclosure."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
},
"LdaLobbyist": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lobbyist identifier."
},
"last_name": {
"type": [
"string",
"null"
],
"description": "Source last name."
},
"first_name": {
"type": [
"string",
"null"
],
"description": "Source first name."
},
"registrant": {
"$ref": "#/$defs/LdaRegistrant",
"description": "Registrant embedded by identity search."
},
"middle_name": {
"type": [
"string",
"null"
],
"description": "Source middle name."
}
},
"description": "Disclosed lobbyist identity.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"LdaRegistrant": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Registrant identifier."
},
"name": {
"type": "string",
"description": "Source registrant name."
},
"description": {
"type": [
"string",
"null"
],
"description": "Reported business description."
},
"house_registrant_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$",
"description": "Digit-string identifier; leading zeroes are meaningful."
},
{
"type": "null"
}
],
"description": "House identifier when supplied."
}
},
"description": "Registrant relationship and disclosures.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"LdaActivityLobbyist": {
"type": "object",
"required": [
"lobbyist"
],
"properties": {
"new": {
"type": [
"boolean",
"null"
],
"description": "Source new-lobbyist flag."
},
"lobbyist": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lobbyist identifier."
},
"last_name": {
"type": [
"string",
"null"
],
"description": "Source last name."
},
"first_name": {
"type": [
"string",
"null"
],
"description": "Source first name."
},
"middle_name": {
"type": [
"string",
"null"
],
"description": "Source middle name."
}
},
"description": "Filing identity; registrant comes from the parent. All source fields are retained.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"covered_position": {
"type": [
"string",
"null"
],
"description": "Reported covered-position text, not verified employment."
}
},
"description": "Filing-scoped lobbyist participation.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"LdaLobbyingActivity": {
"type": "object",
"required": [
"general_issue_code"
],
"properties": {
"lobbyists": {
"type": "array",
"items": {
"$ref": "#/$defs/LdaActivityLobbyist"
},
"description": "All disclosed participants."
},
"description": {
"type": [
"string",
"null"
],
"description": "Complete specific-issues description."
},
"general_issue_code": {
"type": "string",
"description": "Official general issue code."
},
"government_entities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Official entity ID."
},
"name": {
"type": [
"string",
"null"
],
"description": "Source entity name."
}
},
"description": "Disclosed government entity.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"description": "All targeted government entities."
},
"foreign_entity_issues": {
"type": [
"string",
"null"
],
"description": "Disclosed foreign issues."
}
},
"description": "Complete reported lobbying activity.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"source",
"retrieved_at",
"effective_filters",
"notices",
"coverage"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"mode": {
"enum": [
"search",
"activity"
],
"type": "string",
"description": "Resolved operation."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_filter",
"cursor_invalid",
"acquisition_storage_unavailable",
"pagination_invalid",
"source_schema_changed"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_filter`: Invalid scope, identifier, reference code or mode combination, or an over-cap page_size or max_pages while clamping is disabled. `cursor_invalid`: Unknown, expired, stale or mismatched continuation. `acquisition_storage_unavailable`: Storage cannot safely retain a checkpoint. `pagination_invalid`: Invalid or nonprogressing upstream pagination. `source_schema_changed`: Successful source response violates its verified schema. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Records delivered before this window."
},
"source": {
"enum": [
"lda",
"fara"
],
"type": "string",
"description": "Official source system."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Limitations and success notices."
},
"coverage": {
"type": "object",
"required": [
"complete",
"pages_fetched",
"records_fetched",
"unique_records",
"started_at"
],
"properties": {
"complete": {
"type": "boolean",
"description": "Whether every source partition has been exhausted."
},
"started_at": {
"type": "string",
"description": "Acquisition start ISO timestamp."
},
"finished_at": {
"type": "string",
"description": "Acquisition end ISO timestamp."
},
"next_cursor": {
"type": "string",
"description": "Opaque acquisition or output continuation."
},
"pages_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Committed upstream pages fetched."
},
"unique_records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unique acquired source records."
},
"upstream_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Latest partition counts summed only when all are known; includes duplicates, not an immutable snapshot."
},
"records_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Rows before UUID deduplication."
}
},
"description": "Acquisition progress, independent of delivery.",
"additionalProperties": false
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"required": [
"lobbyist",
"filing_uuid",
"filing_year",
"filing_period",
"filing_type",
"dt_posted",
"registrant_id",
"client_id",
"activity_index",
"lobbyist_index",
"general_issue_code",
"activity"
],
"properties": {
"new": {
"type": [
"boolean",
"null"
],
"description": "Source new-lobbyist flag."
},
"activity": {
"$ref": "#/$defs/LdaLobbyingActivity",
"description": "Matched activity; description and its lobbyist list appear only when include names them."
},
"lobbyist": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lobbyist identifier."
},
"last_name": {
"type": [
"string",
"null"
],
"description": "Source last name."
},
"first_name": {
"type": [
"string",
"null"
],
"description": "Source first name."
},
"middle_name": {
"type": [
"string",
"null"
],
"description": "Source middle name."
}
},
"description": "Filing identity; registrant comes from the parent. All source fields are retained.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"client_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$",
"description": "Digit-string source relationship identifier."
},
{
"type": "null"
}
],
"description": "Parent client relationship."
},
"dt_posted": {
"type": "string",
"description": "Parent posting time."
},
"filing_type": {
"type": "string",
"description": "Parent report type."
},
"filing_uuid": {
"type": "string",
"description": "Parent filing UUID."
},
"filing_year": {
"type": "integer",
"maximum": 2026,
"minimum": 1999,
"description": "Parent report year."
},
"filing_period": {
"type": "string",
"description": "Parent period."
},
"registrant_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$",
"description": "Digit-string source relationship identifier."
},
{
"type": "null"
}
],
"description": "Parent registrant."
},
"activity_index": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Original activity index."
},
"lobbyist_index": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Original participant index."
},
"covered_position": {
"type": [
"string",
"null"
],
"description": "Reported covered-position text, not verified employment."
},
"general_issue_code": {
"type": "string",
"description": "Activity issue code."
},
"filing_document_url": {
"type": [
"string",
"null"
],
"description": "Returned document URL."
}
},
"description": "Complete filing-scoped lobbyist evidence.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"description": "Matched filing-based participant evidence in activity mode."
},
"lobbyists": {
"type": "array",
"items": {
"$ref": "#/$defs/LdaLobbyist"
},
"description": "Complete identity records in search mode."
},
"truncated": {
"type": "boolean",
"description": "More data is available through next_cursor; no source data was discarded."
},
"attribution": {
"type": "string",
"description": "Required verbatim attribution for LDA data."
},
"next_cursor": {
"type": "string",
"description": "Next acquisition or output window cursor."
},
"retrieved_at": {
"type": "string",
"description": "Retrieval ISO timestamp."
},
"total_records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact final record count when known."
},
"delivery_limits": {
"type": "object",
"description": "Clamped controls for this call; an empty map means no clamp. Immediate cursor replay retains its original values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"requested",
"effective"
],
"properties": {
"effective": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Applied delivery ceiling.",
"exclusiveMinimum": 0
},
"requested": {
"type": "number",
"multipleOf": 1,
"description": "Caller-requested positive integer.",
"exclusiveMinimum": 0
}
},
"description": "Requested and effective delivery control.",
"additionalProperties": false
}
},
"output_complete": {
"type": "boolean",
"description": "Whether all result rows have been delivered."
},
"records_returned": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Whole records delivered in this window."
},
"cursor_expires_at": {
"type": "string",
"description": "Continuation expiry ISO timestamp."
},
"effective_filters": {
"type": "object",
"description": "Normalized effective scope.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"snapshot_source_urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "Official snapshot URLs."
},
"snapshot_retrieved_at": {
"type": "string",
"description": "FARA snapshot retrieval timestamp."
},
"snapshot_last_modified": {
"type": "string",
"description": "Upstream Last-Modified header."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}| string |
| Inclusive local same-item minimum exact decimal USD; complete parent lists remain available. |
| contributor | string | Case-insensitive literal contributor substring. |
| filing_year | integer | Required first-call reporting year, 2008 through current UTC year. |
| lobbyist_id | string | Lobbyist filer ID. |
| filing_period | string | Semiannual period. |
| lobbyist_name | string | Lobbyist name upstream search. |
| registrant_id | string | Registrant ID. |
| registrant_name | string | Registrant name upstream search. |
| contribution_type | string | Official feca, he, me, ple or pic payment code. |
| contribution_date_after | string | Inclusive earliest item calendar date. |
| contribution_date_before | string | Inclusive latest item calendar date. |
{
"name": "uslobbying_get_contributions",
"title": "Uslobbying Get Contributions",
"description": "Retrieve complete semiannual LD-203 reports, contributions, PAC relationships and certifications, preserving original and amended reports. Child predicates must match the same item; full parent contribution lists and matched_item_indexes remain available. Report counts are not donation counts and no cross-report donation total is inferred.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"payee": {
"type": "string",
"description": "Case-insensitive literal payee substring."
},
"cursor": {
"type": "string",
"description": "Continue the original scope; omit the other fields or repeat them unchanged, since a changed value (page_size included) fails cursor_invalid. Only max_pages may change per call."
},
"honoree": {
"type": "string",
"description": "Case-insensitive literal honoree substring."
},
"max_pages": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Most upstream pages fetched per call, at most 5; larger values clamp and are disclosed in delivery_limits. Discovery fetches only while fewer than page_size matches are pending. Default one for discovery, five for analysis."
},
"page_size": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Whole LD-203 reports delivered per call, each with its complete contribution list: default 10, at most 25; larger values clamp to it and are disclosed in delivery_limits. Not the upstream page size; a page is short only at the end of the result or while acquisition is still collecting."
},
"amount_max": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$",
"description": "Inclusive local same-item maximum exact decimal USD; complete parent lists remain available."
},
"amount_min": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$",
"description": "Inclusive local same-item minimum exact decimal USD; complete parent lists remain available."
},
"contributor": {
"type": "string",
"description": "Case-insensitive literal contributor substring."
},
"filing_year": {
"type": "integer",
"maximum": 2026,
"minimum": 2008,
"description": "Required first-call reporting year, 2008 through current UTC year."
},
"lobbyist_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lobbyist filer ID."
},
"filing_period": {
"enum": [
"mid_year",
"year_end"
],
"type": "string",
"description": "Semiannual period."
},
"lobbyist_name": {
"type": "string",
"description": "Lobbyist name upstream search."
},
"registrant_id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Registrant ID."
},
"registrant_name": {
"type": "string",
"description": "Registrant name upstream search."
},
"contribution_type": {
"type": "string",
"description": "Official feca, he, me, ple or pic payment code."
},
"contribution_date_after": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Inclusive earliest item calendar date."
},
"contribution_date_before": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Inclusive latest item calendar date."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
},
"LdaLobbyist": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lobbyist identifier."
},
"last_name": {
"type": [
"string",
"null"
],
"description": "Source last name."
},
"first_name": {
"type": [
"string",
"null"
],
"description": "Source first name."
},
"registrant": {
"$ref": "#/$defs/LdaRegistrant",
"description": "Registrant embedded by identity search."
},
"middle_name": {
"type": [
"string",
"null"
],
"description": "Source middle name."
}
},
"description": "Disclosed lobbyist identity.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"LdaRegistrant": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"pattern": "^\\d+$",
"description": "Registrant identifier."
},
"name": {
"type": "string",
"description": "Source registrant name."
},
"description": {
"type": [
"string",
"null"
],
"description": "Reported business description."
},
"house_registrant_id": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d+$",
"description": "Digit-string identifier; leading zeroes are meaningful."
},
{
"type": "null"
}
],
"description": "House identifier when supplied."
}
},
"description": "Registrant relationship and disclosures.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"source",
"retrieved_at",
"effective_filters",
"notices",
"coverage"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_filter",
"cursor_invalid",
"acquisition_storage_unavailable",
"pagination_invalid",
"source_schema_changed"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_filter`: Invalid scope, identifier, reference code or mode combination, or an over-cap page_size or max_pages while clamping is disabled. `cursor_invalid`: Unknown, expired, stale or mismatched continuation. `acquisition_storage_unavailable`: Storage cannot safely retain a checkpoint. `pagination_invalid`: Invalid or nonprogressing upstream pagination. `source_schema_changed`: Successful source response violates its verified schema. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Records delivered before this window."
},
"source": {
"enum": [
"lda",
"fara"
],
"type": "string",
"description": "Official source system."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Limitations and success notices."
},
"reports": {
"type": "array",
"items": {
"type": "object",
"required": [
"filing_uuid",
"filing_type",
"filing_year",
"filing_period",
"dt_posted",
"contribution_items"
],
"properties": {
"pacs": {
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
},
"description": "All disclosed PAC relationships."
},
"comments": {
"type": [
"string",
"null"
],
"description": "Complete source comments."
},
"lobbyist": {
"anyOf": [
{
"$ref": "#/$defs/LdaLobbyist"
},
{
"type": "null"
}
],
"description": "Reported lobbyist filer."
},
"dt_posted": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "Source posting timestamp used in analytical selection."
},
"filer_type": {
"type": [
"string",
"null"
],
"description": "Source filer category."
},
"registrant": {
"anyOf": [
{
"$ref": "#/$defs/LdaRegistrant"
},
{
"type": "null"
}
],
"description": "Reported registrant."
},
"filing_type": {
"type": "string",
"description": "Official filing type, including amendments."
},
"filing_uuid": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Filing UUID."
},
"filing_year": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Reported filing year."
},
"filing_period": {
"type": "string",
"description": "Source quarterly or semiannual period."
},
"no_contributions": {
"type": [
"boolean",
"null"
],
"description": "Source no-contribution declaration."
},
"contribution_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": [
"string",
"null"
],
"description": "Reported contribution calendar date."
},
"amount": {
"anyOf": [
{
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
{
"type": "null"
}
],
"description": "Exact reported USD amount."
},
"payee_name": {
"type": [
"string",
"null"
],
"description": "Disclosed payee."
},
"honoree_name": {
"type": [
"string",
"null"
],
"description": "Disclosed honoree."
},
"contributor_name": {
"type": [
"string",
"null"
],
"description": "Disclosed contributor."
},
"contribution_type": {
"type": [
"string",
"null"
],
"description": "Source payment category."
}
},
"description": "One contribution item within its parent report.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"description": "Complete child list, never a filtered subset."
},
"filing_document_url": {
"type": [
"string",
"null"
],
"description": "Official filing-document URL."
},
"matched_item_indexes": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"description": "Derived indexes satisfying all local child predicates."
},
"filing_document_content_type": {
"type": [
"string",
"null"
],
"description": "Source document media type."
}
},
"description": "Complete contribution report and child lists.",
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"description": "Full parent reports and complete child lists."
},
"coverage": {
"type": "object",
"required": [
"complete",
"pages_fetched",
"records_fetched",
"unique_records",
"started_at"
],
"properties": {
"complete": {
"type": "boolean",
"description": "Whether every source partition has been exhausted."
},
"started_at": {
"type": "string",
"description": "Acquisition start ISO timestamp."
},
"finished_at": {
"type": "string",
"description": "Acquisition end ISO timestamp."
},
"next_cursor": {
"type": "string",
"description": "Opaque acquisition or output continuation."
},
"pages_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Committed upstream pages fetched."
},
"unique_records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unique acquired source records."
},
"upstream_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Latest partition counts summed only when all are known; includes duplicates, not an immutable snapshot."
},
"records_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Rows before UUID deduplication."
}
},
"description": "Acquisition progress, independent of delivery.",
"additionalProperties": false
},
"truncated": {
"type": "boolean",
"description": "More data is available through next_cursor; no source data was discarded."
},
"attribution": {
"type": "string",
"description": "Required verbatim attribution for LDA data."
},
"next_cursor": {
"type": "string",
"description": "Next acquisition or output window cursor."
},
"retrieved_at": {
"type": "string",
"description": "Retrieval ISO timestamp."
},
"total_records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact final record count when known."
},
"delivery_limits": {
"type": "object",
"description": "Clamped controls for this call; an empty map means no clamp. Immediate cursor replay retains its original values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"requested",
"effective"
],
"properties": {
"effective": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Applied delivery ceiling.",
"exclusiveMinimum": 0
},
"requested": {
"type": "number",
"multipleOf": 1,
"description": "Caller-requested positive integer.",
"exclusiveMinimum": 0
}
},
"description": "Requested and effective delivery control.",
"additionalProperties": false
}
},
"output_complete": {
"type": "boolean",
"description": "Whether all result rows have been delivered."
},
"amendment_policy": {
"type": "string",
"const": "all_versions",
"description": "Amendments remain separate reports."
},
"records_returned": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Whole records delivered in this window."
},
"cursor_expires_at": {
"type": "string",
"description": "Continuation expiry ISO timestamp."
},
"effective_filters": {
"type": "object",
"description": "Normalized effective scope.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"item_count_in_batch": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Items in returned complete parent lists."
},
"snapshot_source_urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "Official snapshot URLs."
},
"report_count_in_batch": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Complete parent reports returned."
},
"snapshot_retrieved_at": {
"type": "string",
"description": "FARA snapshot retrieval timestamp."
},
"snapshot_last_modified": {
"type": "string",
"description": "Upstream Last-Modified header."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}| name_contains | string | Search-only literal case-insensitive token-AND match over entity names; a short-form name is its first and last name joined. Short-form hits are name matches only, with no identity across registrations or with LDA lobbyists. |
| registration_number | string | Lossless digit-string registration number, required for detail mode. |
{
"name": "uslobbying_search_foreign_agents",
"title": "Search foreign agents",
"description": "Search official FARA daily snapshots of registrants, foreign principals or short-form registrants, or fetch one registration's live foreign-principal, short-form or document collection. Short forms are the individuals working under a registration, searched by first and last name; a hit is a name match only and establishes no identity across registrations or with LDA lobbyists. Each call returns page_size whole records; follow next_cursor through the pinned result. Principal and short-form status differ from registrant status (registrant_status). Disclosure records do not establish wrongdoing or influence.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"mode": {
"enum": [
"search",
"detail"
],
"type": "string",
"description": "Search daily snapshots or fetch one registration detail collection; defaults to search."
},
"cursor": {
"type": "string",
"minLength": 1,
"description": "Opaque continuation; original filters may be omitted or repeated unchanged."
},
"detail": {
"enum": [
"foreign_principals",
"short_forms",
"documents"
],
"type": "string",
"description": "Detail collection, default foreign_principals; unavailable in search mode."
},
"entity": {
"enum": [
"registrants",
"foreign_principals",
"short_forms"
],
"type": "string",
"description": "Search entity, default registrants; short_forms finds the individuals filed under a registration by first and last name. Unavailable in detail mode."
},
"status": {
"enum": [
"active",
"terminated",
"all"
],
"type": "string",
"description": "Status of the selected record itself, default active; documents require all."
},
"country": {
"type": "string",
"description": "Exact represented country/location label, foreign-principal search only."
},
"page_size": {
"type": "number",
"minimum": 1,
"multipleOf": 1,
"description": "Whole records per window, default 25, at most 1,000; larger values clamp to 1,000 and are disclosed in delivery_limits. Part of the scope: omit it or repeat it unchanged on continuations."
},
"name_contains": {
"type": "string",
"description": "Search-only literal case-insensitive token-AND match over entity names; a short-form name is its first and last name joined. Short-form hits are name matches only, with no identity across registrations or with LDA lobbyists."
},
"registration_number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lossless digit-string registration number, required for detail mode."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"source",
"retrieved_at",
"effective_filters",
"notices",
"coverage",
"truncated",
"mode",
"status",
"source_urls",
"records",
"total_matches",
"records_returned",
"offset",
"output_complete"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"mode": {
"enum": [
"search",
"detail"
],
"type": "string",
"description": "Original acquisition mode."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_filter",
"cursor_invalid",
"acquisition_storage_unavailable",
"source_schema_changed",
"snapshot_unavailable",
"source_rate_limited"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_filter`: Required detail identifier is absent, selectors conflict, country/status is invalid, or page_size exceeds 1,000 where clamping is disabled. `cursor_invalid`: Continuation is unavailable, expired, belongs to another tenant, or arrives with changed filters or page_size. `acquisition_storage_unavailable`: Retained-data capacity prevents a safe checkpoint. `source_schema_changed`: A source response violates the verified schema or uses an unsupported redirect. `snapshot_unavailable`: Required bulk snapshot cannot be downloaded or decoded. `source_rate_limited`: FARA returns HTTP 429 after bounded retries. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"detail": {
"enum": [
"foreign_principals",
"short_forms",
"documents"
],
"type": "string",
"description": "Selected detail collection."
},
"entity": {
"enum": [
"registrants",
"foreign_principals",
"short_forms"
],
"type": "string",
"description": "Selected search entity."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Records delivered before this window."
},
"source": {
"enum": [
"lda",
"fara"
],
"type": "string",
"description": "Official source system."
},
"status": {
"enum": [
"active",
"terminated",
"all"
],
"type": "string",
"description": "Effective selected entity status."
},
"notices": {
"type": "array",
"items": {
"type": "string"
},
"description": "Limitations and success notices."
},
"records": {
"type": "array",
"items": {
"type": "object",
"required": [
"registration_number",
"name",
"entity",
"listing_url",
"raw"
],
"properties": {
"raw": {
"type": "object",
"description": "Complete validated source record, original keys and values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"name": {
"type": "string",
"description": "Selected entity name."
},
"entity": {
"enum": [
"registrants",
"foreign_principals",
"short_forms",
"documents"
],
"type": "string",
"description": "Record grain."
},
"status": {
"enum": [
"active",
"terminated"
],
"type": "string",
"description": "Selected entity status; omitted for documents."
},
"country": {
"type": [
"string",
"null"
],
"description": "Source represented country/location label; never guessed ISO code."
},
"last_name": {
"type": [
"string",
"null"
],
"description": "Disclosed short-form last name."
},
"first_name": {
"type": [
"string",
"null"
],
"description": "Disclosed short-form first name."
},
"listing_url": {
"type": "string",
"description": "Official registrant listing URL."
},
"date_stamped": {
"type": [
"string",
"null"
],
"description": "Normalized document stamped calendar date if known."
},
"document_url": {
"type": "string",
"description": "Official URL returned by document source."
},
"document_type": {
"type": [
"string",
"null"
],
"description": "Source document classification."
},
"registrant_name": {
"type": [
"string",
"null"
],
"description": "Related registrant name."
},
"short_form_name": {
"type": [
"string",
"null"
],
"description": "Individual named by a document."
},
"date_stamped_raw": {
"type": [
"string",
"null"
],
"description": "Original document stamped date."
},
"termination_date": {
"type": [
"string",
"null"
],
"description": "Selected entity calendar termination date if known."
},
"registrant_status": {
"enum": [
"active",
"terminated"
],
"type": "string",
"description": "Separate registrant status when known."
},
"registration_date": {
"type": [
"string",
"null"
],
"description": "Normalized calendar registration date if known."
},
"registration_number": {
"type": "string",
"pattern": "^\\d+$",
"description": "Lossless normalized registration number."
},
"termination_date_raw": {
"type": [
"string",
"null"
],
"description": "Source termination date spelling."
},
"registration_date_raw": {
"type": [
"string",
"null"
],
"description": "Source registration date spelling."
},
"foreign_principal_name": {
"type": [
"string",
"null"
],
"description": "Principal named by a document."
}
},
"description": "FARA entity with complete original source fields.",
"additionalProperties": false
},
"description": "Whole normalized records delivered in this window."
},
"coverage": {
"type": "object",
"required": [
"complete",
"pages_fetched",
"records_fetched",
"unique_records",
"started_at"
],
"properties": {
"complete": {
"type": "boolean",
"description": "Whether every source partition has been exhausted."
},
"started_at": {
"type": "string",
"description": "Acquisition start ISO timestamp."
},
"finished_at": {
"type": "string",
"description": "Acquisition end ISO timestamp."
},
"next_cursor": {
"type": "string",
"description": "Opaque acquisition or output continuation."
},
"pages_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Committed upstream pages fetched."
},
"unique_records": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Unique acquired source records."
},
"upstream_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Latest partition counts summed only when all are known; includes duplicates, not an immutable snapshot."
},
"records_fetched": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Rows before UUID deduplication."
}
},
"description": "Acquisition progress, independent of delivery.",
"additionalProperties": false
},
"truncated": {
"type": "boolean",
"description": "More records remain through next_cursor; no source data was discarded."
},
"attribution": {
"type": "string",
"description": "Required verbatim attribution for LDA data."
},
"next_cursor": {
"type": "string",
"description": "Opaque continuation to the next window."
},
"source_urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "Official source URLs actually acquired."
},
"retrieved_at": {
"type": "string",
"description": "Retrieval ISO timestamp."
},
"total_matches": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact matched records in the pinned acquisition."
},
"delivery_limits": {
"type": "object",
"description": "Clamped controls for this call; an empty map means no clamp. Immediate cursor replay retains its original values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"requested",
"effective"
],
"properties": {
"effective": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Applied delivery ceiling.",
"exclusiveMinimum": 0
},
"requested": {
"type": "number",
"multipleOf": 1,
"description": "Caller-requested positive integer.",
"exclusiveMinimum": 0
}
},
"description": "Requested and effective delivery control.",
"additionalProperties": false
}
},
"output_complete": {
"type": "boolean",
"description": "Whether every matched record has been delivered."
},
"records_returned": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Whole records delivered in this window."
},
"cursor_expires_at": {
"type": "string",
"description": "Continuation expiry ISO timestamp."
},
"effective_filters": {
"type": "object",
"description": "Normalized effective scope.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"snapshot_source_urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "Official snapshot URLs."
},
"snapshot_retrieved_at": {
"type": "string",
"description": "FARA snapshot retrieval timestamp."
},
"snapshot_last_modified": {
"type": "string",
"description": "Upstream Last-Modified header."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}{
"name": "uslobbying_dataframe_query",
"title": "Query disclosure tables",
"description": "Run one read-only SELECT over staged disclosure tables, materialize the complete result, then retrieve whole rows by result_table and next_offset without rerunning SQL. Each call returns row_limit rows, or the rest of the result when fewer remain. Rows follow the materialized SQL result order set by a top-level ORDER BY; an ORDER BY only inside a CTE or subquery does not guarantee it, and without one the order is fixed once materialized. Inspect columns with uslobbying_dataframe_describe first.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"canvas_id"
],
"properties": {
"sql": {
"type": "string",
"minLength": 1,
"description": "One read-only SELECT; exclusive with result_table and offset."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Row offset into result_table, default zero, in the materialized SQL result order set by a top-level ORDER BY; an ORDER BY only inside a CTE or subquery does not guarantee it. An offset equal to row_count returns no rows."
},
"canvas_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{10}$",
"description": "Canvas token returned by a disclosure analytical tool."
},
"row_limit": {
"type": "number",
"default": 25,
"minimum": 1,
"multipleOf": 1,
"description": "Whole rows to return, default 25, at most 100 per call; larger values clamp to 100, then to any lower provider ceiling, and the clamp is disclosed in delivery_limits."
},
"register_as": {
"type": "string",
"minLength": 1,
"description": "Fresh result table name for a new SQL call; omit for a generated name."
},
"result_table": {
"type": "string",
"minLength": 1,
"description": "Previously materialized result table; exclusive with sql and register_as."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"canvas_id",
"describe_tool",
"query_tool",
"guidance",
"dataset",
"result_table",
"columns",
"rows",
"row_count",
"rows_returned",
"offset",
"output_complete",
"truncated",
"row_order"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"description": "Whole JSON-safe rows."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_filter",
"canvas_unavailable",
"canvas_not_found",
"missing_table",
"invalid_sql",
"sql_parse_error",
"sql_execution_error",
"non_select_statement",
"multi_statement",
"denied_function",
"sql_read_only",
"plan_operator_not_allowed",
"register_as_clash"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_filter`: New SQL and result-table selectors are missing or combined, offset passes the result row_count, or row_limit exceeds 100 while the server rejects over-cap values. `canvas_unavailable`: Canvas is not configured. `canvas_not_found`: Canvas token is unknown or expired. `missing_table`: Named table is absent or expired. `invalid_sql`: SQL binding fails. `sql_parse_error`: SQL parsing fails. `sql_execution_error`: SQL execution or conversion fails. `non_select_statement`: SQL is not SELECT. `multi_statement`: SQL contains multiple statements. `denied_function`: SQL uses a prohibited function. `sql_read_only`: SQL violates read-only execution. `plan_operator_not_allowed`: SQL plan contains a prohibited operator. `register_as_clash`: Requested result name already exists. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Starting row offset in the materialized SQL result order, which a top-level ORDER BY sets; an ORDER BY only inside a CTE or subquery does not guarantee it."
},
"columns": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type",
"nullable"
],
"properties": {
"name": {
"type": "string",
"description": "Column name."
},
"type": {
"type": "string",
"description": "Provider column type."
},
"nullable": {
"type": "boolean",
"description": "Whether null values are permitted."
}
},
"description": "Provider column.",
"additionalProperties": false
},
"description": "Complete result schema."
},
"dataset": {
"type": "object",
"required": [
"canvas_id",
"describe_tool",
"query_tool",
"guidance",
"tables"
],
"properties": {
"tables": {
"type": "array",
"items": {
"type": "object",
"required": [
"table_name",
"row_count",
"columns",
"grain",
"complete",
"created_at",
"expires_at"
],
"properties": {
"grain": {
"type": "string",
"description": "Meaning of one row; activity rows have no money."
},
"columns": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type",
"nullable"
],
"properties": {
"name": {
"type": "string",
"description": "Column name."
},
"type": {
"type": "string",
"description": "Provider column type."
},
"nullable": {
"type": "boolean",
"description": "Whether null values are permitted."
}
},
"description": "Provider column.",
"additionalProperties": false
},
"description": "Explicit complete schema."
},
"complete": {
"type": "boolean",
"description": "Whether every intended row is registered."
},
"row_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact registered row count."
},
"created_at": {
"type": "string",
"description": "Table creation ISO timestamp."
},
"expires_at": {
"type": "string",
"description": "Table expiry ISO timestamp."
},
"table_name": {
"type": "string",
"description": "Registered table name."
}
},
"description": "Complete table metadata.",
"additionalProperties": false
},
"description": "Dataset tables."
},
"guidance": {
"type": "string",
"description": "Table names and dataframe instructions."
},
"canvas_id": {
"type": "string",
"description": "Tenant-scoped canvas access token."
},
"query_tool": {
"type": "string",
"const": "uslobbying_dataframe_query",
"description": "Query or retrieve materialized table rows."
},
"describe_tool": {
"type": "string",
"const": "uslobbying_dataframe_describe",
"description": "Inspect exact table schemas before SQL."
}
},
"description": "Materialized dataset and routing.",
"additionalProperties": false
},
"guidance": {
"type": "string",
"description": "Table names and dataframe instructions."
},
"canvas_id": {
"type": "string",
"description": "Tenant-scoped canvas access token."
},
"row_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact materialized result count."
},
"row_order": {
"type": "string",
"const": "sql_result",
"description": "Rows follow the materialized SQL result order set by a top-level ORDER BY; an ORDER BY only inside a CTE or subquery does not guarantee it, and without one the order is fixed once materialized."
},
"truncated": {
"type": "boolean",
"description": "More materialized rows remain; continue with next_offset."
},
"query_tool": {
"type": "string",
"const": "uslobbying_dataframe_query",
"description": "Query or retrieve materialized table rows."
},
"next_offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Next undelivered row offset."
},
"result_table": {
"type": "string",
"description": "Stable materialized result table."
},
"describe_tool": {
"type": "string",
"const": "uslobbying_dataframe_describe",
"description": "Inspect exact table schemas before SQL."
},
"rows_returned": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Rows actually delivered."
},
"delivery_limits": {
"type": "object",
"description": "Clamped controls for this call; an empty map means no clamp. Immediate cursor replay retains its original values.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"requested",
"effective"
],
"properties": {
"effective": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Applied delivery ceiling.",
"exclusiveMinimum": 0
},
"requested": {
"type": "number",
"multipleOf": 1,
"description": "Caller-requested positive integer.",
"exclusiveMinimum": 0
}
},
"description": "Requested and effective delivery control.",
"additionalProperties": false
}
},
"output_complete": {
"type": "boolean",
"description": "Whether this result has no remaining delivery rows."
},
"effective_row_limit": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Effective row limit when a delivery or provider ceiling lowers the requested limit.",
"exclusiveMinimum": 0
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}