Skip to main content
Glama

PxBridge

Px Execute Query

px_execute_query

Translates natural language selections into a validated PxWeb query, fetches the data, and returns a clean Markdown or CSV table with mandatory CC BY 4.0 attribution. Consumes 1 query from the weekly quota (official Live Demo presets are quota-exempt).

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": {
      "table_uid": "<table_uid>"
    },
    "name": "px_execute_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNofi
formatNomarkdown
table_uidYes
selectionsNo
access_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two non-obvious traits: a quota cost of one query per call (with a preset exemption) and a mandatory CC BY 4.0 attribution obligation on output. It omits authentication requirements despite an access_token parameter, and says nothing about what happens when the selections fail validation, which are material for a data-fetching call with a metered cost.

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 tight sentences, front-loaded with the primary action and output, then the cost/attribution caveat. No filler, though the quota sentence could be more explicit about what triggers a charge versus what is exempt.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but the input side is bare: five parameters with zero schema descriptions and no annotations, including a required table_uid and an access_token whose necessity is unstated. For a metered, authenticated data-fetch tool this leaves too much for the agent to guess.

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

Parameters2/5

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

Schema description coverage is 0% across five parameters, so the description must compensate and largely does not. It only indirectly maps to two of them — 'natural language selections' for the selections object and 'Markdown or CSV' for format — while lang, table_uid (the sole required parameter), and access_token are never explained or given expected shapes.

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?

The description gives a specific verb chain and resource: translates selections into a validated PxWeb query, fetches the data, and returns a Markdown or CSV table. That is concrete enough to separate it from metadata/search siblings like px_search_tables or px_get_table_metadata, but it never names an alternative, so differentiation is inferred rather than stated.

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?

Usage is only implied: the mention that official Live Demo presets are quota-exempt hints at a zero-cost entry path, but there is no explicit 'use this when…' or 'prefer X instead' guidance. No prerequisites (API key, verification, quota state) are declared even though the sibling catalog contains px_check_quota_and_plans and px_request_free_api_key.

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