Skip to main content
Glama

Raw Query

raw_query

Run read-only SQL SELECT queries on Malaysian statistics series data to retrieve raw table rows, including breakdowns not available through curated tools. Use when standard queries cannot access specific divisions or groups.

Instructions

Escape hatch for shapes the curated tools don't cover — e.g. a division/sector/group breakdown a series' source table carries but no registry entry filters to (get_series only ever returns the one row per date the registry's filters picks out). Write a SELECT against series (aliased to series_id's source Parquet); only read-only single-statement SELECT/WITH queries are allowed, capped at row_limit rows. Prefer get_series/compare_series/compute when they cover your question — this bypasses the caveats, breaks, and warnings those carry, since it returns raw table rows, not a curated response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes
row_limitNo
series_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it does so thoroughly. It states that only read-only single-statement SELECT/WITH queries are allowed, results are capped at row_limit rows, and the tool returns raw table rows rather than curated responses, bypassing the caveats of the curated tools.

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 dense but well-organized, leading with the use case, then the operational constraints, then the guidance to prefer alternatives. Every sentence earns its place and there is no redundant restatement of the tool name or schema fields.

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

Completeness5/5

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

Given the tool's complexity, the description covers purpose, usage, constraints, parameter semantics, and relationship to siblings. The presence of an output schema means return-value documentation is already handled structurally, so nothing essential is missing for an agent to select and invoke the tool correctly.

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

Parameters5/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 compensate, and it does. It explains that `series` is aliased to the source Parquet identified by `series_id`, that `sql` must be a read-only SELECT/WITH statement, and that `row_limit` caps the returned rows. These meanings are not present in the bare input 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 clearly identifies the tool as an escape hatch for shapes curated tools don't cover, specifies the resource (raw Parquet source behind `series`), and the operation (read-only SELECT/WITH). It also explicitly contrasts itself with get_series, which returns only curated registry-filtered rows, making sibling differentiation unambiguous.

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?

The description gives an explicit usage rule: prefer get_series/compare_series/compute when they cover the question, and use raw_query only when they don't. It also provides a concrete example scenario (division/sector/group breakdown) and states the constraints under which the tool can be used.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Syakizz04/kira-dosm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server