Skip to main content
Glama

fa_count_flights

Read-only

Count flights matching specified criteria using simplified key-value syntax. Returns the count of flights without retrieving individual flight data.

Instructions

Count flights matching a query without returning the flights themselves. Returns { count }. Uses the SIMPLIFIED "-key value" syntax (same as fa_search_flights, NOT the structured grammar of fa_search_flights_advanced). Example: -airline UAL -belowAltitude 30000.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSimplified "-key value" search string (same syntax as fa_search_flights), e.g. -airline UAL
Behavior4/5

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

Discloses that the tool only returns a count, not flights, and explains query syntax. Annotations already indicate readOnly; description adds return type and usage pattern.

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?

Two sentences plus example, front-loaded with purpose, no unnecessary words.

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 tool simplicity (one param, no output schema, readOnly annotations), the description fully covers functionality, syntax, and return value.

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

Parameters4/5

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

Schema covers parameter with description, but description provides concrete example and clarifies the syntax is same as fa_search_flights, adding value beyond 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?

Description uses specific verb 'count' and resource 'flights', clearly states it returns a count without returning flights, and distinguishes from search tools by syntax reference.

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

Usage Guidelines4/5

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

Explicitly mentions the syntax (simplified -key value) and contrasts with fa_search_flights_advanced, giving guidance on when to use this tool. Could be improved by stating 'when only count needed'.

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

Install Server

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/chrischall/flightaware-mcp'

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