Skip to main content
Glama

sg_dataset_schema

Retrieve column names, data types, and row count for a tabular data.gov.sg dataset using a one-row query; returns schema only, not row content or full catalogue metadata.

Instructions

Get column names/types and row count for a tabular data.gov.sg dataset using a one-row query; returns no row content. Not the full catalogue metadata API.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "sg_dataset_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataset_idYesDataset ID from its data.gov.sg page, beginning d_ followed by 32 hex characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/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; it usefully discloses the mechanism (a one-row query) and that no row content is returned, which tells the agent the call is cheap and non-destructive. It says nothing about authentication, rate limits, or error behavior for unknown dataset IDs.

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 verb and outputs, no filler. The trailing negation sentence is short and earns its place as a scoping guard, though it is slightly less crisp than the first.

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?

For a single-parameter read tool with no output schema, the description covers what comes back (column names/types, row count) and what does not. Minor gaps remain around output shape and behavior on non-tabular or invalid dataset IDs.

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 coverage is 100%, so the dataset_id format and pattern are already fully documented in the schema. The description adds only the contextual note that the dataset must be tabular, which is marginal but not nothing; baseline 3 applies.

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?

States a specific verb and resource: column names/types plus row count for a tabular data.gov.sg dataset, and rules out row content and the full catalogue metadata API. It's clear what the tool does, though it differentiates against a category rather than naming a concrete sibling like sg_dataset_rows.

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: an agent can infer this is a cheap pre-flight inspection step before fetching rows, and 'Not the full catalogue metadata API' sets one boundary. There is no explicit 'use this when...' statement or named alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.