Skip to main content
Glama

query_f1_database

Run read-only SQL SELECT queries on a local Formula 1 history database (1950 onward) to answer historical questions other tools do not cover. Call describe_f1_database first; results cap at 500 rows.

Instructions

Run one read-only SELECT on the local F1 history database (F1DB, 1950 to the latest race) for any historical question the other tools don't cover: e.g. 'most wins from pole', 'drivers with a win at every track', 'Ferrari points by season'. Call describe_f1_database first. Max 500 rows, 15 seconds; only SELECT is allowed.

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": {
      "sql": "<sql>"
    },
    "name": "query_f1_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
max_rowsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key traits: read-only, SELECT-only enforcement, a 500-row ceiling, and a 15-second timeout. It does not describe error behavior or what the result set looks like, but the pointer to describe_f1_database partially covers schema discovery.

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?

One dense sentence covering purpose, scope, and examples, followed by a short prerequisite sentence and a compact limits clause. Front-loaded with the capability and no filler.

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 an arbitrary-SQL escape hatch with no annotations, no output schema, and undocumented parameters, the definition supplies the essentials: read-only guarantee, statement restriction, row cap, and timeout. Only the return shape and max_rows behavior remain unstated, and the describe-first instruction mitigates both.

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 0%, so the description should compensate more. It does constrain the sql parameter ('only SELECT is allowed') and implies a row cap ('Max 500 rows'), but never explains the max_rows parameter, its default of 200, or whether the stated 500 is the tool's hard limit or a caller option.

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?

States a specific verb and resource ('Run one read-only SELECT on the local F1 history database'), gives the data range (1950 to latest race), and explicitly positions itself as the fallback for questions other tools don't cover. The three concrete example questions make the capability unmistakable.

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?

Explicitly says when to reach for it ('any historical question the other tools don't cover') and requires a prerequisite step ('Call describe_f1_database first'), which routes the agent correctly within the sibling set. The fallback framing effectively tells the agent to try the specialized tools first.

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