New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

socrata.datasets.query

Run a SoQL query against a specific dataset's actual data rows on a Socrata portal — supports $select, $where, $order, $group, $limit, and $offset clauses (see socrata.dataset_metadata for column names). Returns the matching rows as JSON. Use socrata.dataset_search first to find a domain + datase...

SERVERApibase SOURCEapibase-mcp-client
High RISK CLASS
Category Execute
Parameters 82 required
Recommended Rate-limitedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/io-github-whiteknightonhorse-apibase/socrata.datasets.query.md

What socrata.datasets.query does on Apibase

AI agents invoke socrata.datasets.query to trigger actions in Apibase. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

ParameterTypeRequiredDescription
group string — SoQL $group clause, e.g. "complaint_type"
limit integer — Max rows to return, 1-1000 (default 50)
order string — SoQL $order clause, e.g. "created_date DESC"
where string — SoQL $where clause, e.g. "borough='BROOKLYN'" or "created_date>'2026-01-01'"
domain string Yes Socrata portal hostname, e.g. "data.cityofnewyork.us" (from socrata.dataset_search results)
offset integer — Pagination offset (default 0)
select string — SoQL $select clause, e.g. "complaint_type,count(*)" (see socrata.dataset_metadata for column names)
dataset_id string Yes Socrata dataset 4x4 identifier, e.g. "erm2-nwe9" (from socrata.dataset_search results)

Parameters from the server's own tool schema.

Why socrata.datasets.query is rated High

Executes arbitrary SoQL queries against external Socrata portals; results depend on arguments.

From the tool's definition Run a SoQL query against a specific dataset's actual data rows

Questions about socrata.datasets.query

What does the socrata.datasets.query tool do? +

Run a SoQL query against a specific dataset's actual data rows on a Socrata portal — supports $select, $where, $order, $group, $limit, and $offset clauses (see socrata.dataset_metadata for column names). Returns the matching rows as JSON. Use socrata.dataset_search first to find a domain + dataset_id. Data: per-portal Socrata resource API (e.g. data.cityofnewyork.us), no auth required. It is categorised as a Execute tool in the Apibase MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

What parameters does socrata.datasets.query accept? +

socrata.datasets.query accepts 8 parameters: group, limit, order, where, domain, offset, select, dataset_id. Required: domain, dataset_id. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on socrata.datasets.query? +

Register the Apibase MCP server in PolicyLayer and add a rule for socrata.datasets.query: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Apibase. Nothing to install.

What risk level is socrata.datasets.query? +

socrata.datasets.query is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit socrata.datasets.query? +

Yes. Add a rate_limit block to the socrata.datasets.query rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block socrata.datasets.query completely? +

Set action: deny in the PolicyLayer policy for socrata.datasets.query. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides socrata.datasets.query? +

socrata.datasets.query is provided by the Apibase MCP server (apibase-mcp-client). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Apibase, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Apibase's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.