Skip to main content
Glama

Find linked nodes

neighbors
Read-only

Walk 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

NameRequiredDescriptionDefault
uriNoA amendment:// node resource, as find and get_item return it.
pathNoOne to 3 relations to chain from the start nodes, such as AMENDS, AMENDED_BY, LOBBIED_BY; not with relations.
urisNoUp to 25 such resources in place of uri.
afterNoNeighbors to skip on each relation; use next_after.
firstNoMost neighbors per relation.
matchNoall keeps the nodes next to every one of uris, on relations or at the end of path.any
filterNoNarrows bill neighbors and politician VOTED. A relation that cannot apply it returns checked false. On a path it applies to the last hop.
relationsNoRelations to read, such as LOBBIED_BY; omit for every relation that applies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / path / items / enum
      Previous value: -[
      -  "LOBBIED_BY",
      -  "DISCLOSED_BY",
      -  "SAME_INDUSTRY",
      -  "AMENDS",
      -  "REPEALS",
      -  "CITES",
      -  "REGULATIONS",
      -  "SPONSORS",
      -  "LOBBYISTS",
      -  "SPONSOR_CONTRIBUTIONS",
      -  "COMPANIONS",
      -  "LOBBIES_ON",
      -  "DISCLOSES",
      -  "ISSUE_AREA",
      -  "INDUSTRY",
      -  "LAW",
      -  "AMENDED_BY",
      -  "CITED_BY",
      -  "CITED_BY_LAW",
      -  "INCORPORATES",
      -  "INCORPORATED_BY",
      -  "IMPLEMENTED_BY",
      -  "COMPANIES",
      -  "IMPLEMENTS",
      -  "SPONSORED",
      -  "PARENT",
      -  "CHILDREN",
      -  "SECTIONS",
      -  "SUBSIDIARIES",
      -  "BILLS",
      -  "CLIENTS",
      -  "CONTRIBUTIONS",
      -  "CONTRIBUTIONS_RECEIVED",
      -  "POSITIONS",
      -  "ASKS",
      -  "ASKS_TARGETING",
      -  "VOTED",
      -  "NAMES_LAW",
      -  "NAMED_BY",
      -  "ENACTED_BY",
      -  "ENACTS",
      -  "REFERRED_TO",
      -  "RELATED",
      -  "VOTES",
      -  "SUPERSEDES",
      -  "SUPERSEDED_BY",
      -  "CONTRIBUTING_COMPANIES",
      -  "MEMBERS",
      -  "COMMITTEES"
      -]New value: +[
      +  "LOBBIED_BY",
      +  "DISCLOSED_BY",
      +  "SAME_INDUSTRY",
      +  "AMENDS",
      +  "REPEALS",
      +  "CITES",
      +  "REGULATIONS",
      +  "SPONSORS",
      +  "LOBBYISTS",
      +  "SPONSOR_CONTRIBUTIONS",
      +  "COMPANIONS",
      +  "LOBBIES_ON",
      +  "DISCLOSES",
      +  "ISSUE_AREA",
      +  "INDUSTRY",
      +  "LAW",
      +  "AMENDED_BY",
      +  "CITED_BY",
      +  "CITED_BY_LAW",
      +  "INCORPORATES",
      +  "INCORPORATED_BY",
      +  "IMPLEMENTED_BY",
      +  "COMPANIES",
      +  "IMPLEMENTS",
      +  "SPONSORED",
      +  "PARENT",
      +  "CHILDREN",
      +  "SECTIONS",
      +  "SUBSIDIARIES",
      +  "BILLS",
      +  "CLIENTS",
      +  "CONTRIBUTIONS",
      +  "CONTRIBUTIONS_RECEIVED",
      +  "POSITIONS",
      +  "ASKS",
      +  "ASKS_TARGETING",
      +  "VOTED",
      +  "NAMES_LAW",
      +  "NAMED_BY",
      +  "ENACTED_BY",
      +  "ENACTS",
      +  "REFERRED_TO",
      +  "RELATED",
      +  "VOTES",
      +  "SUPERSEDES",
      +  "SUPERSEDED_BY",
      +  "CONTRIBUTING_COMPANIES",
      +  "MEMBERS",
      +  "COMMITTEES",
      +  "AGENCY"
      +]
    • changedInput schema / properties / relations / items / enum
      Previous value: -[
      -  "LOBBIED_BY",
      -  "DISCLOSED_BY",
      -  "SAME_INDUSTRY",
      -  "AMENDS",
      -  "REPEALS",
      -  "CITES",
      -  "REGULATIONS",
      -  "SPONSORS",
      -  "LOBBYISTS",
      -  "SPONSOR_CONTRIBUTIONS",
      -  "COMPANIONS",
      -  "LOBBIES_ON",
      -  "DISCLOSES",
      -  "ISSUE_AREA",
      -  "INDUSTRY",
      -  "LAW",
      -  "AMENDED_BY",
      -  "CITED_BY",
      -  "CITED_BY_LAW",
      -  "INCORPORATES",
      -  "INCORPORATED_BY",
      -  "IMPLEMENTED_BY",
      -  "COMPANIES",
      -  "IMPLEMENTS",
      -  "SPONSORED",
      -  "PARENT",
      -  "CHILDREN",
      -  "SECTIONS",
      -  "SUBSIDIARIES",
      -  "BILLS",
      -  "CLIENTS",
      -  "CONTRIBUTIONS",
      -  "CONTRIBUTIONS_RECEIVED",
      -  "POSITIONS",
      -  "ASKS",
      -  "ASKS_TARGETING",
      -  "VOTED",
      -  "NAMES_LAW",
      -  "NAMED_BY",
      -  "ENACTED_BY",
      -  "ENACTS",
      -  "REFERRED_TO",
      -  "RELATED",
      -  "VOTES",
      -  "SUPERSEDES",
      -  "SUPERSEDED_BY",
      -  "CONTRIBUTING_COMPANIES",
      -  "MEMBERS",
      -  "COMMITTEES"
      -]New value: +[
      +  "LOBBIED_BY",
      +  "DISCLOSED_BY",
      +  "SAME_INDUSTRY",
      +  "AMENDS",
      +  "REPEALS",
      +  "CITES",
      +  "REGULATIONS",
      +  "SPONSORS",
      +  "LOBBYISTS",
      +  "SPONSOR_CONTRIBUTIONS",
      +  "COMPANIONS",
      +  "LOBBIES_ON",
      +  "DISCLOSES",
      +  "ISSUE_AREA",
      +  "INDUSTRY",
      +  "LAW",
      +  "AMENDED_BY",
      +  "CITED_BY",
      +  "CITED_BY_LAW",
      +  "INCORPORATES",
      +  "INCORPORATED_BY",
      +  "IMPLEMENTED_BY",
      +  "COMPANIES",
      +  "IMPLEMENTS",
      +  "SPONSORED",
      +  "PARENT",
      +  "CHILDREN",
      +  "SECTIONS",
      +  "SUBSIDIARIES",
      +  "BILLS",
      +  "CLIENTS",
      +  "CONTRIBUTIONS",
      +  "CONTRIBUTIONS_RECEIVED",
      +  "POSITIONS",
      +  "ASKS",
      +  "ASKS_TARGETING",
      +  "VOTED",
      +  "NAMES_LAW",
      +  "NAMED_BY",
      +  "ENACTED_BY",
      +  "ENACTS",
      +  "REFERRED_TO",
      +  "RELATED",
      +  "VOTES",
      +  "SUPERSEDES",
      +  "SUPERSEDED_BY",
      +  "CONTRIBUTING_COMPANIES",
      +  "MEMBERS",
      +  "COMMITTEES",
      +  "AGENCY"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / path / items / enum
      Previous value: -[
      -  "LOBBIED_BY",
      -  "DISCLOSED_BY",
      -  "SAME_INDUSTRY",
      -  "AMENDS",
      -  "REPEALS",
      -  "CITES",
      -  "REGULATIONS",
      -  "SPONSORS",
      -  "LOBBYISTS",
      -  "SPONSOR_CONTRIBUTIONS",
      -  "COMPANIONS",
      -  "LOBBIES_ON",
      -  "DISCLOSES",
      -  "ISSUE_AREA",
      -  "INDUSTRY",
      -  "LAW",
      -  "AMENDED_BY",
      -  "CITED_BY",
      -  "CITED_BY_LAW",
      -  "IMPLEMENTED_BY",
      -  "COMPANIES",
      -  "IMPLEMENTS",
      -  "SPONSORED",
      -  "PARENT",
      -  "CHILDREN",
      -  "SECTIONS",
      -  "SUBSIDIARIES",
      -  "BILLS",
      -  "CLIENTS",
      -  "CONTRIBUTIONS",
      -  "CONTRIBUTIONS_RECEIVED",
      -  "POSITIONS",
      -  "ASKS",
      -  "ASKS_TARGETING",
      -  "VOTED",
      -  "NAMES_LAW",
      -  "NAMED_BY",
      -  "ENACTED_BY",
      -  "ENACTS",
      -  "REFERRED_TO",
      -  "RELATED",
      -  "VOTES",
      -  "SUPERSEDES",
      -  "SUPERSEDED_BY",
      -  "CONTRIBUTING_COMPANIES",
      -  "MEMBERS",
      -  "COMMITTEES"
      -]New value: +[
      +  "LOBBIED_BY",
      +  "DISCLOSED_BY",
      +  "SAME_INDUSTRY",
      +  "AMENDS",
      +  "REPEALS",
      +  "CITES",
      +  "REGULATIONS",
      +  "SPONSORS",
      +  "LOBBYISTS",
      +  "SPONSOR_CONTRIBUTIONS",
      +  "COMPANIONS",
      +  "LOBBIES_ON",
      +  "DISCLOSES",
      +  "ISSUE_AREA",
      +  "INDUSTRY",
      +  "LAW",
      +  "AMENDED_BY",
      +  "CITED_BY",
      +  "CITED_BY_LAW",
      +  "INCORPORATES",
      +  "INCORPORATED_BY",
      +  "IMPLEMENTED_BY",
      +  "COMPANIES",
      +  "IMPLEMENTS",
      +  "SPONSORED",
      +  "PARENT",
      +  "CHILDREN",
      +  "SECTIONS",
      +  "SUBSIDIARIES",
      +  "BILLS",
      +  "CLIENTS",
      +  "CONTRIBUTIONS",
      +  "CONTRIBUTIONS_RECEIVED",
      +  "POSITIONS",
      +  "ASKS",
      +  "ASKS_TARGETING",
      +  "VOTED",
      +  "NAMES_LAW",
      +  "NAMED_BY",
      +  "ENACTED_BY",
      +  "ENACTS",
      +  "REFERRED_TO",
      +  "RELATED",
      +  "VOTES",
      +  "SUPERSEDES",
      +  "SUPERSEDED_BY",
      +  "CONTRIBUTING_COMPANIES",
      +  "MEMBERS",
      +  "COMMITTEES"
      +]
    • changedInput schema / properties / relations / items / enum
      Previous value: -[
      -  "LOBBIED_BY",
      -  "DISCLOSED_BY",
      -  "SAME_INDUSTRY",
      -  "AMENDS",
      -  "REPEALS",
      -  "CITES",
      -  "REGULATIONS",
      -  "SPONSORS",
      -  "LOBBYISTS",
      -  "SPONSOR_CONTRIBUTIONS",
      -  "COMPANIONS",
      -  "LOBBIES_ON",
      -  "DISCLOSES",
      -  "ISSUE_AREA",
      -  "INDUSTRY",
      -  "LAW",
      -  "AMENDED_BY",
      -  "CITED_BY",
      -  "CITED_BY_LAW",
      -  "IMPLEMENTED_BY",
      -  "COMPANIES",
      -  "IMPLEMENTS",
      -  "SPONSORED",
      -  "PARENT",
      -  "CHILDREN",
      -  "SECTIONS",
      -  "SUBSIDIARIES",
      -  "BILLS",
      -  "CLIENTS",
      -  "CONTRIBUTIONS",
      -  "CONTRIBUTIONS_RECEIVED",
      -  "POSITIONS",
      -  "ASKS",
      -  "ASKS_TARGETING",
      -  "VOTED",
      -  "NAMES_LAW",
      -  "NAMED_BY",
      -  "ENACTED_BY",
      -  "ENACTS",
      -  "REFERRED_TO",
      -  "RELATED",
      -  "VOTES",
      -  "SUPERSEDES",
      -  "SUPERSEDED_BY",
      -  "CONTRIBUTING_COMPANIES",
      -  "MEMBERS",
      -  "COMMITTEES"
      -]New value: +[
      +  "LOBBIED_BY",
      +  "DISCLOSED_BY",
      +  "SAME_INDUSTRY",
      +  "AMENDS",
      +  "REPEALS",
      +  "CITES",
      +  "REGULATIONS",
      +  "SPONSORS",
      +  "LOBBYISTS",
      +  "SPONSOR_CONTRIBUTIONS",
      +  "COMPANIONS",
      +  "LOBBIES_ON",
      +  "DISCLOSES",
      +  "ISSUE_AREA",
      +  "INDUSTRY",
      +  "LAW",
      +  "AMENDED_BY",
      +  "CITED_BY",
      +  "CITED_BY_LAW",
      +  "INCORPORATES",
      +  "INCORPORATED_BY",
      +  "IMPLEMENTED_BY",
      +  "COMPANIES",
      +  "IMPLEMENTS",
      +  "SPONSORED",
      +  "PARENT",
      +  "CHILDREN",
      +  "SECTIONS",
      +  "SUBSIDIARIES",
      +  "BILLS",
      +  "CLIENTS",
      +  "CONTRIBUTIONS",
      +  "CONTRIBUTIONS_RECEIVED",
      +  "POSITIONS",
      +  "ASKS",
      +  "ASKS_TARGETING",
      +  "VOTED",
      +  "NAMES_LAW",
      +  "NAMED_BY",
      +  "ENACTED_BY",
      +  "ENACTS",
      +  "REFERRED_TO",
      +  "RELATED",
      +  "VOTES",
      +  "SUPERSEDES",
      +  "SUPERSEDED_BY",
      +  "CONTRIBUTING_COMPANIES",
      +  "MEMBERS",
      +  "COMMITTEES"
      +]
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With readOnlyHint/openWorldHint=false already declared, the description still adds a lot: it discloses the return shape (pointers, counts, basis, never text), the pagination contract (`shown`, first, after), that unspecified relations return all defaults while on-request ones run only when named, that inapplicable filters come back 'checked false,' and that body/rule nodes have no relations and get_item won't open them. It does not cover ordering, dedup, or failure modes beyond the checked flag.

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

Conciseness3/5

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

The lead sentence is front-loaded and earns its place, and the default-vs-on-request distinction is information the schema does not carry. But the bulk is a single dense block enumerating relations per node type that is hard to scan, and small operational notes ('An ask's link is the page where a person signs it') are dropped mid-paragraph without structure.

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 complex, 8-parameter graph tool with no output schema, the description covers most of what an agent needs: what comes back, how to page via `shown`/first/after, which relations are default versus opt-in, filter applicability, and terminal node types. It leaves the `shown` field's own structure undefined and does not describe result ordering, which keeps it just under complete.

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 3 baseline is met by the schema alone; the description goes further by explaining interactions the schema only hints at: path chains 1-3 relations and is 'not with relations,' uris batches 1-25, filter narrows bills and roll-call dates and 'on a path it applies to the last hop,' and match=all with uris returns nodes adjacent to every start 'with via counting the starts.' That is meaningful semantics beyond the field-level descriptions.

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

Purpose4/5

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

Opens with a specific verb and scope: 'Walk the graph from amendment:// nodes: pointers, counts and a one-line basis, never text,' which tells an agent this is a traversal tool returning pointers rather than content. It explicitly routes text reading to the sibling get_item, so the boundary is drawn. It stops short of 5 because the phrasing 'one-line basis' is cryptic and the purpose sentence is buried under a wall of relation enumerations.

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

Usage Guidelines3/5

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

Provides real invocation guidance: 'Read a node with get_item,' 'Read `shown` first; count from it, never from the rows,' 'Omit relations for every default relation; on-request ones run only when named,' and path 'not with relations.' However, it never frames when a caller should reach for neighbors versus other graph-ish siblings, and the when-not guidance is limited to get_item.

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.

Resources