Skip to main content
Glama

Query project data

project_query_database

Run read-only DuckDB SQL over the project's GeoParquet data — filter, aggregate, join, and measure features — with optional materialisation of derived datasets.

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": {
      "projectId": "<projectId>",
      "input": "<input>"
    },
    "name": "project_query_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
projectIdYes
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
  2. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is largely covered. The description adds the important qualifier that the SQL itself is read-only and that derived datasets can be materialised, but it omits operational behaviour an agent would want: whether only SELECT statements are permitted, any row/scan limits, and what materialisation actually returns.

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?

A single front-loaded sentence with a clear head clause (run read-only SQL over GeoParquet) followed by capability detail and the materialisation caveat. Nothing is redundant; the em-dash structure is readable, though the trailing clause is easily skimmed past.

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?

For a nested-schema tool with no output schema, the definition is thin: return shape for preview versus materialize is unstated, and nothing covers limits, permissions, or error conditions. The schema covers the action enum reasonably well, but the definition does not compensate for the low parameter coverage.

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

Parameters2/5

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

Schema description coverage is only 33%: projectId and the nested input object carry no descriptions, and the description text supplies no detail about them either. The description gestures at materialisation but never states that the title parameter is required for that action, leaving the most error-prone parameter interaction to inference from the enum description.

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?

Names a specific verb and resource: run read-only DuckDB SQL over the project's GeoParquet data, plus the capability set (filter, aggregate, join, measure) and the optional materialisation mode. An agent can distinguish it as the general-purpose SQL escape hatch versus narrower siblings like project_run_spatial_operation, though no sibling is named explicitly.

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: the description makes clear this is for arbitrary SQL querying of project data, and the phrase 'optional materialisation' hints at the two modes. It never states when to prefer this over project_run_spatial_operation or project_analyze_mobility, nor any prerequisite such as needing an existing source ID to query against.

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.

Resources