Skip to main content
Glama

Records

records
Read-onlyIdempotent

Query records from an Opendatasoft dataset with optional keyword search, ODSQL WHERE/SELECT/GROUP BY/ORDER BY clauses, pagination, and projection; returns matching rows as JSON.

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": {
      "limit": 20,
      "dataset_id": "geonames-all-cities-with-a-population-1000"
    },
    "name": "records"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
limitNo
whereNo
offsetNo
selectNo
group_byNo
instanceNo
order_byNo
dataset_idYes

Output Schema

NameRequiredDescriptionDefault
resultsNoArray of record objects
total_countNoTotal count of matching records

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "dataset_id": "world-cities",
      -    "limit": 20
      -  },
      -  {
      -    "dataset_id": "us-census-data",
      -    "limit": 50,
      -    "offset": 0,
      -    "order_by": "population DESC",
      -    "select": "name,population",
      -    "where": "population > 100000"
      -  }
      -]New value: +[
      +  {
      +    "dataset_id": "geonames-all-cities-with-a-population-1000",
      +    "limit": 20
      +  },
      +  {
      +    "dataset_id": "geonames-all-cities-with-a-population-1000",
      +    "limit": 50,
      +    "offset": 0,
      +    "order_by": "population DESC",
      +    "select": "name,population,cou_name_en",
      +    "where": "population > 5000000"
      +  }
      +]
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "dataset_id": "world-cities",
      +    "limit": 20
      +  },
      +  {
      +    "dataset_id": "us-census-data",
      +    "limit": 50,
      +    "offset": 0,
      +    "order_by": "population DESC",
      +    "select": "name,population",
      +    "where": "population > 100000"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Records from a dataset",
      +  "properties": {
      +    "results": {
      +      "description": "Array of record objects",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total_count": {
      +      "description": "Total count of matching records",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already establish that this is a read-only, idempotent, open-world, non-destructive query. The description adds that rows are returned as JSON and mentions ODSQL and pagination behavior, but it does not disclose rate limits, authentication needs, defaults, or error behavior. There is no contradiction with the annotations.

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?

The description is a single front-loaded sentence that packs the core operation, optional clauses, pagination, and return format without filler. It is appropriately sized and easy to scan.

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

Completeness3/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 fully described. However, with nine parameters and 0% schema description coverage, the description should provide more guidance on required dataset_id, instance selection, pagination defaults, and ODSQL constraints to be fully complete.

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?

Schema description coverage is 0%, so the description must carry parameter meaning. It explains keyword search, WHERE/SELECT/GROUP BY/ORDER BY, pagination, and projection, but leaves the required dataset_id and the instance parameter unexplained, and it does not clarify defaults or formats.

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 and resource: query records from an Opendatasoft dataset, with filtering and pagination capabilities. It is clear what the tool does, but it does not explicitly differentiate itself from sibling tools such as dataset, datasets, or facets.

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

Usage Guidelines2/5

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

The description lists capabilities but does not state when to use this tool versus alternatives, nor when not to use it. There is only implied usage from the phrase 'query records' and the available optional clauses.

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.