Find linked nodes
neighborsWalk the graph from amendment:// nodes: pointers, counts and a one-line basis, never text. Read a node with get_item. Read shown first; count from it, never from the rows.
bill: LOBBIED_BY, DISCLOSED_BY, SAME_INDUSTRY, AMENDS, REPEALS, CITES, REGULATIONS, SPONSORS, REFERRED_TO (its committees), RELATED (same-as and related bills); LOBBYISTS, SPONSOR_CONTRIBUTIONS (its lobbyists' and clients' LD-203s to its sponsors; all: politician CONTRIBUTIONS_RECEIVED), COMPANIONS (same law units, by overlap; enacted too), VOTES (members on its roll calls, with their tally), POSITIONS (stances), ASKS (published asks) on request. company: LOBBIES_ON, DISCLOSES, LAW, SUBSIDIARIES, PARENT; LOBBYISTS, ISSUE_AREA, INDUSTRY, NAMES_LAW (law its 10-K/Q names), CONTRIBUTIONS (politicians its own LD-203s list) on request. law unit: AMENDED_BY, CITED_BY, IMPLEMENTED_BY (whole section, not the pinpoint), COMPANIES, CITES, AMENDS, REPEALS (the law it cites or changes), CITED_BY_LAW (code and CFR sections that cite it), INCORPORATES, INCORPORATED_BY (CFR incorporation of state law), PARENT, CHILDREN; NAMED_BY (companies whose 10-K/Q names it), ENACTED_BY (bills whose public laws enact it), ENACTS (on a public law node, the units it enacts), SUPERSEDES and SUPERSEDED_BY (renumbered or transferred units) on request. CFR part: AMENDED_BY (bills, and the Federal Register rules the section's source note cites), CITED_BY (bills), CITED_BY_LAW (code and CFR sections that cite it), INCORPORATES, IMPLEMENTS, AGENCY, PARENT, SECTIONS; NAMED_BY on request. politician: SPONSORED, COMMITTEES (federal committee seats with role; most subcommittee seats are only counted); VOTED (roll calls), CONTRIBUTIONS_RECEIVED, COMPANIES (companies that lobby on bills they sponsor), CONTRIBUTING_COMPANIES (companies whose own LD-203s list them), ASKS_TARGETING (asks aimed at their campaign) on request. lobbyist: CLIENTS, CONTRIBUTIONS; BILLS on request. organization: POSITIONS (the bills it holds a position on). committee: BILLS (federal bills of open sessions referred to it, newest referral first), MEMBERS (current members with role; unchecked when the name fits no single committee); COMPANIES (companies that lobby on bills referred to it) on request. body: REGULATIONS (CFR parts of the chapters it issues); get_item does not open it. ask: no relations; ASKS and ASKS_TARGETING end there. rule: no relations; a Federal Register rule amending a CFR section. get_item does not open it; give its link to the user.
An ask's link is the page where a person signs it; give it to the user.
Omit relations for every default relation; on-request ones run only when named. uris (1-25) batches nodes. path chains 1-3 relations from the start nodes, such as path=["AMENDS","AMENDED_BY","LOBBIED_BY"]; not with relations. first and after page. filter {jurisdictions, pending, since, until} narrows bills, and politician VOTED and bill VOTES by roll-call date; a relation that cannot apply it says so. match=all with uris (and relations or path) returns only the nodes next to every start, with via counting the starts.
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": "neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | A amendment:// node resource, as find and get_item return it. | |
| path | No | One to 3 relations to chain from the start nodes, such as AMENDS, AMENDED_BY, LOBBIED_BY; not with relations. | |
| uris | No | Up to 25 such resources in place of uri. | |
| after | No | Neighbors to skip on each relation; use next_after. | |
| first | No | Most neighbors per relation. | |
| match | No | all keeps the nodes next to every one of uris, on relations or at the end of path. | any |
| filter | No | Narrows bill neighbors and politician VOTED. A relation that cannot apply it returns checked false. On a path it applies to the last hop. | |
| relations | No | Relations to read, such as LOBBIED_BY; omit for every relation that applies. |