Skip to main content
Glama

stl_snapshot_fetch

Download a transit feed (e.g., GTFS or realtime) into the local snapshot store, using conditional requests to skip re-downloading unchanged data. Specify the source and optionally force a new fetch.

Instructions

Download a feed from the network into the local snapshot store.

Uses conditional requests, so an unchanged feed returns unchanged=true and costs a 304 rather than re-downloading. The GTFS zip is ~3.5 MB and expands to ~29 MB, so this can take a few seconds.

Args: source: 'metro_gtfs', 'metro_rt_trips', 'metro_rt_vehicles', 'metro_rt_alerts'. force: bypass the conditional-request cache.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
sourceNometro_gtfs

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

The description discloses important side effects and behavior: it performs network downloads, uses conditional requests with 304 responses, and can take a few seconds due to file sizes. This goes beyond the annotations, which already indicate readOnly=false and idempotent=false.

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 concise and well-structured: a clear first sentence, then additional relevant details about conditional requests and expected size/time, followed by the argument explanations. No unnecessary wording.

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?

The description gives enough context for invocation, including source and force semantics and performance characteristics. It mentions the return field 'unchanged=true' but leaves other return details to the output schema, which is acceptable given the tool's simplicity.

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?

The schema has no parameter descriptions, but the description fully compensates by listing the valid source values ('metro_gtfs', 'metro_rt_trips', 'metro_rt_vehicles', 'metro_rt_alerts') and explaining that force bypasses the conditional-request cache.

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 states a specific action ('Download a feed from the network into the local snapshot store') and clearly distinguishes this from sibling tools like stl_snapshot_list and stl_snapshot_sources by focusing on the fetch/refresh action.

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?

The description gives clear context for when to use the tool: to download a feed into the snapshot store. It explains the source options and the force flag, though it does not explicitly name alternative sibling tools or state when not to use them.

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