Skip to main content
Glama

us-lobbying-mcp-server

Query disclosure tables

uslobbying_dataframe_query

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. Inspect columns with uslobbying_dataframe_describe first.

Input Schema

NameRequiredDescriptionDefault
sqlNoOne read-only SELECT; exclusive with result_table and offset.
offsetNoCanonical row offset for result_table, default zero.
canvas_idYesCanvas token returned by a disclosure analytical tool.
row_limitNoMaximum whole rows in this response; positive integers clamp to 100, then to any lower provider ceiling.
register_asNoFresh result table name for a new SQL call; omit for a generated name.
result_tableNoPreviously materialized result table; exclusive with sql and register_as.

Output Schema

NameRequiredDescriptionDefault
rowsNoWhole JSON-safe rows.
errorNoPresent when the call failed. Absent on success.
offsetNoCanonical-order starting row offset.
columnsNoComplete result schema.
datasetNoMaterialized dataset and routing.
guidanceNoTable names and dataframe instructions.
canvas_idNoTenant-scoped canvas access token.
row_countNoExact materialized result count.
row_orderNoDelivery orders by all materialized values.
truncatedNoMore materialized rows remain; continue with next_offset.
query_toolNoQuery or retrieve materialized table rows.
next_offsetNoNext undelivered row offset.
result_tableNoStable materialized result table.
describe_toolNoInspect exact table schemas before SQL.
rows_returnedNoRows actually delivered.
delivery_limitsNoClamped controls for this call; an empty map means no clamp. Immediate cursor replay retains its original values.
output_completeNoWhether this result has no remaining delivery rows.
effective_row_limitNoEffective row limit when a delivery or provider ceiling lowers the requested limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The description adds important behavior beyond the annotations: one SELECT is executed, the complete result is materialized, and subsequent row retrieval does not rerun SQL. This clarifies the stateful materialization step, which is consistent with readOnlyHint=false, while annotations already cover destructive and idempotent characteristics.

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

Conciseness5/5

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

Two sentences, front-loaded with the primary action, and no wasted text. The prerequisite follows naturally after the workflow description.

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?

The description covers the core workflow, materialization behavior, retrieval path, and the describe-first prerequisite. With a full output schema and complete parameter descriptions, the remaining details are adequately handled by structured fields, though the next_offset/offset wording could be tightened.

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 adds useful mode semantics around sql, result_table, and offset-based row retrieval, though it refers to 'next_offset' while the schema parameter is 'offset', creating a minor terminology mismatch.

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 states a specific verb and resource: run one read-only SELECT over staged disclosure tables, materialize results, and retrieve rows by result table. It clearly distinguishes the SQL path from the retrieval path, and points to the sibling describe tool for column inspection.

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 clear workflow prerequisite: inspect columns with uslobbying_dataframe_describe first. It also explains the two operating modes, SQL versus result_table retrieval, though it does not explicitly compare when to use this tool instead of the other search-oriented siblings.

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.