Skip to main content
Glama

us-lobbying-mcp-server

Uslobbying Search Filings

uslobbying_search_filings
Read-onlyIdempotent

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "uslobbying_search_filings"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoContinue 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.
includeNoLobbying-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_idNoClient relationship record ID from candidates[].id in uslobbying_get_client_profile resolve mode; candidates[].client_id is secondary.
max_pagesNoMost 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_sizeNoWhole 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_maxNoNative maximum reported filing amount, exact decimal USD with at most two fractional digits.
amount_minNoNative minimum reported filing amount, exact decimal USD with at most two fractional digits.
issue_codeNoLocal activity membership code from topic issue_codes.
client_nameNoLiteral client name upstream search.
filing_typeNoOfficial code from uslobbying_list_reference topic filing_types.
filing_uuidNoExact filing UUID from evidence or analytical selections; retrieves complete source records.
filing_yearNoReported year, 1999 through the current UTC year.
lobbyist_idNoLobbyist ID.
client_stateNoNative two-letter LDA client state code such as WA, from uslobbying_list_reference topic states; normalized uppercase.
posted_afterNoEarliest native filing posting calendar date.
filing_periodNoSource reporting period: mid_year and year_end for 1999–2007 semiannual reports, quarters from 2008.
lobbyist_nameNoNative disclosed lobbyist name search.
posted_beforeNoLatest native filing posting calendar date.
registrant_idNoRegistrant ID.
client_countryNoNative two-letter LDA client country code such as US, from the LDA entries of uslobbying_list_reference topic countries; normalized uppercase.
registrant_nameNoLiteral registrant name upstream search.
specific_issuesNoLDA 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_nameNoNative disclosed foreign entity name search.
foreign_entity_countryNoNative two-letter LDA foreign entity country code such as CN, from the LDA entries of uslobbying_list_reference topic countries; normalized uppercase.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
offsetNoRecords delivered before this window.
sourceNoOfficial source system.
filingsNoMatched source filings, every version; lobbying activities carry description and lobbyists only when include names them.
noticesNoLimitations and success notices.
coverageNoAcquisition progress, independent of delivery.
truncatedNoMore data is available through next_cursor; no source data was discarded.
attributionNoRequired verbatim attribution for LDA data.
next_cursorNoNext acquisition or output window cursor.
retrieved_atNoRetrieval ISO timestamp.
total_recordsNoExact final record count when known.
delivery_limitsNoClamped controls for this call; an empty map means no clamp. Immediate cursor replay retains its original values.
output_completeNoWhether all result rows have been delivered.
amendment_policyNoOriginals and amendments remain separate.
records_returnedNoWhole records delivered in this window.
cursor_expires_atNoContinuation expiry ISO timestamp.
effective_filtersNoNormalized effective scope.
snapshot_source_urlsNoOfficial snapshot URLs.
snapshot_retrieved_atNoFARA snapshot retrieval timestamp.
snapshot_last_modifiedNoUpstream Last-Modified header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changed
    • changedInput schema / properties / client_country / description
      Previous value: -"Native client country code, normalized uppercase."New value: +"Native two-letter LDA client country code such as US, from the LDA entries of uslobbying_list_reference topic countries; normalized uppercase."
    • changedInput schema / properties / client_state / description
      Previous value: -"Native client state code, normalized uppercase."New value: +"Native two-letter LDA client state code such as WA, from uslobbying_list_reference topic states; normalized uppercase."
    • changedInput schema / properties / cursor / description
      Previous value: -"Continue the original scope; other query fields may be omitted."New value: +"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."
    • changedInput schema / properties / filing_period / description
      Previous value: -"Source reporting period."New value: +"Source reporting period: mid_year and year_end for 1999–2007 semiannual reports, quarters from 2008."
    • changedInput schema / properties / foreign_entity_country / description
      Previous value: -"Native foreign entity country code, normalized uppercase."New value: +"Native two-letter LDA foreign entity country code such as CN, from the LDA entries of uslobbying_list_reference topic countries; normalized uppercase."
    • addedInput schema / properties / include
      Added value: +{
      +  "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.",
      +  "items": {
      +    "enum": [
      +      "activity_descriptions",
      +      "activity_lobbyists"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / max_pages / description
      Previous value: -"Source pages per call; positive integers clamp to five, default one for discovery, five for analysis."New value: +"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."
    • changedInput schema / properties / page_size / description
      Previous value: -"Upstream rows per page; positive integers clamp to 25, default 25."New value: +"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."
    • removedInput schema / properties / record_handle
      Removed value: -{
      -  "description": "Tenant/tool-bound deferred record handle.",
      -  "type": "string"
      -}
    • removedInput schema / properties / record_limit
      Removed value: -{
      -  "default": 25,
      -  "description": "Maximum object entries or array items, clamped to 25; text fragments use the response byte budget.",
      -  "minimum": 1,
      -  "multipleOf": 1,
      -  "type": "number"
      -}
    • removedInput schema / properties / record_offset
      Removed value: -{
      -  "default": 0,
      -  "description": "Key, item or Unicode-code-point offset.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedInput schema / properties / record_path
      Removed value: -{
      -  "default": "",
      -  "description": "JSON Pointer to a stored value; empty selects the root.",
      -  "type": "string"
      -}
    • changedInput schema / properties / specific_issues / description
      Previous value: -"Search the disclosed specific-issues text, such as H.R. 1 or telecommunications."New value: +"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."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Invalid scope, identifier, reference code or mode combination. `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."New value: +"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."
    • changedOutput schema / properties / filings / description
      Previous value: -"Complete matched source filings."New value: +"Matched source filings, every version; lobbying activities carry description and lobbyists only when include names them."
    • changedOutput schema / properties / offset / description
      Previous value: -"Final record delivery offset."New value: +"Records delivered before this window."
    • removedOutput schema / properties / record_handles
      Removed value: -{
      -  "description": "Deferred complete parents.",
      -  "items": {
      -    "additionalProperties": false,
      -    "description": "Deferred parent retrieval.",
      -    "properties": {
      -      "expires_at": {
      -        "description": "Retained parent expiry ISO timestamp.",
      -        "type": "string"
      -      },
      -      "record_bytes": {
      -        "description": "Serialized parent UTF-8 bytes.",
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "record_handle": {
      -        "description": "Opaque retained parent handle.",
      -        "type": "string"
      -      },
      -      "retrieval_tool": {
      -        "description": "Source tool for record windows.",
      -        "type": "string"
      -      },
      -      "source_id": {
      -        "description": "Original source identity.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "record_handle",
      -      "source_id",
      -      "record_bytes",
      -      "expires_at",
      -      "retrieval_tool"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / record_window
      Removed value: -{
      -  "description": "Lossless stored parent window.",
      -  "oneOf": [
      -    {
      -      "additionalProperties": false,
      -      "description": "Complete or deferred object children.",
      -      "properties": {
      -        "complete": {
      -          "description": "This path and included children are fully delivered.",
      -          "type": "boolean"
      -        },
      -        "entries": {
      -          "description": "Key-ordered object window.",
      -          "items": {
      -            "additionalProperties": false,
      -            "description": "Key and pointer; value only when it fits.",
      -            "properties": {
      -              "key": {
      -                "description": "Original key.",
      -                "type": "string"
      -              },
      -              "path": {
      -                "description": "Child JSON Pointer.",
      -                "type": "string"
      -              },
      -              "value": {
      -                "$ref": "#/$defs/__schema0",
      -                "description": "Whole child value only when it fits."
      -              }
      -            },
      -            "required": [
      -              "key",
      -              "path"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "kind": {
      -          "const": "object",
      -          "description": "Object-entry window.",
      -          "type": "string"
      -        },
      -        "next_offset": {
      -          "description": "Next undelivered position.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "offset": {
      -          "description": "Start position.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "path": {
      -          "description": "Selected JSON Pointer.",
      -          "type": "string"
      -        },
      -        "record_handle": {
      -          "description": "Stored parent handle.",
      -          "type": "string"
      -        },
      -        "returned": {
      -          "description": "Delivered entries or code points.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "total": {
      -          "description": "Total keys, items or code points at this path.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "record_handle",
      -        "path",
      -        "total",
      -        "offset",
      -        "returned",
      -        "complete",
      -        "kind",
      -        "entries"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "additionalProperties": false,
      -      "description": "Array items preserving original indexes.",
      -      "properties": {
      -        "complete": {
      -          "description": "This path and included children are fully delivered.",
      -          "type": "boolean"
      -        },
      -        "items": {
      -          "description": "Indexed array window.",
      -          "items": {
      -            "additionalProperties": false,
      -            "description": "Original index and child pointer.",
      -            "properties": {
      -              "index": {
      -                "description": "Original child index.",
      -                "maximum": 9007199254740991,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "path": {
      -                "description": "Child JSON Pointer.",
      -                "type": "string"
      -              },
      -              "value": {
      -                "$ref": "#/$defs/__schema0",
      -                "description": "Whole child value only when it fits."
      -              }
      -            },
      -            "required": [
      -              "index",
      -              "path"
      -            ],
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "kind": {
      -          "const": "array",
      -          "description": "Array-item window.",
      -          "type": "string"
      -        },
      -        "next_offset": {
      -          "description": "Next undelivered position.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "offset": {
      -          "description": "Start position.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "path": {
      -          "description": "Selected JSON Pointer.",
      -          "type": "string"
      -        },
      -        "record_handle": {
      -          "description": "Stored parent handle.",
      -          "type": "string"
      -        },
      -        "returned": {
      -          "description": "Delivered entries or code points.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "total": {
      -          "description": "Total keys, items or code points at this path.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "record_handle",
      -        "path",
      -        "total",
      -        "offset",
      -        "returned",
      -        "complete",
      -        "kind",
      -        "items"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "additionalProperties": false,
      -      "description": "Unicode-code-point text fragment.",
      -      "properties": {
      -        "complete": {
      -          "description": "This path and included children are fully delivered.",
      -          "type": "boolean"
      -        },
      -        "kind": {
      -          "const": "string",
      -          "description": "Unicode text window.",
      -          "type": "string"
      -        },
      -        "next_offset": {
      -          "description": "Next undelivered position.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "offset": {
      -          "description": "Start position.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "path": {
      -          "description": "Selected JSON Pointer.",
      -          "type": "string"
      -        },
      -        "record_handle": {
      -          "description": "Stored parent handle.",
      -          "type": "string"
      -        },
      -        "returned": {
      -          "description": "Delivered entries or code points.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "text": {
      -          "description": "Complete-code-point text fragment.",
      -          "type": "string"
      -        },
      -        "total": {
      -          "description": "Total keys, items or code points at this path.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "record_handle",
      -        "path",
      -        "total",
      -        "offset",
      -        "returned",
      -        "complete",
      -        "kind",
      -        "text"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "additionalProperties": false,
      -      "description": "Unfragmented non-text scalar.",
      -      "properties": {
      -        "complete": {
      -          "description": "This path and included children are fully delivered.",
      -          "type": "boolean"
      -        },
      -        "kind": {
      -          "const": "scalar",
      -          "description": "Complete scalar value.",
      -          "type": "string"
      -        },
      -        "next_offset": {
      -          "description": "Next undelivered position.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "offset": {
      -          "description": "Start position.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "path": {
      -          "description": "Selected JSON Pointer.",
      -          "type": "string"
      -        },
      -        "record_handle": {
      -          "description": "Stored parent handle.",
      -          "type": "string"
      -        },
      -        "returned": {
      -          "description": "Delivered entries or code points.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "total": {
      -          "description": "Total keys, items or code points at this path.",
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "value": {
      -          "anyOf": [
      -            {
      -              "description": "Null value.",
      -              "type": "null"
      -            },
      -            {
      -              "description": "Boolean value.",
      -              "type": "boolean"
      -            },
      -            {
      -              "description": "Finite numeric value.",
      -              "type": "number"
      -            }
      -          ],
      -          "description": "Exact scalar value."
      -        }
      -      },
      -      "required": [
      -        "record_handle",
      -        "path",
      -        "total",
      -        "offset",
      -        "returned",
      -        "complete",
      -        "kind",
      -        "value"
      -      ],
      -      "type": "object"
      -    }
      -  ]
      -}
    • removedOutput schema / properties / records_deferred
      Removed value: -{
      -  "description": "Oversized parents available through handles.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • changedOutput schema / properties / records_returned / description
      Previous value: -"Complete records delivered in this window."New value: +"Whole records delivered in this window."
    • removedOutput schema / properties / retrieval_tool
      Removed value: -{
      -  "description": "Tool that retrieves this parent.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / truncated / description
      Previous value: -"More of the parent value remains available through record windows."New value: +"More data is available through next_cursor; no source data was discarded."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Despite annotations already declaring readOnly/openWorld/idempotent, the description adds real behavioral substance: activity descriptions and lobbyist lists are suppressed unless include names them (and both appear by default with filing_uuid), issue_code applies post-hoc rather than upstream, cursor continuation is required to see all versions, amounts are separate nullable strings, and disclosure text is untrusted record data. These are operational facts an agent cannot derive from the annotations and that materially change how it composes calls and treats output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two modes are front-loaded, and every subsequent sentence carries a distinct operational fact (local filtering, include gating, cursor, untrusted data). Some sentences are heavily compressed to the point of ambiguity, notably 'Follow next_cursor for all versions', which names a field that is not a parameter here.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 24-parameter tool with an output schema, the description covers mode selection, filter semantics, field gating, pagination, and data trust, which is most of what an agent needs. The remaining gap is the next_cursor versus cursor naming mismatch and unstated rules for combining filing_uuid with filter parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds value by grouping the native filter families (posting dates, amounts, client location, foreign entities) and contrasting them with the local-only issue_code, plus the nullability of amounts. It does not explain individual parameter interactions, such as whether filing_uuid may be combined with filters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource (federal lobbying registrations and activity reports) and adds a second, clearly separated mode (retrieve a complete filing by filing_uuid). The resource scope distinguishes it from siblings such as uslobbying_search_lobbyists and uslobbying_search_foreign_agents, so an agent can pick it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete selection rule between the two modes: filing_uuid is for 'evidence or analytical selections', otherwise search with native filters. It also flags that issue_code filters activities locally and cannot narrow upstream requests, which is exactly the kind of when-to-use nuance that prevents wasted calls. It stops short of naming sibling tools or stating when not to use this one at all.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.