Skip to main content
Glama

Open Data Portals

Portal Detect

portal_detect
Read-onlyIdempotent

Identify which open-data platform a domain runs: CKAN, Socrata, DKAN, Opendatasoft or ArcGIS Hub. Probes each platform's documented API path and returns the platform, the evidence and every probe URL with its HTTP status. A domain that is none of them returns not_a_portal, never an empty success. Use before portal_search_datasets / portal_query on a portal with no dedicated pack. Keyless; public portals only.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "data.texas.gov"
    },
    "name": "portal_detect"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe portal hostname, e.g. data.texas.gov, data.medicaid.gov, data.ca.gov, public.opendatasoft.com, hub.arcgis.com. No path.

Output Schema

NameRequiredDescriptionDefault
nextNo
budgetNo
domainNo
probesNo
evidenceNo
platformNo
also_matchedNo
upstream_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety bar is met; the description goes further by explaining the probing mechanism, that evidence and every probe URL with HTTP status are returned, and that a non-match yields not_a_portal rather than an empty success. It also discloses the keyless/no-auth requirement and the public-portal-only limitation, which annotations cannot express.

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?

Four short sentences, front-loaded with purpose, then mechanism, then failure semantics, then usage routing. No filler or repetition of the title.

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?

With an output schema and rich annotations, the description covers the essentials an agent needs: what it returns, the negative outcome, auth model, and where it fits in the workflow. Minor omissions such as timeout or partial-probe failure behavior remain, but nothing critical is missing.

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

Parameters3/5

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

There is a single parameter with 100% schema description coverage including examples and the 'No path' constraint, so the schema does the heavy lifting. The description only adds the implicit constraint that the host must be a public portal, which is marginal param-level value beyond the schema.

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 names a specific verb and resource ('Identify which open-data platform a domain runs') and enumerates the candidate platforms (CKAN, Socrata, DKAN, Opendatasoft, ArcGIS Hub). It explicitly separates this from the dataset-facing siblings by positioning it as the prerequisite step before portal_search_datasets / portal_query.

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?

It states when to use it ('Use before portal_search_datasets / portal_query on a portal with no dedicated pack') and bounds the applicable cases ('Keyless; public portals only'). The agent knows both the trigger and the constraint without inference.

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.