Skip to main content
Glama

Rank lobbying spend

rank_lobbying_spend
Read-only

Rank federal lobbying money from Senate LDA LD-2 reports by client, registrant or issue code. Use it for "who spends the most on lobbying", "which public companies spend the most" (by="client", companies_only=true) and "who lobbies most on taxation" (by="client", issue_code="TAX"). For one company, use get_lobbying_spend. State lobbying is not held.

by: client (a client linked to a public company carries company), registrant (outside firms and self-filers) or issue. issue_code (TAX, HCR, DEF) keeps reports listing that code. years takes filing years; omit it for the newest year held and the two before. quarter (1 to 4) ranks one quarter of those years; omit it for full years. companies_only (by="client" only): one row per public company, totaled as get_lobbying_spend does; without it, one row per LDA client, linked or not. limit caps the rows; row_count is the full count. A year in unheld_years holds no data, which is not zero spend.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "by": "<by>"
    },
    "name": "rank_lobbying_spend"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYesclient: who lobbying is for. registrant: who filed. issue: LDA issue codes.
limitNo
yearsNoFiling years, at most 10; omit for the newest held and the two before.
quarterNoFiling quarter (1 to 4) of the LD-2 reports, within years. Omit for the full years.
issue_codeNoLDA issue area code (TAX, HCR, DEF).
companies_onlyNoWith by=client, rank only clients linked to a public company (an SEC filer). Omit to rank every client, trade groups included.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description adds real operational context: default year window when years is omitted, that limit caps rows while row_count is the full count, and the critical caveat that a year in unheld_years means no data rather than zero spend. It stops short of describing ordering/pagination behavior beyond the cap, so it is strong but not exhaustive.

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?

Front-loaded with the purpose and the sibling routing before any parameter detail, and every sentence carries information. The middle paragraph is dense with default-behavior rules, but none of it is filler.

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 six-parameter ranking tool with no output schema, the description discloses the shape of results indirectly (one row per client/registrant/issue, row_count as the full count, unheld_years as a coverage signal). Ordering and any column composition of the rows remain unstated, which is the main remaining gap.

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?

With schema coverage at 83% the baseline is 3, and the description goes beyond it by explaining the semantic consequence of companies_only (one row per public company, totaled the same way as get_lobbying_spend, versus one row per LDA client) and of issue_code (keeps reports listing that code, not the client's primary issue). quarter's interaction with years is also clarified as 'ranks one quarter of those years'.

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?

States a specific verb and resource ('Rank federal lobbying money from Senate LDA LD-2 reports') plus the three ranking dimensions (client, registrant, issue code). It also explicitly contrasts itself with the sibling get_lobbying_spend for single-entity lookups, so an agent can pick between them without opening a schema.

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

Usage Guidelines5/5

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

Gives concrete when-to-use phrasings mapped to exact parameter combinations ('who spends the most on lobbying', companies_only=true for public companies, issue_code="TAX" for a topic). It names the alternative tool for the single-company case, so the routing decision is explicit rather than inferred.

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